Hello,
I have a project i'm trying to build in CB, and it needs to be built on both mac osx and win32 platforms (ie, the developers have these platforms to work with).
Unfortunately, libraries which this project relies upon will not be located in the same place for each platform (nor will they even be the same set of libraries!).
I've seen examples of using something called pkg-config to accomplish this, as the docs seem to indicate that in the Linker Settings -> Other Settings, something like:
`pkg-config opencv --libs`
should be possible (as an example). For various unrelated reasons, I can't use pkg-config for this project, but i have something similar: a command i can run on both platforms which will produce the required command line arguments.
For example, on the windows platform, from a shell in an arbitrary directory, I can do this:
C:\>opencv_utils_libpath
-L C:\Users\Henry/tmp/opencv/OpenCV-2.2.0-win/OpenCV-2.2.0/bin
C:\>opencv_utils_includepath
-I C:\Users\Henry/tmp/opencv/OpenCV-2.2.0-win/OpenCV-2.2.0/include/opencv/ -I C:\Users\Henry/tmp/opencv/OpenCV-2.2.0-win/OpenCV-2.2.0/include/
These are producing the correct output.
In the "Other settings" however, i have added lines like:
`opencv_utils_includepath`
The idea being that this command should be executed (from anywhere in the filesystem) and the above output would be generated. However, the actual command line going to gcc is:
mingw32-g++.exe -Wall -fexceptions -mstackrealign -g -c C:\test\main.cpp -o obj\Debug\main.o
which clearly means something is failing to substitute that command's output correctly. What am I doing wrong?
Thanks in advance,
-dave-