Code repository of Youtube tutorial videos on using 3D Manufacturing Format (3MF) + Lib3MF library.
Build Status |
---|
Windows x64 macOS Linux x64 |
The simplest way to build the project is by running the build.py
script.
usage: build.py [-h] [--generator GENERATOR] [--build-location BUILD_LOCATION]
[--install-location INSTALL_LOCATION] [--build-debug]
[--build-release] [--build-relwithdebug]
[--build-args [BUILD_ARGS [BUILD_ARGS ...]]] [-j JOBS]
[--force FORCE_CLEAN_BUILD]
workspace_location
- Required:
- C++ compiler:
- Gcc
- Xcode
- Microsoft Visual Studio
- CMake
- Python
- C++ compiler:
- Optional
- Ninja
By default the build directory is created in the workspace_location but the location can change to where ever you want by setting the --build-location
flag.
Build log log.txt
is generated inside the build directory.
It is up to the user to select the Cmake Generator of choice.To use the Ninja Generator, you need to first install the Ninja binary from https://ninja-build.org/ You then need to set the generator
flag to Ninja and the CMAKE_MAKE_PROGRAM variable
to the Ninja binary you downloaded.
- Clone this project
- Generate Visual Studio solution or Xcode project:
- cd into cloned project directory
- make a directory called build/
- cd into the build/
- on windows run cmake .. -G "YOUR VISUAL STUDIO VERSION Win64"
- on mac run cmake .. -G "Xcode" -DCMAKE_OSX_ARCHITECTURES=x86_64
- if you want release build, simply pass -DCMAKE_BUILD_TYPE=Release
- Install all needed tools, libraries, and compilers.
sudo apt-get install cmake clang xorg-dev libx11-dev libglu1-mesa-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev uuid-dev gtk+3.0
sudo dnf -y install cmake clang libX11-devel libX11-devel libXrandr-devel libXinerama-devel libXcursor-devel mesa-libGL gtk3-devel uuid-devel
-
Generate UNIX Makefile:
- cd into cloned project directory
- make a directory called build/
- cd into the build/
- run cmake ..
- if you want release build, simply pass -DCMAKE_BUILD_TYPE=Release
- make -j4 ( pass -j flag if you want to use more processors for compiling )
- cd bin/
- ./ThreeMFApp