Problem with linux webgadget

Linux specific forum
karu
Enthusiast
Enthusiast
Posts: 255
Joined: Fri Jan 13, 2006 12:14 am

Problem with linux webgadget

Post by karu »

Hi, can some one help to find where is problem. I have simple code from help file but it not working.

Code: Select all

  If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
    WebGadget(0, 10, 10, 580, 280, "http://www.purebasic.com")
    ; Note: if you want to use a local file, change last parameter to "file://" + path + filename
    Repeat 
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

And it return error message:
/usr/bin/ld: cannot find -lstdc++
collect2: id returned 1 exit status
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

you need the gtk devel packages as well as the libc6 and devel packages installed...

AND you have to use WebgadgetPath() (see manual) before the use of WebGadget()
karu
Enthusiast
Enthusiast
Posts: 255
Joined: Fri Jan 13, 2006 12:14 am

Post by karu »

i done everything what in help but still same error message
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Didn't know if you'd already solved the problm.. but I found out, that libstdc++6-4.1 and libstdc++6-4.1-dev have to be installed.. no other version ist working...

I guess Fred has to update the requirements section for PB-Linux as there are much more things needed than only GTK and SDL :roll:
Post Reply