Setting private framework search path in makefile
I have a makefile that compiles using the OpenCV.framework package. This works fine if the framework is in the default framework search path, however I would like to bundle the framework with my application so that users don't need to install it. I found the -F flag for specifying additional search paths, but this doesn't seem to work.
Here is a snippet from my makefile:
# Mac OS X ifeq "$(OS)" "MacOSX" LDFLAGS += -framework OpenCV -arch i386 CFLAGS += -arch i386 endif
I tried adding -F/absolute/path/to/framework and -F./relative/path/to/framework to the LDFLAGS with no success. I was able to include the framework as part of the application using XCode, but I'm just not sure how to do the same thing with make. If anyone has any idea of how to specify the framework search path in a makefile using gcc I would appreciate your help!
Thanks for your time,
-Ross
Mac Pro, Mac OS X (10.6.3)