melonius
Posts: 6
Joined: Thu Jan 28, 2021 8:11 am

Re: FreeCAD on PI4 and Raspbian Buster.

Thu Jan 28, 2021 8:33 am

leggazoid wrote:
Sat Jun 06, 2020 8:20 pm
Just for fun I tried to compile FreeCAD version 0.19 from git on the beta software Raspi OS 64-bit based on Debian.
.....
the command '

Code: Select all

cmake .. -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3
shows:

Code: Select all

=================================================
Now run 'cmake --build /home/pi/freecad-source/build' to build FreeCAD
=================================================

-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/freecad-source/build
I must run this command or only the one leggazoid said ?

Code: Select all

make -j$(nproc)

User avatar
scruss
Posts: 4187
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: FreeCAD on PI4 and Raspbian Buster.

Thu Jan 28, 2021 2:42 pm

Yes, you have to run make. The -j option is just the number of processes to use. You might run out of memory during the build if you set -j too high. nproc returns 4 on a Raspberry Pi.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: FreeCAD on PI4 and Raspbian Buster.

Fri Jan 29, 2021 1:06 am

I usually use "make -j 3" on a 4GB Pi4
It leaves resources to still surf the web.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

melonius
Posts: 6
Joined: Thu Jan 28, 2021 8:11 am

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Feb 07, 2021 1:46 pm

thanks.
FreeCAD 0.19 (23841) + raspberry pi 4 4Gb + raspberry pi OS 64 bits (beta)
It is already installed and working reasonably well, I have used:

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 libsimage-dev doxygen libcoin-doc libspnav-dev
git clone https://github.com/FreeCAD/FreeCAD.git freecad-source
cd freecad-source
mkdir build
cd build
cmake .. -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3
make -j4
I start it with: ~/freecad-source/build/bin/FreeCAD

melonius
Posts: 6
Joined: Thu Jan 28, 2021 8:11 am

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Feb 07, 2021 1:46 pm

thanks.
raspberry pi 4 4Gb + raspberry pi OS 64 bits (beta) + FreeCAD 0.19 (23841)
I have already installed it and it is working reasonably well, without errors, I have used:

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 libsimage-dev doxygen libcoin-doc libspnav-dev
git clone https://github.com/FreeCAD/FreeCAD.git freecad-source
cd freecad-source
mkdir build
cd build
cmake .. -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3
make -j4
I start it with: ~/freecad-source/build/bin/FreeCAD

I don't know how long it took, at least a couple of hours.
max temperature 57ºC. Whit a passive cooler box

ecredic
Posts: 1
Joined: Fri Apr 16, 2021 5:15 pm

Re: FreeCAD on PI4 and Raspbian Buster.

Fri Apr 16, 2021 5:19 pm

I did as you said, the compilation looks ok, but I am not been able to run FreeCAD 0.19.


Only 0.18 is running.

User avatar
RogerW
Posts: 307
Joined: Sat Dec 20, 2014 12:15 pm
Location: London UK

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Apr 18, 2021 9:10 am

melonius wrote:
Sun Feb 07, 2021 1:46 pm
thanks.
FreeCAD 0.19 (23841) + raspberry pi 4 4Gb + raspberry pi OS 64 bits (beta)
It is already installed and working reasonably well, I have used:

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 libsimage-dev doxygen libcoin-doc libspnav-dev
git clone https://github.com/FreeCAD/FreeCAD.git freecad-source
cd freecad-source
mkdir build
cd build
cmake .. -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3
make -j4
I start it with: ~/freecad-source/build/bin/FreeCAD
I just followed this on a Pi4B-8 with up to date 64 bit OS. The build process went through and FreeCAD starts OK. However it is still fragile. It has failed with Segmentation fault when opening an OpenSCAD file and then when following the getting started instructions. Unfortunately it does not seem to be usable yet.

fruitoftheloom
Posts: 27086
Joined: Tue Mar 25, 2014 12:40 pm

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Apr 18, 2021 9:24 am

RogerW wrote:
Sun Apr 18, 2021 9:10 am
melonius wrote:
Sun Feb 07, 2021 1:46 pm
thanks.
FreeCAD 0.19 (23841) + raspberry pi 4 4Gb + raspberry pi OS 64 bits (beta)
It is already installed and working reasonably well, I have used:

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 libsimage-dev doxygen libcoin-doc libspnav-dev
git clone https://github.com/FreeCAD/FreeCAD.git freecad-source
cd freecad-source
mkdir build
cd build
cmake .. -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3
make -j4
I start it with: ~/freecad-source/build/bin/FreeCAD
I just followed this on a Pi4B-8 with up to date 64 bit OS. The build process went through and FreeCAD starts OK. However it is still fragile. It has failed with Segmentation fault when opening an OpenSCAD file and then when following the getting started instructions. Unfortunately it does not seem to be usable yet.

Fortunately Freecad version 19 will be in Debian Bullseye:

https://packages.debian.org/bullseye/freecad
I am a volunteer, take what I advise as advice not the utopian holy grail.

User avatar
RogerW
Posts: 307
Joined: Sat Dec 20, 2014 12:15 pm
Location: London UK

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Apr 18, 2021 9:47 am

Thanks for that. I will have to wait.

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Apr 18, 2021 10:41 am

Fortunately Freecad version 19 will be in Debian Bullseye:
That will be nice I think I remember chopping things off to get it to compile.

5.10.17, more for those brave, messing with 5.10.21+ seems painful at the moment.
Wonder how far away Bullseye is on Pi's?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
davidcoton
Posts: 6365
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Apr 18, 2021 4:35 pm

Gavinmc42 wrote:
Sun Apr 18, 2021 10:41 am
Wonder how far away Bullseye is on Pi's?
I expect Bullseye to be a big hit :lol:
Location: 345th cell on the right of the 210th row of L2 cache

-alex-
Posts: 9
Joined: Mon Apr 13, 2020 12:50 pm

Re: FreeCAD on PI4 and Raspbian Buster.

Mon May 17, 2021 3:08 pm

Hi there, AFAIK there is no fix yet about segfault issue of FreeCAD on RPI4 RPIOS32B Buster.
As I'm concerned I have no problem to use FreeCAD on RPI4 by compiling it on RPIOS64B beta test. Works pretty fine (segfault crash time to time, but that's ok), that's great to experience FreeCAD on RPI4-4GB everyday :D
However I have very poor skills about programming and admin stuffs :oops:
I'm just an end user of FreeCAD, but I try my best to help to find a fix for the community, I think it's important to find a fix for RPIOS32B which is still the official OS AFAIK. IMHO that's important to ease the access of FreeCAD (aka FC) on RPI4, furthermore for young users.
Any help much appreciated from devs or RPI power users :roll:


Here I would like to summarize some of my tests in the past:
Bug traker reference: https://tracker.freecadweb.org/view.php?id=4083#c15126

1- If FreeCAD compiled with PY2/Qt4 RPIOS32B-> no crash
2- If FreeCAD compiled with PY3/Qt4 RPIOS32B-> no crash when creating new document
3- If FreeCAD compiled with PY2/Qt5 RPIOS32B-> crash with segfault occurs when creating new document

4- If FreeCAD compiled with PY3/Qt5 RPIOS32B-> crash with segfault occurs when creating new document
5- If FreeCAD compiled with PY3/Qt5 RPIOS64B(betatest)-> no crash when creating new document (it happens time to times when opening other documents, maybe not related)
If FreeCAD compiled with PY3/Qt5 Ubuntu 20.04 LTS (XFCE/xubuntu)64B -> no crash when creating new document

You can get more details here: https://forum.freecadweb.org/viewtopic. ... 68#p456568

As you maybe remember Coin3D was suspected. However AFAIK there is no difference about libraries used to compile FC between points 4 and 5 above. The only difference concerns the OS: 32B or 64B beta test.
So, I'm wondering about RPI4 V3D graphic driver maybe?
plugwash wrote:
Tue May 12, 2020 4:01 pm
I wonder if it's possible to switch to llvmpipe on raspbian and if-so what impact that has on freecad.
Good idea to investigate the issue, any idea about how to do that?

Additional information: there is a Py3 test code to check if Coin3D crashes or display the scene, outside of FreeCAD:
https://forum.freecadweb.org/viewtopic. ... 30#p337801
This test fails with FC Py3/Qt5, for both RPIOS 32B and 64B.

This is where I am. Any help would be much appreciated. Thanks for your kind attention.
BR
Alex

turpialito
Posts: 1
Joined: Tue Jun 22, 2021 11:37 pm

Re: FreeCAD on PI4 and Raspbian Buster.

Tue Jun 22, 2021 11:50 pm

Sorry I'm late to the party, but I just wanted to report it's happening on all my Pi's: 2B+ and 3A. I'd love to get it working.

Like ThrustPork said, it's all I need to integrate my Windows, Mac OS and Ubuntu machines all together.

So far I have fully-compatible graphics software (GIMP, Inkscape, Scribus, KDENLive, Libre Office) across all my platforms, except FreeCAD (sniff).

Eagerly awaiting a fix so I can slap complete compatibility across a few people's faces LOL!


FOSS your mind... your ass will follow

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: FreeCAD on PI4 and Raspbian Buster.

Thu Jun 24, 2021 1:09 am

I am hoping it will all just work on the next big release of Raspberry Pi OS.
Seen lots of good stuff in the next Kernel and Mesa3D.

FreeCAD and maybe Kicad are the last on my list.
I use Altium on Windows so it will be a big switch to Kicad.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Botspot
Posts: 1740
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: FreeCAD on PI4 and Raspbian Buster.

Sat Jul 10, 2021 8:32 pm

A working version of FreeCAD is installable from the Pi-Apps Raspberry Pi app store.
The install script can be inspected here: https://github.com/Botspot/pi-apps/blob ... install-32 Basically, it installs a properly-compiled FreeCAD build, thanks to chunky-milk on Github.
Pi-Apps - #1 most popular Raspberry Pi app store with >100,000 users.
Includes the Zoom desktop app, 3 ways to run Minecraft, 7 web browsers, appearance themes, and 72 more.
More info: https://github.com/Botspot/pi-apps

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Jul 11, 2021 12:40 am

Took a little time but a simple test did not break it.
Running on a tiny overclocked 2.0GHz Pi400.
It is now time to grab some old Windows FC 16 designs and see it they import.

Need to get a 3D printer and try those Slicers on FC models.
More software I don't have time to learn :lol:

Now very close to not requiring Windows.
Altium PCB Designer is the last thing I need Windows for.
Installing LibrePCB, never really liked Kicad.

Thanks for your and those others efforts.
Attachments
Pifreecad1.png
Pifreecad1.png (176.27 KiB) Viewed 260 times
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Botspot
Posts: 1740
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Jul 11, 2021 12:44 am

Gavinmc42 wrote:
Sun Jul 11, 2021 12:40 am
Now very close to not requiring Windows.
Altium PCB Designer is the last thing I need Windows for.
Today I tried installing Altium on my Pi to see if it would work. It almost did.

Gavinmc42, have you tried installing Wine from pi-apps and then running something like this to install Altium?

Code: Select all

wine /home/pi/Downloads/flstudio_win_20.8.3.2304.exe
For me, the installation proceeded all the way to the end after 45 minutes, but then the installer froze.
Pi-Apps - #1 most popular Raspberry Pi app store with >100,000 users.
Includes the Zoom desktop app, 3 ways to run Minecraft, 7 web browsers, appearance themes, and 72 more.
More info: https://github.com/Botspot/pi-apps

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Jul 11, 2021 4:48 am

Altium is buggy even on a big Windows PC ;)
I do mostly single or double sided so 32 layers is wasted on me.

Autotrax will probably be much easier.
I won't have to learn anything, just remember how to use it.
Should run in DOSbox?

https://techdocs.altium.com//display/AL ... +downloads
Easytrax too?

Autotrax-DEX seems to be something else.

I have Kicad installed but it is 5.1 and the CM4 files need 5.99 I think.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Botspot
Posts: 1740
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: FreeCAD on PI4 and Raspbian Buster.

Sun Jul 11, 2021 9:40 pm

Gavinmc42 wrote:
Sun Jul 11, 2021 4:48 am
Altium is buggy even on a big Windows PC ;)
Have you ever considered Eagle CAD? I found that it was fairly easy to learn, and it runs flawlessly on RPi using the Box86 emulator.
Gavinmc42 wrote:
Sun Jul 11, 2021 4:48 am
Should run in DOSbox?
I was trying the Box86+x86 Wine approach. It's in Pi-Apps for convenience. Some things work, while others don't.
Pi-Apps - #1 most popular Raspberry Pi app store with >100,000 users.
Includes the Zoom desktop app, 3 ways to run Minecraft, 7 web browsers, appearance themes, and 72 more.
More info: https://github.com/Botspot/pi-apps

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: FreeCAD on PI4 and Raspbian Buster.

Mon Jul 12, 2021 3:19 am

Have used Eagle a few times, enough to recognize Eagle schematics.
But they have now sold out and gone Corporate.

As I head into my retirement I need something free and easy to use.
It will then be just another a hobby.
For me all the hard design is done on the Pi PCB.
My plug in/on stuff is less demanding.

Sticking it all in a box/gadget, that's where FreeCAD is handy.
Quick and easy to use and fits the way my brain works.
I spent a few years learning, doing n making CNC stuff before Pi's.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Raspberry Pi OS”