gtk+ make error in libgio - undefined reference
Hi all,
I am trying to install gtk+-2.19.0 - latest stable lib version (needed for installation of wxWidgets and then for codeblocks). ./configure runs with no errors, but make give these errors: Code:
/usr/local/lib/libgio-2.0.so: undefined reference to `g_ptr_array_new_with_free_func' Any suggestion? |
do you use system glib?
i think it does not like the glib you got. |
I installed glib 2.23. The system glib was 18.4
|
did you remove the system's glib?
|
I've recently been building some GTK and related stuff, and have found that it helps to specifically tell the build where to find stuff, because for some reason, even when the required libs and headers are in the right location, the build can't seem to find it.
Make sure your $LDFLAGS contains the correct location(s) of your lib dir (-L/usr/lib or -L/usr/local/lib or whatever) and it may help too, to export your CPPFLAGS before running the build, like: Code:
export CPPFLAGS="${CPPFLAGS} -I/usr/include/gtk+-2.0 -I/usr/include/glib-2.0 -I/usr/include/pango-1.0" |
ozanbaba,
I didn't know how to remove system glib so i download 18.4 source, configure and then run make uninstall make clan make distclean and then install 2.23 version. GrapefruiTgirl, I missed the env. variables from the site of gtk++ http://library.gnome.org/devel/gtk/u...-building.html now I export them and trying to configure, make and make install again... |
as root slackpkg remove glib2 will remove glib package
|
Thank you that works correct. 18.4 version was still on the system.
Start from beginning... |
linker got confused. however what GrapefruiTgirl said makes sense, too as with it you can keep two versions of glib on the system: stock Slackware package and new beta package.
|
Why after installing glib 2.23 from source it cant be slackpkg remove, install update or anything?
|
Quote:
however creating a Slackware package is pretty simple compared to other systems. Code:
su however best way to go is using Patrick's build script in source folder of the dvd (or source cd). and of course you car do make uninstall |
Things goes messed up and I restore from previous day's backup. Now I am trying to build C::B within C::B using CodeBlocks-unix.cbp but have some errors. I am closing this thread as solved since I was opened similar:
http://www.linuxquestions.org/questi...3/#post3845907 Many thanks to ozanbaba and GrapefriuTgirl - I get valuable lesson from both of you. |
All times are GMT -5. The time now is 12:16 AM. |