Compiling ASSIMP - 3drepo/3drepobouncer GitHub Wiki
You will need a 3D Repo fork of ASSIMP as we have done some modifications to enable optimisations necessary for web-based rendering of 3D models.
When building using CMake GUI, firstly make sure to select x64 compiler and secondly disable ASSIMP_ENABLE_BOOST_WORKAROUND variable and instead use +Add Entry button on the right-hand side to include
- Name:
BOOST_ROOT - Type:
PATH - Value:
c:\local\boost_1_58_0\(or wherever your boost is located)
- Name:
DASSIMP_BUILD_TESTS - Type:
BOOL - Value:
false
- Name:
DASSIMP_BUILD_ASSIMP_TOOLS - Type:
BOOL - Value:
false
- Name:
DASSIMP_DOUBLE_PRECISION - Type:
BOOL - Value:
true
See also http://assimp.sourceforge.net/lib_html/cmake_build.html
To be able to compile Assimp Tools, you also need to install DirectX SDK. If you have Microsoft Visual C++ 2010 Redistributable, make sure to uninstall it from Programs and Features first.
- Once CMake generated the necessary configuration, go to the specified output folder and run Assimp.sln and compile using Visual Studio. You might want to generate x64 Release as well as Debug versions.
Set the path for BOOST (tested with Boost 1.58.0 on macOS Sierra):
export BOOST_ROOT=/usr/local/
Modify CMakeLists.txt by adding the line:
set(CMAKE_CXX_STANDARD 11)
Specify INCLUDE_DIRECTORIES in CMakeLists.txt:
INCLUDE_DIRECTORIES( /usr/local/include/ )
Build ASSIMP:
mkdir build && cd build
cmake .. \
-DASSIMP_ENABLE_BOOST_WORKAROUND=0
make
Install ASSIMP:
sudo make install