A PCRE internal error occured. This might be caused by a faulty plugin
====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
applications:graphics:freecad [2016/07/05 02:52] admin [SSH] |
applications:graphics:freecad [2016/07/05 03:57] (current) admin [Make an Out-of-Source Build] |
||
---|---|---|---|
Line 40: | Line 40: | ||
===== FreeCAD .deb Compilation ===== | ===== FreeCAD .deb Compilation ===== | ||
+ | |||
+ | We will refer to the [[http://www.freecadweb.org/wiki/?title=CompileOnUnix|FreeCAD Website instructions]] to install on Debian Linux. | ||
Let's now ssh into the VM to start our operations: | Let's now ssh into the VM to start our operations: | ||
Line 52: | Line 54: | ||
<Code:bash |Install checkinstall> | <Code:bash |Install checkinstall> | ||
- | > | + | > apt-get install checkinstall |
+ | </Code> | ||
+ | |||
+ | ==== Get the FreeCAD Source ==== | ||
+ | <Code:bash |Use git to Get FreeCAD Source> | ||
+ | > cd ~ | ||
+ | > git clone https://github.com/FreeCAD/FreeCAD.git free-cad-code | ||
+ | </Code> | ||
+ | This will place a copy of the latest version of the FreeCAD source code in a new directory called "free-cad-code". | ||
+ | |||
+ | ==== Install Third Party Libraries ==== | ||
+ | We now need to install all the FreeCAD required third party libraries, as well as the compiler environment: | ||
+ | |||
+ | <Code:bash |Install compile environment and third party libraries> | ||
+ | > apt-get install \\ | ||
+ | build-essential \\ | ||
+ | cmake \\ | ||
+ | python \\ | ||
+ | python-matplotlib \\ | ||
+ | libtool \\ | ||
+ | libcoin80-dev \\ | ||
+ | libsoqt4-dev \\ | ||
+ | libxerces-c-dev \\ | ||
+ | libboost-dev \\ | ||
+ | libboost-filesystem-dev \\ | ||
+ | libboost-regex-dev \\ | ||
+ | libboost-program-options-dev \\ | ||
+ | libboost-signals-dev \\ | ||
+ | libboost-thread-dev \\ | ||
+ | libboost-python-dev \\ | ||
+ | libqt4-dev \\ | ||
+ | libqt4-opengl-dev \\ | ||
+ | qt4-dev-tools \\ | ||
+ | python-dev \\ | ||
+ | python-pyside \\ | ||
+ | pyside-tools \\ | ||
+ | liboce-foundation-dev \\ | ||
+ | liboce-modeling-dev \\ | ||
+ | liboce-ocaf-dev \\ | ||
+ | liboce-visualization-dev \\ | ||
+ | liboce-ocaf-lite-dev \\ | ||
+ | oce-draw \\ | ||
+ | libeigen3-dev \\ | ||
+ | libqtwebkit-dev \\ | ||
+ | libshiboken-dev \\ | ||
+ | libpyside-dev \\ | ||
+ | libode-dev \\ | ||
+ | swig \\ | ||
+ | libzipios++-dev \\ | ||
+ | libfreetype6 \\ | ||
+ | libfreetype6-dev \\ | ||
+ | libsimage-dev \\ | ||
+ | python-pivy \\ | ||
+ | python-qt4 \\ | ||
+ | libspnav-dev \\ | ||
+ | libmedc-dev \\ | ||
+ | libvtk6-dev \\ | ||
+ | libproj-dev | ||
+ | </Code> | ||
+ | |||
+ | The following packages are required if we want to create a Debian package: | ||
+ | <Code:bash |Additional packages> | ||
+ | > apt-get install dh-make devscripts lintian | ||
+ | </Code> | ||
+ | |||
+ | ==== Make an Out-of-Source Build ==== | ||
+ | <Code:bash |Build FreeCAD out-of-source> | ||
+ | > mkdir freecad-build | ||
+ | > cd freecad-build | ||
+ | > cmake ../free-cad-code -DCMAKE_BUILD_TYPE=Release | ||
+ | > make | ||
+ | </Code> | ||
+ | |||
+ | The FreeCAD executable now resides in the''bin'' folder, we can launch it with: | ||
+ | <Code:bash |Launch FreeCAD> | ||
+ | > ./bin/FreeCAD | ||
</Code> | </Code> |