Page 1 of 1

Linker error with Dialog

Posted: Thu Feb 09, 2017 10:20 pm
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

Re: PB 5.60B3 Linker error with Dialog

Posted: Fri Feb 10, 2017 5:48 am
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

Re: PB 5.60B3 Linker error with Dialog

Posted: Mon Feb 13, 2017 9:31 am
by Fred
Yes it's required as you can instanciate a WebGadget() from the dialog lib. I updated the requirement

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

Posted: Fri Mar 03, 2017 11:43 pm
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.