This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Linux (Solaris also) contains 'pkg-config' utility. When I create new small GTK+ program, I add `pkg-config gtk+-2.0 --cflags` command into 'Configuration Properties -> C/C++ -> C Compiler -> Command Line' section and `pkg-config gtk+-2.0 --libs` command into 'Configuration Properties -> C/C++ -> C Compiler -> Command Line'. After these steps I can build and run project. But 'Code Assistance' works correctly if I added all paths manually only. I need: - run 'pkg-config gtk+-2.0 --cflags' command - parse output (-I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib64/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include) -add these paths into 'Include Directories' and 'Preprocessor Directives' text fields For example See http://www.wxwidgets.org/wiki/index.php/Netbeans page. I would like: - Create project - Call context menu, Select 'Code Assistance -> Add settings' menu item ==> Wizard appears - Add 'pkg-config gtk+-2.0' command ==> IDE adds all settings into project automatically
and also i think it's not difficult to add the code assistant to the pkg-config utility, which i very appreciated to ... haha
This would allow us to convert freeway from a Makefile project to a managed project.
Please let me review the solution and fix before it gets committed....
*** Issue 133701 has been marked as a duplicate of this issue. ***
Requested pkg-config support has been implemented as part of discovery improvements - see issue 151742. As before, `pkg-config --cflags gtk+-2.0` should be added to project properties -> Build -> C/C++ compile -> Additional Options. Now code assistance understands this and configures itself with proper include directories and preprocessor definitions.