|
|
Home » U++ Library support » U++ Core » gdk_pixbuf-2.0 linker error
gdk_pixbuf-2.0 linker error [message #33418] |
Wed, 03 August 2011 10:58 |
|
koldo
Messages: 3356 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
Sorry for the simple question: I have installed U++ by hand in a new Ubuntu 11.04.
I have added new include folders, but I get an error when linking:
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0
Linker folders set now are:
- /usr/X11R6/lib
- /usr/lib
What folder should I have to add?
Best regards
Iñaki
|
|
|
Re: gdk_pixbuf-2.0 linker error [message #33419 is a reply to message #33418] |
Wed, 03 August 2011 12:25 |
|
Hi Koldo!
The gdk_pixbuf-2.0 requires just include folder /usr/include/gdk-pixbuf-2.0. The library itself should reside in /usr/lib/libgdk_pixbuf-2.0.so, so your setting is correct.
It seems like there is a problem somewhere else. Are you sure that gdk-pixbuf2 package (or something similar) is installed?
Best regards,
Honza
|
|
|
|
Re: gdk_pixbuf-2.0 linker error [message #33422 is a reply to message #33421] |
Wed, 03 August 2011 15:12 |
|
koldo wrote on Wed, 03 August 2011 13:44 | Hello Honza!
File /usr/lib/libgdk_pixbuf-2.0.so exists. Packages libgdk_pixbuf-2.0 and libgdk_pixbuf-2.0-dev are installed too.
|
Huh, weird... Could you post the verbose output so I can see the command line of the linking step?
Honza
|
|
|
|
Re: gdk_pixbuf-2.0 linker error [message #34857 is a reply to message #33418] |
Thu, 15 December 2011 09:50 |
rett
Messages: 15 Registered: January 2010
|
Promising Member |
|
|
Hello I have same problem.
theide compilation :
make -f uppbox/lpbuild/Makefile PKG=ide "FLAGS=GUI GCC SHARED" DIRS=uppsrc
Compilation sucessfuly finished.
Then I run theide and try compile example, but compilation is no sucessfuly.
Linking...
gcc-4.4 -static -o "/home/andris/upp/_out/bazaar/GCC.Debug.Debug_Full.Gui.Noblitz/Tcc_Demo_Gui" -ggdb -L"/usr/lib" -L"/usr/lib64" -Wl,-O,2 "/home/andris/upp/_out/bazaar/Tcc_Demo_Gui/G
CC.Debug.Debug_Full.Gui.Main.Noblitz/main.o" "/home/andris/upp/_out/bazaar/CtrlLib/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlLib.o" "/home/andris/upp/_out/bazaar/CtrlCore/GCC.Debug.Debu
g_Full.Gui.Noblitz/CtrlCore.o" "/home/andris/upp/_out/bazaar/PdfDraw/GCC.Debug.Debug_Full.Gui.Noblitz/PdfReport.o" "/home/andris/upp/_out/bazaar/plugin/bmp/GCC.Debug.Debug_Full.Gui
.Noblitz/BmpReg.o" "/home/andris/upp/_out/bazaar/RichText/GCC.Debug.Debug_Full.Gui.Noblitz/RichImage.o" "/home/andris/upp/_out/bazaar/plugin/png/GCC.Debug.Debug_Full.Gui.Noblitz/pn
greg.o" -Wl,--start-group "/home/andris/upp/_out/bazaar/CtrlLib/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlLib.a" "/home/andris/upp/_out/bazaar/Tcc/GCC.Debug.Debug_Full.Gui.Noblitz/Tcc.
a" "/home/andris/upp/_out/bazaar/CtrlCore/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlCore.a" "/home/andris/upp/_out/bazaar/PdfDraw/GCC.Debug.Debug_Full.Gui.Noblitz/PdfDraw.a" "/home/andr
is/upp/_out/bazaar/Draw/GCC.Debug.Debug_Full.Gui.Noblitz/Draw.a" "/home/andris/upp/_out/bazaar/plugin/bmp/GCC.Debug.Debug_Full.Gui.Noblitz/bmp.a" "/home/andris/upp/_out/bazaar/Rich
Text/GCC.Debug.Debug_Full.Gui.Noblitz/RichText.a" "/home/andris/upp/_out/bazaar/Core/GCC.Debug.Debug_Full.Gui.Noblitz/Core.a" "/home/andris/upp/_out/bazaar/plugin/png/GCC.Debug.Deb
ug_Full.Gui.Noblitz/png.a" "/home/andris/upp/_out/bazaar/plugin/tcc/GCC.Debug.Debug_Full.Gui.Noblitz/tcc.a" -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-
1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -lXrender -ldl -lXft -lfontconf
ig -lXrender -lfreetype -lnotify -ldl -lfreetype -lfontconfig -lexpat -lpthread -ldl -lz -lpng -Wl,--end-group
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0
/home/andris/upp/_out/bazaar/plugin/tcc/GCC.Debug.Debug_Full.Gui.Noblitz/tcc.a(tcc.o): In function `tcc_add_file_internal':
/home/andris/upp/bazaar/plugin/tcc/tcc.c:10307: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linki
ng
collect2: ld returned 1 exit status
gcc-4.4 -static -o "/home/andris/upp/_out/bazaar/GCC.Debug.Debug_Full.Gui.Noblitz/Tcc_Demo_Gui" -ggdb -L"/usr/lib" -L"/usr/lib64" -Wl,-O,2 "/home/andris/upp/_out/bazaar/Tcc_Demo_Gui/G
CC.Debug.Debug_Full.Gui.Main.Noblitz/main.o" "/home/andris/upp/_out/bazaar/CtrlLib/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlLib.o" "/home/andris/upp/_out/bazaar/CtrlCore/GCC.Debug.Debu
g_Full.Gui.Noblitz/CtrlCore.o" "/home/andris/upp/_out/bazaar/PdfDraw/GCC.Debug.Debug_Full.Gui.Noblitz/PdfReport.o" "/home/andris/upp/_out/bazaar/plugin/bmp/GCC.Debug.Debug_Full.Gui
.Noblitz/BmpReg.o" "/home/andris/upp/_out/bazaar/RichText/GCC.Debug.Debug_Full.Gui.Noblitz/RichImage.o" "/home/andris/upp/_out/bazaar/plugin/png/GCC.Debug.Debug_Full.Gui.Noblitz/pn
greg.o" -Wl,--start-group "/home/andris/upp/_out/bazaar/CtrlLib/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlLib.a" "/home/andris/upp/_out/bazaar/Tcc/GCC.Debug.Debug_Full.Gui.Noblitz/Tcc.
a" "/home/andris/upp/_out/bazaar/CtrlCore/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlCore.a" "/home/andris/upp/_out/bazaar/PdfDraw/GCC.Debug.Debug_Full.Gui.Noblitz/PdfDraw.a" "/home/andr
is/upp/_out/bazaar/Draw/GCC.Debug.Debug_Full.Gui.Noblitz/Draw.a" "/home/andris/upp/_out/bazaar/plugin/bmp/GCC.Debug.Debug_Full.Gui.Noblitz/bmp.a" "/home/andris/upp/_out/bazaar/Rich
Text/GCC.Debug.Debug_Full.Gui.Noblitz/RichText.a" "/home/andris/upp/_out/bazaar/Core/GCC.Debug.Debug_Full.Gui.Noblitz/Core.a" "/home/andris/upp/_out/bazaar/plugin/png/GCC.Debug.Deb
ug_Full.Gui.Noblitz/png.a" "/home/andris/upp/_out/bazaar/plugin/tcc/GCC.Debug.Debug_Full.Gui.Noblitz/tcc.a" -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-
1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -lXrender -ldl -lXft -lfontconf
ig -lXrender -lfreetype -lnotify -ldl -lfreetype -lfontconfig -lexpat -lpthread -ldl -lz -lpng -Wl,--end-group
Error executing gcc-4.4 -static -o "/home/andris/upp/_out/bazaar/GCC.Debug.Debug_Full.Gui.Noblitz/Tcc_Demo_Gui" -ggdb -L"/usr/lib" -L"/usr/lib64" -Wl,-O,2 "/home/andris/upp/_out/bazaa
r/Tcc_Demo_Gui/GCC.Debug.Debug_Full.Gui.Main.Noblitz/main.o" "/home/andris/upp/_out/bazaar/CtrlLib/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlLib.o" "/home/andris/upp/_out/bazaar/CtrlCor
e/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlCore.o" "/home/andris/upp/_out/bazaar/PdfDraw/GCC.Debug.Debug_Full.Gui.Noblitz/PdfReport.o" "/home/andris/upp/_out/bazaar/plugin/bmp/GCC.Debu
g.Debug_Full.Gui.Noblitz/BmpReg.o" "/home/andris/upp/_out/bazaar/RichText/GCC.Debug.Debug_Full.Gui.Noblitz/RichImage.o" "/home/andris/upp/_out/bazaar/plugin/png/GCC.Debug.Debug_Ful
l.Gui.Noblitz/pngreg.o" -Wl,--start-group "/home/andris/upp/_out/bazaar/CtrlLib/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlLib.a" "/home/andris/upp/_out/bazaar/Tcc/GCC.Debug.Debug_Full.
Gui.Noblitz/Tcc.a" "/home/andris/upp/_out/bazaar/CtrlCore/GCC.Debug.Debug_Full.Gui.Noblitz/CtrlCore.a" "/home/andris/upp/_out/bazaar/PdfDraw/GCC.Debug.Debug_Full.Gui.Noblitz/PdfDra
w.a" "/home/andris/upp/_out/bazaar/Draw/GCC.Debug.Debug_Full.Gui.Noblitz/Draw.a" "/home/andris/upp/_out/bazaar/plugin/bmp/GCC.Debug.Debug_Full.Gui.Noblitz/bmp.a" "/home/andris/upp/
_out/bazaar/RichText/GCC.Debug.Debug_Full.Gui.Noblitz/RichText.a" "/home/andris/upp/_out/bazaar/Core/GCC.Debug.Debug_Full.Gui.Noblitz/Core.a" "/home/andris/upp/_out/bazaar/plugin/p
ng/GCC.Debug.Debug_Full.Gui.Noblitz/png.a" "/home/andris/upp/_out/bazaar/plugin/tcc/GCC.Debug.Debug_Full.Gui.Noblitz/tcc.a" -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -
lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -lXrender -ldl
-lXft -lfontconfig -lXrender -lfreetype -lnotify -ldl -lfreetype -lfontconfig -lexpat -lpthread -ldl -lz -lpng -Wl,--end-group
Exitcode: 1
OS: ubuntu 10.10 (and ubuntu 11.10)
/usr/lib/libgdk_pixbuf-2.0.so - exist
b4b9ef0096f53f85f38f8c84bc5eabec
|
|
|
Re: gdk_pixbuf-2.0 linker error [message #34867 is a reply to message #34857] |
Thu, 15 December 2011 13:31 |
|
Oh, suddenly I think I see the problem
Check your Output mode settings, I believe you have linking set to "static". So the linker is looking for libgdk-pixbuf-2.0.a, which is probably not present. If you switch it to "shared" it should begin to work...
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri Apr 19 13:32:12 CEST 2024
Total time taken to generate the page: 0.04532 seconds
|
|
|