TuononenP / pkg-config-support-for-eclipse-cdt

Provides automation of configuration needed for projects using pkg-config, such as GTK+ and gtkmm. Very useful time-saving tool for all C, C++ programmers using Eclipse.
4 stars 2 forks source link

Truncated include path #18

Closed PengZheng closed 7 years ago

PengZheng commented 8 years ago

$ pkg-config --cflags sofia-sip-ua -I/usr/include/sofia-sip-1.12

while the plugin(1.0.0.201511082105) gives '-I/usr/include/sofia-sip-1.1'

JonathanIliasPillet commented 8 years ago

I have the same issue with Eclipse Mars. I don't know if it's related, but "defines" are also omitted but this was working with an old version of pkg-config on Eclipse Kepler.

In details : pkg-config --cflags sdl2 -D_REENTRANT -I/usr/include/SDL2

but "_REENTRANT" "symbol" is not defined in "tool settings".

Linwood-F commented 7 years ago

I think I may be having this as well. Apologies as I am new to eclipse as well, but on Neon 4.6.1 and the pkg-config package I pulled today (1.0.0.201511082105) when selecting GTK+-3.0 the very last item in the path as seen when running pkg-config manually shows

-I/usr/lib/x86_64-linux-gnu/glib-2.0/include

But I get a warning in eclipse

Invalid project path: Include path not found (/usr/lib/x86_64-linux-gnu/glib-2.0/includ).

Note the missing e on the end. It did work mostly as the other GTK path related errors are now gone.

collegedude commented 7 years ago

I have the same problem since I have updated from Mars to Neon. This plugin is so essential for CDT, but there are no commits for 1 year :(

sheldonrobinson commented 7 years ago

Submitted fix, see pull request #19

TuononenP commented 7 years ago

Merged.