Linking GTKMaxGUI app on KUbuntu 32 Bit?

Archives Forums/Linux Discussion/Linking GTKMaxGUI app on KUbuntu 32 Bit?

Grisu(Posted 2014) [#1]
Hi!

How to get rid of these linking errors on 32 Bit?
/usr/bin/ld: cannot find -lgtk-x11-2.0
/usr/bin/ld: cannot find -lgdk-x11-2.0
/usr/bin/ld: cannot find -latk-1.0
/usr/bin/ld: cannot find -lpangox-1.0
/usr/bin/ld: cannot find -lpango-1.0
collect2: error: ld returned 1 exit status

This is the solution for 64 Bit: http://www.blitzbasic.com/Community/post.php?topic=101357&post=120323

Grisu


dawlane(Posted 2014) [#2]
I take it the you forgot to read the bit about installing gtk manually.
http://www.blitzbasic.com/Community/post.php?topic=101587&post=1214632
sudo apt-get install libgtk2.0-dev



Grisu(Posted 2014) [#3]
Thanks! One remains...
/usr/bin/ld: cannot find -lpangox-1.0
collect2: error: ld returned 1 exit status



dawlane(Posted 2014) [#4]
Should be sudo apt-get install libpangox-1.0-dev


Grisu(Posted 2014) [#5]
To keep it interesting:
/usr/bin/ld: /home/grisu/BlitzMax/mod/bah.mod/gtkmaxgui.mod/gtkmaxgui.release.linux.x86.a(gtkgadget.bmx.release.linux.x86.o): undefined reference to symbol 'gdk_pixbuf_rotate_simple'
/usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status



dawlane(Posted 2014) [#6]
Add Import "-lgdk_pixbuf-2.0" to the source code.
You will probably have trouble with icons at some point. More so with using themes.

You now see why I didn't include gtk in any of the scripts.


Grisu(Posted 2014) [#7]
Now I know. Still can't get it to run.

Sorry for taking up your time.


dawlane(Posted 2014) [#8]
Now I know. Still can't get it to run.
Is that run or compile?
Using Bruceys GTK module is very hit and miss. You have to use the svn version from google code. Even then there is no guarantee that it will work out of the box or work across distributions. It' has big issues finding system default icons. It took me a almost over a week digging around to find that out. Look here for what I had to do. You will have to read though it.


Grisu(Posted 2014) [#9]
Too much hassle for me. I only want to create an updated Linux build of my app. I don't use Linux on a daily basis. Without a proper debugmode, a broken ide and faulty Linux drivers, this is a waste of time.


dawlane(Posted 2014) [#10]
Thought I hate to say it. It may be more worth your while to invest in Pure Basic or another language. Pure Basic does what BlitzMax should do, but the down side apart from having to learn new functions is that it's not oop.