-
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, together with the following components:
- Windows 8.1 SDK
- Windows Universal CRT SDK
-
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.
-
Setup DCC tools for building.
-
On Windows 10, allow regular users to create symbolic links.
Start "Developer Command Prompt for VS 2017" and execute the following:
$ git clone https://github.com/Unity-Technologies/MeshSyncDCCPlugins
$ cd MeshSyncDCCPlugins\Plugins~\Build
$ make_meshsync_dcc_plugin.bat <meshsync_version> [optional_arguments]
$ msbuild MeshSyncDCCPlugins.sln /t:Build /p:Configuration=Release /p:Platform=x64 /m /nologo
$ cmake -DBUILD_TYPE=Release -P cmake_install.cmake
make_meshsync_dcc_plugin.bat
has two parameters:
<meshsync_version>
The MeshSync package version that we want the DCC plugins to work with.[optional_arguments]
See MakeOptionalArguments for more details.
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.18 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 also be good to add this command to ~/.bash_profile
-
Install tbb via Homebrew
$ brew install tbb
Currently, the used version is
stable 2020_U1
. -
Setup DCC tools for building.
Open a terminal and execute the following:
$ git clone https://github.com/Unity-Technologies/MeshSyncDCCPlugins
$ cd MeshSyncDCCPlugins/Plugins~/Build
$ ./make_meshsync_dcc_plugin <meshsync_version> [Custom Arguments]
$ xcodebuild -alltargets -configuration Release build
make_meshsync_dcc_plugin
has two parameters:
<meshsync_version>
The MeshSync package version that we want the DCC plugins to work with.[optional_arguments]
See MakeOptionalArguments for more details.
-
Make sure C++14 development is supported, and define
CC
andCXX
environment variables to point to C++14 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.0/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.
-
Setup DCC tools for building.
Open a terminal and execute the following:
$ git clone https://github.com/Unity-Technologies/MeshSyncDCCPlugins
$ cd MeshSyncDCCPlugins/Plugins~/Build
$ ./make_meshsync_dcc_plugin <meshsync_version> [Custom Arguments]
$ cmake --build .
$ cmake -DBUILD_TYPE=Release -P cmake_install.cmake
make_meshsync_dcc_plugin
has two parameters:
<meshsync_version>
The MeshSync package version that we want the DCC plugins to work with.[optional_arguments]
See MakeOptionalArguments for more details.
If the build is successful, the generated binary files will be located in this folder:
Dist/MeshSyncClient_<meshsync_version>_<DCC_Tool>
Refer to the installation guide to install the plugin for each DCC tool.
If the build process fails, try removing CMakeCache.txt
and return to
execute make_meshsync_dcc_plugin
again.
For example on Mac:
$ rm CMakeCache.txt
$ ./make_meshsync_dcc_plugin <meshsync_version> [Custom Arguments]
$ xcodebuild -alltargets -configuration Release build
When creating a new release, please do the following, either via CI or manually.
-
Go to the
Dist
folder and build files for distribution (zip) on all supported platforms:$ cd Plugins~/Dist $ ./clean_and_build_dist
-
Gather all the zip files for distribution in the
Dist
folder and generate the meta file of the release.$ ./create_meta > meta.txt
-
Upload all the zip files and the meta file to Github