2 unstable releases
0.1.0 | Oct 9, 2019 |
---|---|
0.0.0 | Oct 9, 2019 |
#3 in #fbx
104MB
115 lines
Contains (static library, 62MB) libfbxsdk-md.lib, (static library, 25MB) libfbxsdk.a, (static library, 15MB) vendor/aarch64-apple-ios/lib/libfbxsdk.a, (static library, 3MB) libxml2-md.lib, (static library, 150KB) zlib-md.lib
fbxsdk-sys
This crate provides bindings for the Autodesk FBX SDK. Note that the Autodesk FBX SDK is not open source. See the Autodesk FBX SDK License. This software contains copyrighted code owned by Autodesk, Inc. but has been modified and is not endorsed by Autodesk, Inc.
Supported platforms
The targets supported by these bindings are:
- aarch64-apple-ios
- x86_64-apple-darwin
- x86_64-pc-windows-msvc
Autodesk does not provide binaries for the iOS Simulator. Platforms that the FBX SDK supports, but these bindings don't, are Linux and all 32-bit architectures.
Updating the bundled FBX SDK
The latest FBX SDK can be downloaded from Autodesk's website here. These bindings bundle version 2019.5 of the FBX SDK. Copy over the corresponding files from the SDK to the "vendor" folder in this repository. These bindings only ship the release binaries.
Mach-O universal binaries
Autodesk provides the FBX SDK binaries as Mach-O universal binaries, but rustc doesn't support linking against these and will fail with "file too small to be an archive", so we must extract the library for our architecture from the universal binary and link against that instead:
lipo -thin x86_64 "/Applications/Autodesk/FBX SDK/2019.5/lib/clang/release/libfbxsdk.a" -output vendor/x86_64-apple-darwin/lib/libfbxsdk.a # macOS SDK
lipo -thin arm64 "/Applications/Autodesk/FBX SDK/2019.5/lib/ios-armv7/release/libfbxsdk.a" -output vendor/aarch64-apple-ios/lib/libfbxsdk.a # iOS SDK
Note: the Autodesk FBX SDK for macOS and the Autodesk FBX SDK for iOS install to the same location, and upon installing one, the other is removed, so you must copy over the files from one before installing the other!
Disclaimer
This software contains Autodesk® FBX® code developed by Autodesk, Inc. Copyright 2018 Autodesk, Inc. All rights, reserved. Such code is provided “as is” and Autodesk, Inc. disclaims any and all warranties, whether express or implied, including without limitation the implied warranties of merchantability, fitness for a particular purpose or non-infringement of third party rights. In no event shall Autodesk, Inc. be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of such code.