Thx -alex- !-alex- wrote: ↑Fri May 08, 2020 4:22 pm For those who are not so familiar with Linux and admin stuffs (like me), if you want compile FreeCAD 0.19 on Ubuntu 20.04LTS, please see below commands you have to enter in terminal. Step by step:
1- install Ubuntu 20.04: I have a RPI4-4GB, I chose the 64Bit release to test it, if you have a RPI4-1or 2GB you should better install 32Bit release
https://ubuntu.com/download/raspberry-pi
2- install a desktop you like: I chose Xfce, I have some troubles with it (desktop almost freezing somtimes, I have to reboot the systeme by using tty1=Ctrl+AltF1). Edit: Ubuntu settings scroll menu ->disable screensaver and/or disable lock screen: then no troubles with Xfce desktop.
3- Update the system:Code: Select all
sudo apt-get update sudo apt-get upgrade
4- Open a terminal then download the FreeCAD source code:Code: Select all
sudo apt install git git clone https://github.com/FreeCAD/FreeCAD.git freecad-source
5- Then install dependancies following Compile_on_Linux:
Edit 2020-05-19: add some commands were missing (build-essential libtool lsb-release cmake-curses-gui). Thank you @RustyM for feedback
6- You will get:Code: Select all
sudo apt install build-essential libtool lsb-release cmake cmake-gui cmake-curses-gui 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-signals-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 libqt5webkit5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev libshiboken2-dev libspnav-dev libvtk7-dev libx11-dev libxerces-c-dev libzipios++-dev occt-draw pyside2-tools python3-dev python3-matplotlib python3-pivy python3-ply python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtsvg python3-pyside2.qtwidgets python3-pyside2uic qtbase5-dev qttools5-dev swig
Don't mind.Code: Select all
E: Unable to locate package libboost-signals-dev E: Unable to locate package python3-pyside2uic
7- Install PyQt5 package then substitute following files by using symlinks:Code: Select all
sudo apt-get install pyqt5-dev sudo apt-get install pyqt5-dev-tools cd /usr/bin/ ln -s pyrcc5 pyside2-rcc ln -s pyuic5 pyside2-uic
8- Create freecad-buid folder then compile the source code inside it:Just for your information, at this point you should get a summary report which looks like this:Code: Select all
cd mkdir freecad-build cd freecad-build/ cmake ../freecad-source -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DUSE_PYBIND11=ON
Then compile the code:Code: Select all
============== Summary report ============== -- Build type: -- Compiler: /usr/bin/c++ (9.3.0) -- Flags: -Wall -Wextra -Wno-write-strings -- Standard: Requires C++11 -- Python: [/usr/bin/python3] [.cpython-38-aarch64-linux-gnu] -- PCL: not enabled -- pybind11: not enabled -- Boost: 1.71.0 -- XercesC: [/usr/lib/aarch64-linux-gnu/libxerces-c.so] [/usr/include] -- ZLIB: 1.2.11 -- PyCXX: [/home/ubuntu/freecad-source/src] -- OCC: 7.3.0 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBin;TKBool;TKBO;TKCDF;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEP;TKSTEPBase;TKSTEPAttr;TKHLR;TKFeat] -- SMESH: build internal -- MEDFile: [/usr/lib/aarch64-linux-gnu/libmedC.so] [/usr/include] -- HDF5: 1.10.4 -- VTK: 7.1.1 -- NETGEN: not enabled -- SWIG: 4.0.1 -- Eigen3 3.3.7 -- Qt5Core: 5.12.8 -- Qt5Network: 5.12.8 -- Qt5Xml: 5.12.8 -- Qt5XmlPatterns: 5.12.8 -- Qt5Widgets: 5.12.8 -- Qt5PrintSupport: 5.12.8 -- Qt5OpenGL: 5.12.8 -- Qt5Svg: 5.12.8 -- Qt5UiTools: 5.12.8 -- Qt5Concurrent: 5.12.8 -- Qt5WebKitWidgets: 5.212.0 -- Shiboken2: 5.14.0 [/usr/lib/aarch64-linux-gnu/cmake/Shiboken2-5.14.0] [/usr/include/shiboken2;/usr/include/python3.8] -- PySide2: 5.14.0 [/usr/lib/../include/PySide2] -- PySide2Tools: [/usr/bin/pyside2-uic] [/usr/bin/pyside2-rcc] -- Freetype: 2.10.1 -- OpenGLU: /usr/lib/aarch64-linux-gnu/libGLU.so [/usr/lib/aarch64-linux-gnu/libGLU.so][/usr/include] -- Coin3D: [/usr/lib/aarch64-linux-gnu/libCoin.so] [/usr/include] -- SPNAV: [/usr/lib/libspnav.so] [/usr/include] -- Matplotlib: 3.1.2 -- Rift: not enabled (BUILD_VR) -- Doxygen: not found
Important! : about make command, you should use -j3 option, not -j4 if you install 64Bit release of Ubuntu like me, otherwise you will overshoot 4GB RAM -> RPI4 freezing.Code: Select all
make -j3
IMHO, if you have a RPI4-1GB or 2GB: you should install 32Bit Ubuntu then compile with make -j1 or -j2 Max (during the night...takes about 3 or 4 hours)
9- Your RPI4 will compile and heat (good cooling is recomended) during 3 or 4 hours
10- you get FreeCAD 0.19 !
11- Launch it:Code: Select all
cd freecad-build/bin/ ./FreeCAD
12- Enjoy FreeCAD 0.19 with great features on you RPI4!![]()
Followed your tutorial on a fresh install on the RPi4 8GB SSD1TB Geekworm housing X829+X735.
Here're some minor tweaks to do to get it build and be running from the sidebar:
1.
- Installation done on RPI4-8GB, Ubuntu Desktop 20.10 64 bit RPi onto SD Boot from sd card, format SSD under Disk, install Ubuntu Desktop 20.10 64 bit RPi https://ubuntu.com/download/raspberry-pi onto SSD. Do the boot swap https://ubuntu.com/tutorials/how-to-ins ... l-usb-boot and boot from SSD after removing the SD-card.
2.
- CTRL+ALT+F1 didn't work, using CTRL+ALT+F2/F8 when only the mouse moves but nothing else happens opens the text login where a reboot can be done.
- Also in Software & Updates add the Developer Options Pre-released .
- Each-one had to be entered one by one instead of copy paste and run at once.
So sudo apt install build-essential CR wait to install next sudo apt install libtool etc. (sometimes you'll have to confirm Y and press Enter) to work on the RPi4 8GB Ubuntu Desktop 20.10 64 bit SSD.
Code: Select all
sudo apt install build-essential
sudo apt install libtool
sudo apt install lsb-release
sudo apt install cmake
sudo apt install cmake-gui
sudo apt install cmake-curses-gui
sudo apt install libboost-date-time-dev
sudo apt install libboost-dev
sudo apt install libboost-filesystem-dev
sudo apt install libboost-graph-dev
sudo apt install libboost-iostreams-dev
sudo apt install libboost-program-options-dev
sudo apt install libboost-python-dev
sudo apt install libboost-regex-dev
sudo apt install libboost-serialization-dev
sudo apt install libboost-signals-dev
sudo apt install libboost-thread-dev
sudo apt install libcoin-dev
sudo apt install libeigen3-dev
sudo apt install libgts-bin
sudo apt install libgts-dev
sudo apt install libkdtree++-dev
sudo apt install libmedc-dev
sudo apt install libocct-data-exchange-dev
sudo apt install libocct-ocaf-dev
sudo apt install libocct-visualization-dev
sudo apt install libopencv-dev
sudo apt install libproj-dev
sudo apt install libpyside2-dev
sudo apt install libqt5opengl5-dev
sudo apt install libqt5svg5-dev
sudo apt install libqt5webkit5-dev
sudo apt install libqt5x11extras5-dev
sudo apt install libqt5xmlpatterns5-dev
sudo apt install libshiboken2-dev
sudo apt install libspnav-dev
sudo apt install libvtk7-dev
sudo apt install libx11-dev
sudo apt install libxerces-c-dev
sudo apt install libzipios++-dev
sudo apt install occt-draw
sudo apt install pyside2-tools
sudo apt install python3-dev
sudo apt install python3-matplotlib
sudo apt install python3-pivy
sudo apt install python3-ply
sudo apt install python3-pyside2.qtcore
sudo apt install python3-pyside2.qtgui
sudo apt install python3-pyside2.qtsvg
sudo apt install python3-pyside2.qtwidgets
sudo apt install python3-pyside2uic
sudo apt install qtbase5-dev
sudo apt install qttools5-dev
sudo apt install swig
Code: Select all
cd freecad-build/bin/
gedit FreeCAD.desktop
Code: Select all
[Desktop Entry]
Version=0.19
Name=FreeCAD19
Exec=/home/username/freecad-build/bin/FreeCAD
Terminal=false
Icon=/home/username/freecad-build/share/Mod/Start/StartPage/images/freecad.png
Type=Application
Comment=Feature based Parametric Modeler 3D FreeCAD 0.19
Ctrl+Q to Quit Gedit.
Back in the terminal enter following to place it in the reachable directory for the sidebar.
Code: Select all
cp ./FreeCAD.desktop ~/.local/share/applications/
RMB (Right Mouse Button) click on the icon and select Add to Favorites.
Now you'll see the Fancy FreeCAD icon in your Sidebar and ready to be clicked once and run FreeCAD0.19 on the RPi4 8GB Ubuntu Desktop 20.10

Minor remark, the Show Details links to the FreeCAD 0.18 witch is in the software list of Ubuntu Desktop 20.10, not to the actual 0.19.
Kind Regards, big thanxs to -alex- (MERCI BEAUCOUP! <3 ) for his helpful tutorial and enjoy the power FreeCAD brought onto the RPi4,
XSZ, 小獅子
P.S. Now working my way thru to get the path workbench and the Laser on the Pi

Simple. AddOn Manager working on the RPi4 Ubuntu Desktop 20.10 64bit out of the box. No additional commands in terminal. Just open Addon manager and select/Install the AddOn. Big plus for the team working on the development of FreeCAD!
My purpose is to have my designs made with FreeCAD on the RPi4, process the G-code for 3d printing (Creality Ender 5 Plus), laser engrave and cut (3018 with 5.5W for Wood, paper, plexi), CNC Milling (3018 wood/plastic) and in the near future build a 4 or preferable 5 axis CNC milling machine. Maybe send from the RPi or use another RPi with octopi or just by the SD-card for now. Would be nice indeed to design from the Pi and in the end process the G-code and send it to the steppers all from the same RPi.
A -alex- Merci pour vos renseignement
