Page 1 of 1
Compiling and linking with OSX frameworks
Posted: Thu Nov 27, 2008 6:33 am
by yiplite
Does anyone know how to specify to CodeLite the frameworks required for compiling and linking? I've tried to use -F/System/Library/Frameworks as both compiler and linker options, but gcc/g++ doesn't seem to be able to find the header files in the frameworks. Specifically, the openGL frameworks. Any tips would be appreciated.
Re: Compiling and linking with OSX frameworks
Posted: Thu Nov 27, 2008 11:02 am
by eranif
Not really a CodeLite question
I am not very familiar with Mac, however, I looked at the link line produced by wx-config tool, and it looks like you need:
For every toolkit which exist under /System/Library/Framework/, you simply add:
This can be added in project settings -> linker -> options
Eran
Re: Compiling and linking with OSX frameworks
Posted: Thu Nov 27, 2008 1:38 pm
by frank_frl
Hi yiplite,
I use OpenGl on Mac with this linker options.
Code: Select all
`$(WXWIN)/GCCBuildReleaseMacUnicode/wx-config --inplace --exec-prefix="$(WXWIN)/GCCBuildReleaseMacUnicode" --libs --gl-libs` -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
So to use OpenGl, you just have to add '--gl-libs' to your linker options.
Frank
Re: Compiling and linking with OSX frameworks
Posted: Thu Nov 27, 2008 3:59 pm
by yiplite
Thanks guys,
I've got it figured out. Still wondering why gluPerspective can't be found, but that's for a different forum altogether.