Pkg-config plugin is missing a letter in an include path for gtk+-3.0

94 views
Skip to first unread message

Sofia Alvarenga

unread,
Feb 27, 2017, 11:43:47 AM2/27/17
to pkg-config-support-for-eclipse-cdt
Hi,

I'm trying to compile a simple Hello World C program with gtk+-3.0 using Eclipse and and the Pkg-config plugin in a Linux Mint Distribution.

I have installed:
- Eclipse IDE for C/C++ Developers, Neon 2 Release 4.6.2. Includes Eclipse CDT 9.2
- The plugin: Pkg-config support for Eclipse CDT 1.0.0 to easily add the libraries dependencies in Eclipse.

After creating a new project from the Hello World GTK+ template. I go to Project Properties, go to the pkg-config tab in C/C++ Build Settings and select the package gtk+-3.0. 

The problem I have is that one of the includes it generates for the GCC C Compiler, the "/usr/lib/x86_64-linux-gnu/glib-2.0/includ" is missing the letter "e" at the end; therefore, I get a fatal compilation error: cannot find glibconfig.h

The temporary solution is to add the missing letter "e" to the include path in the Build Settings and it works. 

I have also checked that the pkg-config works when compiling in the command line. And it also prompts the last include path correctly:

$ pkg-config --cflags gtk+-3.0
-pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

Any suggestions to fix this will be appreciated!! Thanks in advance!


Reply all
Reply to author
Forward
0 new messages