Frameworks as opposed to Libraries under OSX

General questions regarding the usage of CodeLite
sausage
CodeLite Curious
Posts: 3
Joined: Mon May 28, 2018 4:42 am
Genuine User: Yes
IDE Question: C++
Contact:

Frameworks as opposed to Libraries under OSX

Post by sausage »

Hi Guys,

I help out with the Orx Portable Game Engine project, which supports multiple OSes and IDEs. A Codelite build is provided for all OSes.

We have noticed a problem with Codelite not supporting the -framework switch for MacOSX frameworks.

Our Codelite project has these options, for example:

Code: Select all

LinkOptions            :=  -dynamiclib -m32 -L/usr/lib32 -dead_strip 
Libs                   := $(LibrarySwitch)webpdecoder $(LibrarySwitch)liquidfun $(LibrarySwitch)Foundation.framework
In this example, there are some linker options, and the Libs contains both a mixture of Libraries and Frameworks.

Compiling the project will give a linker error:

Code: Select all

ld: library not found for -lFoundation.framework
Which is correct because there is no such library, but rather a framework.

Codelite can be made to work by bypassing it’s options, and feeding handwritten parameters to the compiler directly (using the linker options) with:

Code: Select all

LinkOptions            :=  -framework Foundation
..and removing the Foundation.framework from the specified Libs.

Is this possible in any way to get framework support in Codelite, or could it be supported in a future version?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Frameworks as opposed to Libraries under OSX

Post by eranif »

Please submit a feature request

Thanks
Make sure you have read the HOW TO POST thread
sausage
CodeLite Curious
Posts: 3
Joined: Mon May 28, 2018 4:42 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Frameworks as opposed to Libraries under OSX

Post by sausage »

Will do, thanks eranif.
sausage
CodeLite Curious
Posts: 3
Joined: Mon May 28, 2018 4:42 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Frameworks as opposed to Libraries under OSX

Post by sausage »

Post Reply