dmsurti / AssimpKit

A library (macOS, iOS) that converts the files supported by Assimp to Scene Kit scenes.
http://assimpkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
474 stars 54 forks source link

Build Settings for source Assimp library? #52

Open lattejed opened 7 years ago

lattejed commented 7 years ago

Hi Deepak,

Sorry for the spam but I can't find a contact email for you anywhere.

I was wondering if you would mind sharing your build settings for Assimp for iOS / macOS. The original project doesn't have much support for non-Windows users.

Feel free to email me at m@lattejed.com if you would rather speak offline.

And thanks for the great library!

dmsurti commented 7 years ago

Hi Matthew,

Really sorry for this late a response!!!

To build the assimp static lib, you can find the build settings on this Assimp thread:

https://github.com/assimp/assimp/issues/1036

For your quick ref:

I built the iOS libraries with the following command:

./build.sh --stdlib=libc++ --archs="armv7 arm64 x86_64"

which generates the correct libraries, including the fat lib under lib.

The settings that I had to apply for the Xcode project, all under Build Settings are:

Enable BitCode --> NO
Other linker flags --> -lz -lstdc++
Header Search Paths --> /usr/local/include

Hope this helps, let me know if it does not work.

Feel free to email me at m@lattejed.com if you would rather speak offline.

You can also reach me at: me@deepaksurti.com

And thanks for the great library!

Thanks and glad to know you find it useful !!! :1st_place_medal: :-)