dust3d/docs/builds.rst

70 lines
2.0 KiB
ReStructuredText
Raw Normal View History

2018-04-13 14:58:20 +00:00
Building Dust3D
-------------------
2018-04-18 14:05:20 +00:00
Overview
==========
The UI of Dust3D built in Qt5, the only third party dependency which should be compiled separately is the CGAL library, however, CGAL will introduce some new dependencies, such as boost and gmp library.
2018-04-18 14:05:20 +00:00
Prerequisites
===============
* CGAL
https://www.cgal.org/
Building
==========
Here is the snapshot of the command line of one build, you may use different defines on your system. If you encounter build issues, please follow the ci files step by step,
https://github.com/huxingyi/dust3d/blob/master/appveyor.yml
https://github.com/huxingyi/dust3d/blob/master/.travis.yml
* Windows
2018-04-13 14:58:20 +00:00
.. code-block:: none
From Start Menu, Open Visual Studio 2017 Tools Command Prompt:
C:\Program Files\Microsoft Visual Studio\2017\Community>cd C:\Users\IEUser\Desktop\dust3d
2019-07-26 13:20:16 +00:00
C:\Users\IEUser\Desktop\dust3d>qmake DEFINES+=BOOST_INCLUDEDIR=C:\dev\boost_1_55_0\boost_1_55_0 DEFINES+=CGAL_DIR=C:\dev\CGAL-4.13
2018-04-13 14:58:20 +00:00
C:\Users\IEUser\Desktop\dust3d>nmake -f Makefile.Release
2018-04-18 14:05:20 +00:00
* Mac
2018-04-13 14:58:20 +00:00
.. code-block:: sh
$ cd /Users/jeremy/Repositories/dust3d
$ qmake -spec macx-xcode
2018-04-21 08:13:00 +00:00
Open dust3d.xcodeproj in Xcode and build
* Ubuntu
.. code-block:: sh
2018-04-21 08:13:00 +00:00
;Install Qt5
$ sudo apt-get install --reinstall qtchooser
$ sudo apt-get install qtbase5-dev
2019-07-26 13:20:16 +00:00
;Prepare compile environment for CGAL-4.13
2018-04-21 08:13:00 +00:00
$ sudo apt-get install libcgal-dev ; This is not the latest version, will encounter compiler error when build the Dust3D with this version, but helps resolve internal dependencies of CGAL for you
$ sudo apt install cmake
2019-07-26 13:20:16 +00:00
;Install CGAL-4.13
$ wget https://github.com/CGAL/cgal/releases/download/releases/CGAL-4.13/CGAL-4.13.zip
$ unzip CGAL-4.13.zip
$ cd CGAL-4.13
2018-04-21 08:13:00 +00:00
$ mkdir build
$ cd build
$ cmake ../
$ make
$ sudo make install
2018-04-21 08:13:00 +00:00
;Clone the Main project
$ cd ~/Documents
$ git clone https://github.com/huxingyi/dust3d.git
2018-04-21 08:13:00 +00:00
;Compile Dust3D
$ cd ~/Documents/dust3d
$ qmake -qt=5 -makefile
2018-04-21 08:13:00 +00:00
$ make
$ ./dust3d