Compiling and linking with OSX frameworks
-
- CodeLite Curious
- Posts: 8
- Joined: Mon Nov 24, 2008 3:30 am
- Contact:
Compiling and linking with OSX frameworks
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.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Compiling and linking with OSX frameworks
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
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:
Code: Select all
-framework OpenGL
Code: Select all
-framework <framework_name>
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 176
- Joined: Sun Aug 17, 2008 2:45 pm
- Contact:
Re: Compiling and linking with OSX frameworks
Hi yiplite,
I use OpenGl on Mac with this linker options.
So to use OpenGl, you just have to add '--gl-libs' to your linker options.
Frank
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
Frank
-
- CodeLite Curious
- Posts: 8
- Joined: Mon Nov 24, 2008 3:30 am
- Contact:
Re: Compiling and linking with OSX frameworks
Thanks guys,
I've got it figured out. Still wondering why gluPerspective can't be found, but that's for a different forum altogether.
I've got it figured out. Still wondering why gluPerspective can't be found, but that's for a different forum altogether.