jack doesn't work with pkg-config --cflags

Bug #588109 reported by Rob Frohne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jack-audio-connection-kit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Here is the output from pkg-config:

frohro@frohro-D610:/usr/include/jack$ pkg-config --cflags --libs jack
 -ljack -lpthread -lrt

Note that there are no include files included and when I do

frohro@frohro-D610:/usr/include/jack$ pkg-config --cflags jack

frohro@frohro-D610:/usr/include/jack$

I get a blank line. However I have a directory /usr/include/jack/ which has the following files:

frohro@frohro-D610:/usr/include/jack$ ls /usr/include/jack
intclient.h jack.h midiport.h ringbuffer.h statistics.h thread.h timestamps.h transport.h types.h

The file /usr/lib/pkgconfig/jack.pc contains the following.

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: jack
Description: the Jack Audio Connection Kit: a low-latency synchronous callback-based media server
Version: 0.118.0
Libs: -L${libdir} -ljack -lpthread -lrt
Cflags: -I${includedir}

Aha! You need to make the includedir=${prefix}/include/jack in the jack.pc file.

Thanks,

Rob

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libjack-dev 0.118+svn3796-1ubuntu2 [modified: usr/lib/pkgconfig/jack.pc]
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
CheckboxSubmission: b3f7c5231c874165f4d7945857608f87
CheckboxSystem: d00f84de8a555815fa1c4660280da308
Date: Mon May 31 20:13:46 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: jack-audio-connection-kit

Revision history for this message
Rob Frohne (frohro) wrote :
Revision history for this message
Недко Арнаудов (Nedko Arnaudov) (nedko) wrote :

pkg-config does not output "-I<dir>" for directories that are already in the include search path

Revision history for this message
Rob Frohne (frohro) wrote :

Interesting. The original problem I had on this was Anjuta would not parse the symbols in jack. I asked on that list about what I needed to do and it became evident that Anjuta uses pkg-config to locate headers to locate the headers to parse symbols, and it throws an error if there is no output from pkg-config --cflags. So perhaps this bug should be tossed back to the Anjuta folks, if pkg-config should ignore headers in the include path, or perhaps it would be nice to have an option that would allow pkg-config to tell other programs where the header files are.

Also, only about half of all the packages I tested are conforming to this: For example:

frohro@frohro-D610:~/Projects/demorse$ pkg-config --cflags NetworkManager
-I/usr/include/NetworkManager

Best regards,

Rob

Revision history for this message
dino99 (9d9) wrote :

Closing that outdated report as EOL has been reached long time ago

Changed in jack-audio-connection-kit (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.