package-uninstalled.pc
Andreas Volz
lists at brachttal.net
Sun Mar 5 09:12:21 PST 2006
Hi,
I'm developing a library and an application for it. So I like to use
the -uninstalled feature of pkg-config. I looked at many examples how
to use it and I think I understood it. But my library is structured
like this:
/
/include -> all headers (*.h; to be installed)
/src -> all sources (*.cpp)
In my application I use the installed headers with:
#include <mylib/myheader.h>
...
So the problem is now, that if not installed the library headers aren't
found in the "mylib" subdirectory. Renaming the "include" dir in the
library is a bad idea, because it's yet in a public CVS. Moving is
possible if there's _really_ no other solution.
So my ideas are these:
- use #include <myheader.h> only and change the .pc file.
-> I don't like this because of header name collision
- create a symlink in "include" dir to "../mylib"
-> works, but not very nice for the win32 target
- changing the "include" dir to "mylib".
-> seems to be the best solution :-(
- creating a "mylib" dir below "include" in the lib
-> same problems in CVS :-(
What do you think? I thought the "src" and "include" directories are
very common for libraries and I didn't expect any problems. Please
advice me.
regards
Andreas
More information about the pkg-config
mailing list