Linker error with Dialog

Linux specific forum
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Linker error with Dialog

Post by uwekel »

Hi,

when i try to run this code

Code: Select all

#Xml = 0
#Dialog = 0
 
xml$ = "<window name='test' text='Window' width='300'>"
xml$ + "<hbox expand='item:2'>"
xml$ + "<spin width='80' min='1' max='3' flags='#PB_Spin_Numeric'/>"
xml$ + "<button/>"
xml$ + "</hbox>"
xml$ + "</window>"

If CatchXML(#Xml, @xml$, StringByteLength(xml$)) And XMLStatus(#Xml) = #PB_XML_Success
  If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "test")
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow
  Else
    Debug "Dialog error: " + DialogError(#Dialog)
  EndIf
Else
  Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
EndIf
i get this error:
Image

With 5.51 it runs fine.
Regards Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: PB 5.60B3 Linker error with Dialog

Post by uwekel »

Obviously the dialog library now uses webkit, so i had to install an additional dependancy to webkitgtk3-devel.

I dont know whether or not it is really required or just something wich needs to be cleaned up (5.50 did not need that). In case it is required, the checkinstall.sh should be updated.

Regards Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Fred
Administrator
Administrator
Posts: 16690
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 5.60B3 Linker error with Dialog

Post by Fred »

Yes it's required as you can instanciate a WebGadget() from the dialog lib. I updated the requirement
User avatar
Xanos
User
User
Posts: 45
Joined: Sat Feb 28, 2015 1:20 pm

Re: [Done] PB 5.60B3 Linker error with Dialog

Post by Xanos »

V5.60 is out now but it seems the checkinstall is not up to date.
>>Everything seems correctly setup for PureBasic !<< But I still get the linker error ;)
After installing libwebkitgtk-3.0-dev I can use the dialog function again.
Programming on Windows 10 Pro / Windows 7 Enterprise / Linux Mint 19 / Manjaro Linux with PB 5, Python 3 and Go
Post Reply