FreeCAD and Raspberry Pi 4

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
clicky
Posts: 4
Joined: Fri Sep 27, 2019 4:02 pm

Re: FreeCAD and Raspberry Pi 4

Post by clicky »

Top of 0.18 branch is better - it happily opens documents saved by version from top of the master branch. :+1:
(I believe that's version 0.18.3 and a bit)
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: FreeCAD and Raspberry Pi 4

Post by kkremitzki »

The current stable tag is 0.18.3 so you can just check that out with git and build it.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
-alex-
Veteran
Posts: 1861
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

wmayer wrote: Sun Oct 13, 2019 3:10 pm
if no warnings messages (see my previous post above, maybe I did something wrong or some libs are still missing, or ...?).
For Qt4 there should be a PySide and shiboken package that offer Python modules that can be imported at runtime. When installing them the warning should go away.
Without these modules the Tux wb doesn't load and the Path and FEM wb don't work 100% either.
Ok, however I had installed Pyside libs already:

Code: Select all

pi@raspberrypi:~ $ dpkg-query  -l '*pyside*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version         Architecture Description
+++-===========================-===============-============-=================================================
ii  libpyside-dev               1.2.2+source1-3 armhf        Python bindings for Qt 4 (development files)
ii  libpyside-py3-1.2:armhf     1.2.2+source1-3 armhf        Python3 bindings for Qt 4 (base files)
un  libpyside0.3                <none>          <none>       (no description available)
ii  libpyside1.2:armhf          1.2.2+source1-3 armhf        Python bindings for Qt 4 (base files)
ii  libpyside2-5.11             5.11.2-3+rpi1   armhf        Python 2 bindings for Qt5 (base files)
ii  libpyside2-dev              5.11.2-3+rpi1   armhf        Python bindings for Qt5 (development files)
ii  libpyside2-py3-5.11         5.11.2-3+rpi1   armhf        Python 3 bindings for Qt5 (base files)
ii  pyside-tools                0.2.15-1        armhf        development tools for PySide (uic, rcc, lupdate)
ii  pyside2-tools               5.11.2-3+rpi1   armhf        development tools for PySide2 (uic, rcc, lupdate)
ii  python-pyside               1.2.2+source1-3 all          Python bindings for Qt4 (big metapackage)
ii  python-pyside.phonon        1.2.2+source1-3 armhf        Qt 4 Phonon module - Python bindings
ii  python-pyside.qtcore        1.2.2+source1-3 armhf        Qt 4 core module - Python bindings
ii  python-pyside.qtdeclarative 1.2.2+source1-3 armhf        Qt 4 Declarative module - Python bindings
ii  python-pyside.qtgui         1.2.2+source1-3 armhf        Qt 4 GUI module - Python bindings
ii  python-pyside.qthelp        1.2.2+source1-3 armhf        Qt 4 help module - Python bindings
ii  python-pyside.qtnetwork     1.2.2+source1-3 armhf        Qt 4 network module - Python bindings
ii  python-pyside.qtopengl      1.2.2+source1-3 armhf        Qt 4 OpenGL module - Python bindings
ii  python-pyside.qtscript      1.2.2+source1-3 armhf        Qt 4 script module - Python bindings
ii  python-pyside.qtsql         1.2.2+source1-3 armhf        Qt 4 SQL module - Python bindings
ii  python-pyside.qtsvg         1.2.2+source1-3 armhf        Qt 4 SVG module - Python bindings
ii  python-pyside.qttest        1.2.2+source1-3 armhf        Qt 4 test module - Python bindings
ii  python-pyside.qtuitools     1.2.2+source1-3 armhf        Qt 4 UI tools module - Python bindings
ii  python-pyside.qtwebkit      1.2.2+source1-3 armhf        Qt 4 WebKit module - Python bindings
ii  python-pyside.qtxml         1.2.2+source1-3 armhf        Qt 4 XML module - Python bindings
un  python-pyside2-doc          <none>          <none>       (no description available)
ii  python-pyside2.qtcore       5.11.2-3+rpi1   armhf        Python bindings for Qt5 core module (Python 2)
ii  python-pyside2.qtgui        5.11.2-3+rpi1   armhf        Python bindings for Qt5 Gui module (Python 2)
ii  python-pyside2.qtopengl     5.11.2-3+rpi1   armhf        Python bindings for Qt5 OpenGL module (Python 2)
ii  python-pyside2.qtwidgets    5.11.2-3+rpi1   armhf        Python bindings for Qt5 Widgets module (Python 2)
ii  python-pyside2uic           5.11.2-3+rpi1   all          User Interface Compiler for PySide2 (Python 2)
ii  python3-pyside2.qtcore      5.11.2-3+rpi1   armhf        Python bindings for Qt5 core module (Python 3)
ii  python3-pyside2.qtgui       5.11.2-3+rpi1   armhf        Python bindings for Qt5 Gui module (Python 3)
ii  python3-pyside2.qtopengl    5.11.2-3+rpi1   armhf        Python bindings for Qt5 OpenGL module (Python 3)
ii  python3-pyside2.qtsvg       5.11.2-3+rpi1   armhf        Python bindings for Qt5 Svg module (Python 3)
ii  python3-pyside2.qtwidgets   5.11.2-3+rpi1   armhf        Python bindings for Qt5 Widgets module (Python 3)
ii  python3-pyside2uic          5.11.2-3+rpi1   all          User Interface Compiler for PySide2 (Python 3)
pi@raspberrypi:~ $ 

and about shiboken:

Code: Select all

pi@raspberrypi:~ $ dpkg-query  -l '*shiboken*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version       Architecture Description
+++-===========================-=============-============-=====================================================================
ii  libshiboken-dev             1.2.2-5.1+b1  armhf        development files for the shiboken bindings generator library
un  libshiboken-py3-1.2         <none>        <none>       (no description available)
ii  libshiboken-py3-1.2v5:armhf 1.2.2-5.1+b1  armhf        CPython3 bindings generator for C++ libraries - shared library
un  libshiboken1.2              <none>        <none>       (no description available)
ii  libshiboken1.2v5:armhf      1.2.2-5.1+b1  armhf        CPython bindings generator for C++ libraries - shared library
ii  libshiboken2-5.11           5.11.2-3+rpi1 armhf        CPython bindings generator for C++ libraries (Python2 shared library)
ii  libshiboken2-dev            5.11.2-3+rpi1 armhf        CPython bindings generator for C++ libraries (development files)
ii  libshiboken2-py3-5.11       5.11.2-3+rpi1 armhf        CPython bindings generator for C++ libraries (Python3 shared library)
ii  shiboken2                   5.11.2-3+rpi1 armhf        CPython bindings generator for C++ libraries
pi@raspberrypi:~ $ 

it seems to me that Pyside lib for Qt4-Py3 binding is installed, Shiboken py3 as well. Is there something else needed which is missing?
User avatar
-alex-
Veteran
Posts: 1861
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

clicky wrote: Sun Oct 13, 2019 8:05 pm ...Thank you for all your effort. It is working now for me, too. I did what you said (and got to the same state with PySide errors, etc).
Hi Clicky, thanks for your comments and your feedback. I have seen your post on the raspberry's forum: thanks for your reporting overthere ;)
If you expect a full experience with Freecad maybe you should compile with Py2/Qt4 build because of Pyside missing module error with Py3/Qt4 one (at least for now).
I'm trying to solve this trouble right now, but no success.
asps946701
Posts: 7
Joined: Mon Sep 23, 2019 5:53 am

Re: FreeCAD and Raspberry Pi 4

Post by asps946701 »

MartijnD wrote: Fri Oct 11, 2019 4:49 am Hello All,

Hereby I can confirm a successful build on the Pi4. I used the source of 0.18.3. As far as I can see everything is working.

Here is my short list used for installing:

Code: Select all

sudo apt install cmake build-essential libtool lsb-release swig libboost-dev libboost-date-time-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 libopencv-dev libproj-dev libvtk6-dev libx11-dev libxerces-c-dev libzipios++-dev qt4-dev-tools libqt4-dev libqt4-opengl-dev libqtwebkit-dev libshiboken-dev libpyside-dev pyside-tools python-dev python-matplotlib python-pivy python-ply python-pyside libocct*-dev occt-draw libsimage-dev doxygen libcoin-doc dh-exec libspnav-dev

wget https://github.com/FreeCAD/FreeCAD/archive/0.18.3.zip

unzip 0.18.3.zip

mkdir freecad-build

cd freecad-build

cmake -DPYTHON_EXECUTABLE=/usr/bin/python2.7 \ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7m \ -DPYTHON_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython2.7m.so \ -DPYTHON_PACKAGES_PATH=/usr/local/lib/python2.7/dist-packages/  ../freecad-source
make -j4
Hope it helps someone.

Best regards and keep up the good work!
Martijn
Thanks you very much
I executing freecad on pi 4 successfully :lol: :lol:
2019-10-18-100021_1920x1080_scrot.png
2019-10-18-100021_1920x1080_scrot.png (272.57 KiB) Viewed 2458 times
User avatar
papy
Posts: 245
Joined: Sun Sep 09, 2018 10:00 am
Location: Moselle

Re: FreeCAD and Raspberry Pi 4

Post by papy »

Hello everyone,
Thank you all for a solution for using freecad on RPI4.
I was able to install version 0.18 and 0.19 to do tests with my 3D printer. It works perfectly and surprisingly quickly.
I also install the Cura 4.2 slicer (https://www.dropbox.com/sh/s43vqzmi4d2b ... urm4a?dl=0) .
Maybe we will find a solution to switch to python 3 and Qt5, it will be Christmas before Christmas ?
Thanks again to everyone
clicky
Posts: 4
Joined: Fri Sep 27, 2019 4:02 pm

Re: FreeCAD and Raspberry Pi 4

Post by clicky »

-alex- wrote: Tue Oct 15, 2019 5:57 pm Hi Clicky, thanks for your comments and your feedback. I have seen your post on the raspberry's forum: thanks for your reporting overthere ;)
If you expect a full experience with Freecad maybe you should compile with Py2/Qt4 build because of Pyside missing module error with Py3/Qt4 one (at least for now).
I'm trying to solve this trouble right now, but no success.
You are welcome :)

I am not complaining and almost everything (I know how to use :roll: ) is working now. So far only exporting as .obj had an issue - but, that's just really strange requirement I have and I can easily find several work-arounds.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: FreeCAD and Raspberry Pi 4

Post by vocx »

clicky wrote: Fri Oct 25, 2019 2:47 pm ...So far only exporting as .obj had an issue - but, that's just really strange requirement I have and I can easily find several work-arounds.
You should report your problem. As I remember recently some developers made changes to the Wavefront OBJ exporter, so if it fails for you, there is a chance of correcting the issue.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
tiedemate
Posts: 7
Joined: Thu Nov 21, 2019 9:58 am

Re: FreeCAD and Raspberry Pi 4

Post by tiedemate »

Hey chaps,

I am trying to run FreeCAD on a Pinebook Pro. The precompiled version it will launch but then segfault when I try to open a file.
Now I tried to compile 1.8.4 using MartijnD's instructions. At 45% I get

[ 45%] Linking CXX shared library ../../../../Mod/Mesh/Mesh.so
[ 45%] Built target Mesh
make: *** [Makefile:130: all] Error 2

Any idea what I might be doing wrong? Or is the Pinebook Pro too far away from the RPi4 hardwarewise?

Thanks!
Björn
Last edited by tiedemate on Thu Nov 21, 2019 5:31 pm, edited 1 time in total.
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: FreeCAD and Raspberry Pi 4

Post by kkremitzki »

tiedemate wrote: Thu Nov 21, 2019 5:17 pm Hey chaps,

I am trying to run FreeCAD on a Pinebook Pro. The precompiled version it will launch but then segfault when I try to open a file.
Now I tried to compile 1.8.4 using MartijnD's instructions. At 45% I get

[ 45%] Linking CXX shared library ../../../../Mod/Mesh/Mesh.so
[ 45%] Built target Mesh
make: *** [Makefile:130: all] Error 2
Unfortunately this snippet doesn't contain the actual error, you'll have to scroll up in your build output to find it. This is just saying "make" failed, but "make" was calling commands itself to do the building, and it's the failure of one of those earlier commands that shows what happened.

You can also upload the entire build output to something like https://paste.debian.net/.
Any idea what I might be doing wrong? Or is the Pinebook Pro too far away from the RPi4?
No, it isn't. BTW I ordered one recently so I will be working on getting FreeCAD working on it before too long.
Thanks!
Björn
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Post Reply