-
Install cmake version 3.18 or later.
Make sure to choose one of the "Add CMake to the System PATH ..." options as shown below.
-
Install Visual Studio 2017.
-
Install git. For example: SourceTree
-
Build Poco (static libraries).
- Download Poco 1.10.1 and extract the file in a folder.
- Start "Developer Command Prompt for VS 2017" and go to where Poco was extracted.
- Execute the following in the command prompt:
$ mkdir cmake-build $ cd cmake-build $ cmake .. -DBUILD_SHARED_LIBS=OFF -G "Visual Studio 15 2017" -A x64 $ cmake --build . --config Release && cmake --build . --config Debug
To build Poco libraries with other configurations, see Poco's Getting Started.
-
Add Poco_DIR environment variable to point to the Poco root folder above.
Start "Developer Command Prompt for VS 2017" and execute the following:
$ git clone https://github.com/unity3d-jp/MeshSync
$ cd MeshSync\Plugin~\Build
$ cmake -G "Visual Studio 15 2017" -A x64 ..
$ msbuild MeshSyncPlugin.sln /t:Build /p:Configuration=Release /p:Platform=x64 /m /nologo
For a regular "Command Prompt", there is a script: VsDevCmd_2017.bat under the Build folder, which if executed, will turn the prompt into a "Developer Command Prompt for VS 2017".
The build process will try to link againts Poco's release libraries in the following order:
- Release
- MinSizeRel
- RelWithDebInfo
-
Install XCode.
-
Install XCode Command Line tools.
xcode-select --install
-
Install Homebrew.
-
Install cmake version 3.20.4 or later.
brew install cmake
-
Install git. For example: SourceTree
-
Build Poco (static libraries).
- Download Poco 1.10.1 and extract the file in a folder.
- Open a terminal and go to where Poco was extracted.
- Execute the following in the command prompt:
$ mkdir cmake-build $ cd cmake-build $ cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release && cmake --build . $ cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Debug && cmake --build .
For other types of Poco configurations, see Poco's Getting Started.
-
Add Poco_DIR environment variable to point to the Poco root folder above. For example:
export Poco_DIR=~/MySDK/poco
It might be convenient to add this command to ~/.bash_profile.
-
Install tbb via Homebrew
$ brew install tbb
Currently, the used version is
stable 2020_U1
.
Open a terminal and execute the following
$ git clone https://github.com/unity3d-jp/MeshSync
$ cd MeshSync/Plugin~/Build
$ cmake -GXcode ..
$ xcodebuild -scheme mscore -configuration Release build
-
Make sure C++17 development is supported, and define
CC
andCXX
environment variables to point to C++17 dev tools.
For example, by installing devtoolset-7 in in CentOS 7, and then definingCC
andCXX
environment variables as follows:export CC=/opt/rh/devtoolset-7/root/usr/bin/gcc export CXX=/opt/rh/devtoolset-7/root/usr/bin/g++
-
Install cmake version 3.18 or later.
Example:wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4.tar.gz tar zxvf cmake-3.18.4.tar.gz cd cmake-3.18.4 ./bootstrap --prefix=/usr/local make -j$(nproc) make install
-
Install git.
-
Build Poco (static libraries).
- Download Poco 1.10.1 and extract the file in a folder.
- Open a terminal and go to where Poco was extracted.
- Execute the following in the command prompt:
$ mkdir cmake-build $ cd cmake-build $ cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON && cmake --build . $ cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_POSITION_INDEPENDENT_CODE=ON && cmake --build .
For other types of Poco configurations, see Poco's Getting Started.
-
Add Poco_DIR environment variable to point to the Poco root folder above. For example:
export Poco_DIR=~/MySDK/poco
It might be convenient to add this command to ~/.bash_profile.
Open a terminal and execute the following
$ git clone https://github.com/unity3d-jp/MeshSync
$ cd MeshSync/Plugin~/Build
$ cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build .
MeshSync plugin requires other libraries, which have been prebuilt and put inside the External
folder for convenience.
Follow the links below for the steps to rebuild them.
There is a test project that can be created by specifying -DBUILD_TESTS=ON
.
- Windows
$ cmake -G "Visual Studio 15 2017" -A x64 .. -DBUILD_TESTS=ON
- Mac
$ cmake -GXcode .. -DBUILD_TESTS=ON
- Linux
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON && cmake --build .
When this project is executed, it will send data to MeshSyncServer in Unity.