undefined reference to symbol 'gdk_pixbuf_save_to_buffer'

Michael Schwendt mschwendt at gmail.com
Fri Sep 7 15:03:24 UTC 2012


On Fri, 7 Sep 2012 15:51:04 +0200 (CEST), Martin Gansser wrote:

> hmm, the question is, in which file do i add the '-lgdk_pixbuf-2.0' linker option ?
> thanks
> Martin

The one that creates/links the main executable. ;)
For a clean fix, intimate familiarity with CMake may be necessary, but
this work-around would do, too:

diff -Nurb --strip-trailing-cr guayadeque-svn1830-orig/src/CMakeLists.txt guayadeque-svn1830/src/CMakeLists.txt
--- guayadeque-svn1830-orig/src/CMakeLists.txt	2012-04-01 12:18:27.000000000 +0200
+++ guayadeque-svn1830/src/CMakeLists.txt	2012-09-07 16:55:47.509756245 +0200
@@ -303,6 +303,7 @@
 	${LIBINDICATE06_LIBRARIES}
 	${LIBINDICATE07_LIBRARIES}
 	${LIBAPPINDICATOR_LIBRARIES}
+    -lgdk_pixbuf-2.0
 	)
 
 INSTALL( TARGETS guayadeque



-- 
Fedora release 17 (Beefy Miracle) - Linux 3.5.3-1.fc17.x86_64
loadavg: 0.70 0.89 0.89


More information about the devel mailing list