PB 6.11, PB 6.10 Linker error using scintilla and webview gadget

Mac OSX specific forum
flashbob
User
User
Posts: 92
Joined: Sat May 11, 2024 4:04 pm

PB 6.11, PB 6.10 Linker error using scintilla and webview gadget

Post by flashbob »

The linker error only occurs under PB 6.04, PB 6.10, PB 6.11 (e.g. with the Form Editor), scintilla works with pb PB 5.73.
My macOS is 10.13.6
Last edited by flashbob on Mon Jun 10, 2024 2:05 pm, edited 1 time in total.
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.11, PB 6.10 Linker error using scintilla an webview gadget

Post by Fred »

We need more info, code source, error string..
flashbob
User
User
Posts: 92
Joined: Sat May 11, 2024 4:04 pm

Re: PB 6.11, PB 6.10 Linker error using scintilla and webview gadget

Post by flashbob »

... you just have to create a new form with FormDesigner and draw the Scintilla gadget. That's all.

The machine ist Intel based, macOS High Sierra, v 10.13.6


The linker error using PB 6.10 LTS and PB 6.11 LTS (ScintillaGadget) is:

"Undefined symbols for architecture x86_64:
"___isPlatformVersionAtLeast", referenced from:
-[SCIContentView initWithFrame:] in libpbscintilla_cocoa.a(ScintillaView.o)
Scintilla::Internal::ScintillaCocoa::StartDrag() in libpbscintilla_cocoa.a(ScintillaCocoa.o)
Scintilla::Internal::ScintillaCocoa::DraggingUpdated(id<NSDraggingInfo>) in libpbscintilla_cocoa.a(ScintillaCocoa.o)
Scintilla::Internal::ScintillaCocoa::PerformDragOperation(id<NSDraggingInfo>) in libpbscintilla_cocoa.a(ScintillaCocoa.o)
Scintilla::Internal::ScintillaCocoa::UpdateBaseElements() in libpbscintilla_cocoa.a(ScintillaCocoa.o)

By the way: Closing PB 6.11 after this message is not possible - hangs ...


The generated code by formdesigner is:

Code: Select all

;
; This code is automatically generated by the FormDesigner.
; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
; Event procedures needs to be put in another source file.
;

Enumeration FormWindow
  #Window_0
EndEnumeration

Enumeration FormGadget
  #Scintilla_0
EndEnumeration

Procedure OpenWindow_0(x = 0, y = 0, width = 528, height = 425)
  OpenWindow(#Window_0, x, y, width, height, "", #PB_Window_SystemMenu)
  ScintillaGadget(#Scintilla_0, 240, 78, 193, 248, @Callback_Scintilla_0())
EndProcedure

Procedure Window_0_Events(event)
  Select event
    Case #PB_Event_CloseWindow
      ProcedureReturn #False

    Case #PB_Event_Menu
      Select EventMenu()
      EndSelect

    Case #PB_Event_Gadget
      Select EventGadget()
      EndSelect
  EndSelect
  ProcedureReturn #True
EndProcedure

The linker error using PB 6.10 LTS (WebViewGadget) is:

"Undefined symbols for architecture x86_64:
"___isPlatformVersionAtLeast", referenced from:
webview::detail::cocoa_wkwebview_engine::create_window() in libpbwebview.a(webview.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)"
Last edited by flashbob on Mon Jun 10, 2024 2:05 pm, edited 1 time in total.
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 460
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: PB 6.11, PB 6.10 Linker error using scintilla an webview gadget

Post by Mindphazer »

No problem with your code here (MacOS 10.15), PB 6.11 M1
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.11, PB 6.10 Linker error using scintilla an webview gadget

Post by Fred »

10.13 is too old IIRC, you will need 10.15 at least. (10.13 js deprecated since 4 years btw)
flashbob
User
User
Posts: 92
Joined: Sat May 11, 2024 4:04 pm

Re: PB 6.11, PB 6.10 Linker error using scintilla an webview gadget

Post by flashbob »

Fred wrote: Mon Jun 10, 2024 9:11 am 10.13 is too old IIRC, you will need 10.15 at least. (10.13 js deprecated since 4 years btw)
Hmm,

then you should perhaps update the information on the product page (download demo) ?
OS X 10.10 is listed as minimum requirement:

" PureBasic free for OS X 10.10 or above (Intel - x64) "
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.11, PB 6.10 Linker error using scintilla and webview gadget

Post by Fred »

You're right, I will update it.
Post Reply