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.

Bug 123938 - Need support of 'pkg-config' in IDE
Summary: Need support of 'pkg-config' in IDE
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Alexey Vladykin
URL:
Keywords:
: 133701 (view as bug list)
Depends on: 151742
Blocks:
  Show dependency tree
 
Reported: 2007-12-13 11:30 UTC by soldatov
Modified: 2009-02-19 20:29 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2007-12-13 11:30:38 UTC
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
Comment 1 mikeandmore 2008-01-22 09:27:26 UTC
and also i think it's not difficult to add the code assistant to the pkg-config utility, which i very appreciated to ...
haha
Comment 2 _ gordonp 2008-06-02 17:42:40 UTC
This would allow us to convert freeway from a Makefile project to a managed project.
Comment 3 Thomas Preisler 2008-08-12 18:29:00 UTC
Please let me review the solution and fix before it gets committed....
Comment 4 Alexey Vladykin 2008-10-13 19:29:28 UTC
*** Issue 133701 has been marked as a duplicate of this issue. ***
Comment 5 Alexey Vladykin 2009-01-27 12:39:29 UTC
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.