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:42] admin |
applications:graphics:freecad [2016/07/05 03:57] (current) admin [Make an Out-of-Source Build] |
||
---|---|---|---|
Line 18: | Line 18: | ||
==== SSH ==== | ==== SSH ==== | ||
- | As we intend to mainly (exclusively) use the command line interface to compile FreeCAD, we'll activate an SSH server on our VM, making sure it uses at least one **Bridged Adapter**, so we'll be able to access it //via// ssh to carry out all operations. | + | As we intend to mainly (exclusively) use the command line interface to compile FreeCAD, we'll activate an SSH server on our VM, making sure it uses at least one **Bridged Adapter**, so we'll be able to access it //via// ssh to carry out all operations. As we intend to act as root, we'll also allow remote root login on this system: |
<Code:bash |VM CONSOLE: Install openssh-server> | <Code:bash |VM CONSOLE: Install openssh-server> | ||
> sudo apt-get install openssh-server | > sudo apt-get install openssh-server | ||
+ | > sudo nano /etc/ssh/sshd_config | ||
+ | FROM: | ||
+ | PermitRootLogin without-password | ||
+ | TO: | ||
+ | PermitRootLogin yes | ||
+ | |||
+ | CTRL-X + Y (save) | ||
+ | |||
+ | > sudo service ssh restart | ||
</Code> | </Code> | ||
+ | |||
We'll also transfer our public ssh key to the VM so we'll be able to log into it without entering a password: | We'll also transfer our public ssh key to the VM so we'll be able to log into it without entering a password: | ||
Line 30: | 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 42: | 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> |