PB 4.10 won't compile

Linux specific forum
John Duchek
User
User
Posts: 83
Joined: Mon May 16, 2005 4:19 pm
Location: St. Louis, MO

PB 4.10 won't compile

Post by John Duchek »

Hi all,
I have PB book by G. Willoughby. It has many simple example programs including a hello world (gosh, I hate that program). While they ran under 4.01, they get a linker error under 4.1. Not wanting to repeat earlier mistakes, I completely deleted the 4.01 purebasic directory and replaced it with 4.10. I use a script to load it that installs the needed variables in my path .(same as 4.01?) Even so, I get linker errors when I try to run any programs that draw windows. The same program runs under windows 4.10 PB.

What have I missed?
Thanks,
John
John R. Duchek
St. Louis,MO
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

the Installation did not change? All dependencies fulfilled?
Search for the hidden-directory in you home.
It's called ".purebasic". Maybe you should also delete this config. Caution: all "codeblocks" and preferences get lost. (in Doubt, just rename the folder to .purebasic_OLD)
cheers,

bembulak
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

It would be easier to help if you posted the actual error message you get.
quidquid Latine dictum sit altum videtur
John Duchek
User
User
Posts: 83
Joined: Mon May 16, 2005 4:19 pm
Location: St. Louis, MO

Indeed it would...

Post by John Duchek »

It is difficult because I cannot get the error window to cut and paste. But here it is...
the "Pure Basic linker error" windows says...

Gadget.a(SetActiveGadget.o): In function 'PB_SetActiveGadget':
SetActiveGadget.c:(.text+0x3c): undefined reference to'gtk_widget_grab_focus'

I am running 2008 Mandriva Linux.

John

Iwill try renaming the .purebasic directory.
John R. Duchek
St. Louis,MO
John Duchek
User
User
Posts: 83
Joined: Mon May 16, 2005 4:19 pm
Location: St. Louis, MO

last error message..

Post by John Duchek »

That last one was for the program (in the book) that displays two buttons and a text field. The hello world one gives this error in the linker (btw, getting a new .purebasic directory didn't help


Window.a(OpenWindow.o): In function 'DestroyHandler':
OpenWindow.c(.text+0x22): undefined reference to 'g_object_unref'

John
John R. Duchek
St. Louis,MO
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Looks like you are missing the gtk devel package.
quidquid Latine dictum sit altum videtur
John Duchek
User
User
Posts: 83
Joined: Mon May 16, 2005 4:19 pm
Location: St. Louis, MO

Thanks for your help!

Post by John Duchek »

Apparently I have more going on that I knew. I thought gtk-devel was already installed. When I tried to check that, my rpm database failed. I had to rebuild it before I could install gtk-devel (it wouldn't install anything; just kept bailing out of the Configure your computer program.. It then did install and now purebasic is working. Thank you.

I am now waiting to see what else was affected by the database failure.

John
John R. Duchek
St. Louis,MO
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

bembulak wrote:All dependencies fulfilled?
That's it. You've always gotta check your deps, before running PureBasic the first time. I thought, you've already had a working version on that machine.
cheers,

bembulak
John Duchek
User
User
Posts: 83
Joined: Mon May 16, 2005 4:19 pm
Location: St. Louis, MO

I did have a working version

Post by John Duchek »

As I said, my rpmdatabase had gotten messed up. Turns out this was a function of the upgrade from 2007-2 to 2008. Ultimately I had to wipe the harddrive and install 2008 from scratch. According to some mandriva forums the database problem occurs in the upgrade but not the fresh install. There were lots of posts with ways to fix it but nothing was working for me. I saved my home directory and reinstalled and am back up. Now everything is working.

John
John R. Duchek
St. Louis,MO
Post Reply