How to compile libnoise on Mac OS X Mountain Lio

I'm new to Mac OS X when it comes to compiling Linux-based libraries. Whenever I used the library, I just downloaded the .framework file, added it to my / Library / Frameworks, and included it in the XCODE project, and everything was fine. Now I am stuck with libnoise. I want to use it in my project, and I have no idea how to generate the .framework file /.

Can you help me?

+4
source share
2 answers

If you have libnoise, most likely it contains some kind of Makefile or configure script.

By running

  ./configure make all 

you will get a library file (libnoise.a) for your platform, OSX10.8.

Framework is essentially a folder with a specific layout and .plist file. To create such a folder automatically, you can create an expty Xcode project of type Framework and add the libnoise.a that you just created as a linker insert.

There is detailed instructions for creating the Framework from static libraries (.a files): http://www.blackdogfoundry.com/blog/creating-a-library-to-be-shared-between-ios-and-mac-os-x /

You may be missing the header files in your structure, but then you can add them to your Xcode project from libnoise sources.

This answer may also be useful: Difference between the framework and the static library in xcode4 and how to call them

Apple documentation is also good: https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html

+1
source

I'm not quite sure if this is what was meant by "with a different fork and cmake"

but i got libnoise to run on my mac using this git repo.

https://github.com/qknight/libnoise

0
source

Source: https://habr.com/ru/post/1435821/


All Articles