Skip to content

Commit 62ea717

Browse files
authored
Update README.md
add instructions for building on macOS
1 parent b8273ed commit 62ea717

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

README.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,36 @@ make
4040
# clone the source
4141
git clone https://github.com/Unity-Technologies/FbxExporters.git
4242
43-
set PACKAGE_VERSION=0.0.5a
43+
set PACKAGE_VERSION=0.0.14a
4444
set FBXSDK_PACKAGE_PATH=/path/to/FbxSdk.unitypackage
4545
46-
mkdir FbxExporterBuild
47-
cd FbxExporterBuild
46+
mkdir FbxExportersBuild
47+
cd FbxExportersBuild
4848
cmake ../FbxExporters -G"Visual Studio 14 2015 Win64" -DPACKAGE_VERSION=%PACKAGE_VERSION% -DFBXSDK_PACKAGE_PATH=%FBXSDK_PACKAGE_PATH%
4949
cmake --build . --target ALL_BUILD --config Release
5050
```
51+
**On macOS**
52+
53+
```
54+
# clone the source
55+
git clone https://github.com/Unity-Technologies/FbxExporters.git
56+
57+
export PACKAGE_VERSION=0.0.14a
58+
export FBXSDK_PACKAGE_PATH=/path/to/FbxSdk.unitypackage
59+
60+
if [ ! -f "${UNITY_EDITOR_PATH}" ]; then
61+
UNITY_EDITOR_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity"
62+
fi
63+
64+
if [ -d FbxExportersBuild ]; then
65+
rm -rf FbxExportersBuild
66+
fi
67+
68+
mkdir FbxExportersBuild
69+
cd FbxExportersBuild
70+
cmake ../FbxExporters -DPACKAGE_VERSION=${PACKAGE_VERSION} \
71+
-DFBXSDK_PACKAGE_PATH=${FBXSDK_PACKAGE_PATH} \
72+
-DUNITY_EDITOR_PATH="${UNITY_EDITOR_PATH}"
73+
make
74+
```
75+

0 commit comments

Comments
 (0)