Difference between revisions of "FreeCAD from Source"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "=Building FreeCAD from source on LMDE6= Based on: [https://wiki.freecad.org/Compile_on_Linux FreeCAD Documentation / Compile on Linux] '''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">The required tools:</span>''' * <code>sudo apt install git cmake <s>cmake-gui </s></code> '''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">Get the source:</span>''' <span style="color: rgb(153, 51, 102);" data-mce-style="color: #9933...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Building FreeCAD from source on LMDE6=
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{!}}+ Proven on:
{{!}}- < --="" lmde="" -->
{{!}} style="text-align: center; width: 65.675px;" {{!}} [[File:Logo LMDE.png{{!}}60px{{!}}link=https://linuxmint.com/edition.php?id=279{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 40px;" {{!}} 6 (Faye)
{{!}}
 
<br>
{{!}}}
 
Based on: [https://wiki.freecad.org/Compile_on_Linux FreeCAD Documentation / Compile on Linux]
Based on: [https://wiki.freecad.org/Compile_on_Linux FreeCAD Documentation / Compile on Linux]


'''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">The required tools:</span>'''
== '''<span style="color: rgb(132, 63, 161);">The required tools:</span>''' ==


* <code>sudo apt install git cmake <s>cmake-gui </s></code>
* <code>sudo apt install git cmake</code>


'''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">Get the source:</span>'''
== '''<span style="color: rgb(132, 63, 161);">Get the source:</span>''' ==


<span style="color: rgb(153, 51, 102);" data-mce-style="color: #993366;">'''Note: This builds a non-stable version.''' (Whatever state the code is currently in...)</span>
<span style="color: rgb(153, 51, 102);">'''Note: This builds a non-stable version.''' (Whatever state the code is currently in...)</span>


* <code>git clone --recurse-submodules <nowiki>https://github.com/FreeCAD/FreeCAD.git</nowiki> freecad-source</code>
* <code>git clone --recurse-submodules <nowiki>https://github.com/FreeCAD/FreeCAD.git</nowiki> freecad-source</code>
'''<span style="color: rgb(132, 63, 161);">or maybe:</span>'''


'''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">or maybe:</span>'''
<span style="color: rgb(153, 51, 102);">'''Note: This should build a stable version.''' (You can change branch to match current stable version...)</span>
 
<span style="color: rgb(153, 51, 102);" data-mce-style="color: #993366;">'''Note: This should build a stable version.''' (You can change branch to match current stable version...)</span>


* <code>git clone --recurse-submodules <nowiki>https://github.com/FreeCAD/FreeCAD.git</nowiki> --branch releases/FreeCAD-0-21 freecad-source</code>
* <code>git clone --recurse-submodules <nowiki>https://github.com/FreeCAD/FreeCAD.git</nowiki> --branch releases/FreeCAD-0-21 freecad-source</code>


'''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">The prerequisites:</span>'''
== '''<span style="color: rgb(132, 63, 161);">The prerequisites:</span>''' ==


* <code>sudo apt install libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev libboost-serialization-dev libboost-thread-dev libcoin-dev libeigen3-dev libgts-bin libgts-dev libkdtree++-dev libmedc-dev libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev libopencv-dev libproj-dev libpyside2-dev libqt5opengl5-dev libqt5svg5-dev qtwebengine5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev libshiboken2-dev libspnav-dev libvtk9-dev libx11-dev libxerces-c-dev libzipios++-dev occt-draw pyside2-tools python3-dev python3-matplotlib python3-packaging python3-pivy python3-ply python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtsvg python3-pyside2.qtwidgets python3-pyside2.qtnetwork python3-pyside2.qtwebengine python3-pyside2.qtwebenginecore python3-pyside2.qtwebenginewidgets python3-pyside2.qtwebchannel python3-markdown python3-git qtbase5-dev qttools5-dev swig libyaml-cpp-dev</code>
* <code>sudo apt install libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev libboost-serialization-dev libboost-thread-dev libcoin-dev libeigen3-dev libgts-bin libgts-dev libkdtree++-dev libmedc-dev libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev libopencv-dev libproj-dev libpyside2-dev libqt5opengl5-dev libqt5svg5-dev qtwebengine5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev libshiboken2-dev libspnav-dev libvtk9-dev libx11-dev libxerces-c-dev libzipios++-dev occt-draw pyside2-tools python3-dev python3-matplotlib python3-packaging python3-pivy python3-ply python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtsvg python3-pyside2.qtwidgets python3-pyside2.qtnetwork python3-pyside2.qtwebengine python3-pyside2.qtwebenginecore python3-pyside2.qtwebenginewidgets python3-pyside2.qtwebchannel python3-markdown python3-git qtbase5-dev qttools5-dev swig libyaml-cpp-dev</code>


'''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">Set it up:</span>'''
== '''<span style="color: rgb(132, 63, 161);">Set it up:</span>''' ==


* <code>cd freecad-source/</code>
* <code>cd freecad-source/</code>
* <code>mkdir build</code>
* <code>mkdir build</code>
* <code>cd build</code>
* <code>cd build</code>
* <code>cmake ../</code>
* <code>cmake ../</code>


'''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">Build it:</span>'''
== '''<span style="color: rgb(132, 63, 161);">Build it:</span>''' ==


* <code>make -j$(nproc --ignore=2)</code>
* <code>make -j$(nproc --ignore=2)</code>


'''<span style="color: rgb(132, 63, 161);" data-mce-style="color: #843fa1;">Install it:</span>'''
== '''<span style="color: rgb(132, 63, 161);">Install it:</span>''' ==


* <code>sudo make install</code>
* <code>sudo make install</code>

Latest revision as of 13:57, 3 March 2024

Proven on:
Logo LMDE.png
6 (Faye)


Based on: FreeCAD Documentation / Compile on Linux

The required tools:

  • sudo apt install git cmake

Get the source:

Note: This builds a non-stable version. (Whatever state the code is currently in...)

  • git clone --recurse-submodules https://github.com/FreeCAD/FreeCAD.git freecad-source

or maybe:

Note: This should build a stable version. (You can change branch to match current stable version...)

  • git clone --recurse-submodules https://github.com/FreeCAD/FreeCAD.git --branch releases/FreeCAD-0-21 freecad-source

The prerequisites:

  • sudo apt install libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev libboost-serialization-dev libboost-thread-dev libcoin-dev libeigen3-dev libgts-bin libgts-dev libkdtree++-dev libmedc-dev libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev libopencv-dev libproj-dev libpyside2-dev libqt5opengl5-dev libqt5svg5-dev qtwebengine5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev libshiboken2-dev libspnav-dev libvtk9-dev libx11-dev libxerces-c-dev libzipios++-dev occt-draw pyside2-tools python3-dev python3-matplotlib python3-packaging python3-pivy python3-ply python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtsvg python3-pyside2.qtwidgets python3-pyside2.qtnetwork python3-pyside2.qtwebengine python3-pyside2.qtwebenginecore python3-pyside2.qtwebenginewidgets python3-pyside2.qtwebchannel python3-markdown python3-git qtbase5-dev qttools5-dev swig libyaml-cpp-dev

Set it up:

  • cd freecad-source/
  • mkdir build
  • cd build
  • cmake ../

Build it:

  • make -j$(nproc --ignore=2)

Install it:

  • sudo make install