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...)
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

Additional information for FreeCAD users on RPI4 device with Raspberry OS 64B-beta or Ubuntu 20.4LTS:
If you compiled FreeCAD by following instructions of this thread or Compile_on_Linux documentation maybe did you noticed that both MeshPart_CreateFlatFace and MeshPart_CreateFlatMesh features are missing in Mesh WB.
If you want enable such convenient features to unwrap surfaces/meshes you should add -DBUILD_FLAT_MESH=ON flag to cmake options while compiling, hence:

Code: Select all

-DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DBUILD_FLAT_MESH=ON 
then compile:

Code: Select all

make -j3
This way you should get FreeCAD with MeshPart_CreateFlatFace and MeshPart_CreateFlatMesh features in Mesh WB:

2021-09-28-mesh_unwrap_RPI4_scrot.png
2021-09-28-mesh_unwrap_RPI4_scrot.png (83.02 KiB) Viewed 10314 times
unwrap_surface_RPI4.FCStd
(10.25 KiB) Downloaded 138 times

Note: unwrap is CPU consuming, pretty slow on RPI4, convenient though ;)
Enjoy! :D

OS: Debian GNU/Linux 10 (buster) (LXDE/LXDE-pi)
Word size of FreeCAD: 64-bit
Version: 0.20.25893 (Git)
Build type: Unknown
Branch: master
Hash: b8c1877133c814cd801309fd0b0266a6d1e0b75e
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

-alex- wrote: Sun May 10, 2020 1:10 pm Below some comments a bit offtopic with packaging (so please open a new thread if ones want comment or get more details about)
2- About graphic performances of FreeCAD with RPI4:
With a pretty loud test model which consists in an draft array (not Link) of 27K cubes, resolution 1920x1080:
2.b- On Ubuntu:
OS: Ubuntu 20.04 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20980 (Git)
Build type: Unknown
Branch: master
Hash: c2818d9159385d23b182dc7167af2d4bacbee94c
Python version: 3.8.2
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.3.0
Locale: English/United States (en_US)

With a test model which consists in an array (not Link) of 27K cubes, resolution 1824x984(locked):
graphic_artefact_freecad_0_19_Py3Qt5_RPI4_Ubuntu_20-04LTS.png

Comment: very slow with 0.7fps and some graphical artefact sometimes (briefely, take it easy)
Still a bit offtopic...
Now graphical performances on Ubuntu 21.10 are similar with Raspberry Pi OS, same model (array of 27K cubes): 6fps.
Some graphical artefacts still occures though, but that's not a big deal.
On this distro you just have to install FreeCAD, it works. Not necessary to compile it (except if you want to use the very last FC release, because no ARM friendly Appimage available yet as weekly release).
I did not succed to install it by using windowed Ubuntu Software, FC was not installed, furthermore desktop was frezzing frequently (see below).
So, old fashion style ;-) :
Open a terminal and just do:

Code: Select all

sudo apt update && sudo apt upgrade && sudo apt install freecad
Then you'll get FreeCAD 0.19 working:

OS: Ubuntu 21.10 (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: French/France (fr_FR)

Neofetch gives:

Code: Select all

OS: Ubuntu 21.10 aarch64 
    .ossssssssssssssssssdMMMNysssso.       Host: Raspberry Pi 4 Model B Rev 1.1 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.13.0-1009-raspi 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 3 hours, 5 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2067 (dpkg), 11 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.1.8 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 40.5 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: BCM2835 (4) @ 1.500GHz 
    .ossssssssssssssssssdMMMNysssso.       Memory: 2950MiB / 3741MiB 

And about V3D mesa driver:

Code: Select all

glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Broadcom (0x14e4)
    Device: V3D 4.2 (0xffffffff)
    Version: 21.2.2
    Accelerated: yes
    Video memory: 3741MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Broadcom
OpenGL renderer string: V3D 4.2
OpenGL version string: 2.1 Mesa 21.2.2
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 21.2.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

So, pretty good news. Unfortunatly be aware on Raspberry PI4 the desktop of this disto freezes frequently while moving windows or whatever, due to some critical graphic issue (see here bug 1946368).
That's too bad, but you can enjoy FreeCAD and many softs with no issue by using command line in terminal ;-)
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

As your maybe know Raspberry PI OS 32B Bullseye can be downloaded since 08 of Nov, I've installed it then install Freecad:

Freecad info :
OS: Raspbian GNU/Linux 11 (bullseye) (LXDE/LXDE-pi)
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.19.
Build type: Release
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: French/France (fr_FR)

But Bullseye is not gonna save FC users, there is still the same graphical crash from Coin3D with segfault issue while creating or opening a new document. So...

Code: Select all

FreeCAD 0.19, Libs: 0.19R
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

connect failed: Aucun fichier ou dossier de ce type
Coin warning in cc_glglue_instance(): Error when setting up the GL context. This can happen if there is no current context, or if the context has been set up incorrectly.
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0xb4296da0]

Sometimes I'm wondering if some libs somewhere are maybe no more suitable or maintained for 32B OS?... I'm not an expert though, far from it.
ATM Raspberry PI OS 64B Beta (Buster) is still the best option to run FreeCAD on RPI4 IMHO
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD and Raspberry Pi 4

Post by wmayer »

-alex- wrote: Fri Nov 12, 2021 12:59 am ping
Out of curiosity do you use a microSD card or an external SSD to install the OS?
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

wmayer wrote: Fri Nov 12, 2021 11:30 am Out of curiosity do you use a microSD card or an external SSD to install the OS?
I don't use no any SSD for now, only SD cards since 2 years on RPI4. I download OS, then unzip, then copy from RPI4 to /dev/sdcard by using dd command line.
About the unzip step, the img file often exceed 4GB, so official 32B RPIOS is a problem on this point, AFAIK it dosen't allow to handle such big files. That's another reason for me to prefer RPIOS 64B, even if it's maybe a bit overkill as RAM is concerned on RPI4.
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD and Raspberry Pi 4

Post by wmayer »

OK, thanks.
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

ATM I'm testing FreeCAD on RPIOS64B Bullseye.
from fresh install I've done:

Code: Select all

sudo apt update
sudo apt upgrade
sudo apt install freecad
Then FreeCAD works like a charme :D
Some icones are missing, just install Icone them workbench from Addon manager and that's fixed, no problem.
The 27k cubes model rotates at about 7fps.

OS: Debian GNU/Linux 11 (bullseye) (LXDE/LXDE-pi)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United Kingdom (en_GB)

Some graphical informations:

Code: Select all

pi@raspberrypi:~ $ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Broadcom (0x14e4)
    Device: V3D 4.2 (0xffffffff)
    Version: 20.3.5
    Accelerated: yes
    Video memory: 3795MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Broadcom
OpenGL renderer string: V3D 4.2
OpenGL version string: 2.1 Mesa 20.3.5
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.3.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
Last edited by -alex- on Wed Nov 17, 2021 6:13 pm, edited 1 time in total.
User avatar
papy
Posts: 245
Joined: Sun Sep 09, 2018 10:00 am
Location: Moselle

Re: FreeCAD and Raspberry Pi 4

Post by papy »

-alex- wrote: Wed Nov 17, 2021 5:26 pm ATM I'm testing FreeCAD on RPIOS64B Bullseye.
I have compiled Linkstage3 branch and sudo apt installed FreeCAD 0.19.
Works pretty fine, but Draft WB leads to crash FC with illegal instruction error on both FC.
I'm going to investigate further from a fresh install then I will report.
Hello Alex,
Thank you for this feedback
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

You're welcome ;)
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

Hi there, I told in my previous post that FreeCAD 0.19 works fine on RPIOS64B Bullseyse, and that's right if you install it from apt.
However I faced some trouble to get it works fine by compiling master release. That's why I had previously wrote in my previous post (then deleted, but you can see this in @papy's previous post):
Works pretty fine, but Draft WB leads to crash FC with illegal instruction error on both FC.

Actualy the illegal instruction seems related to /lib/aarch64-linux-gnu/libCoin.so.80c.
Here is the backtrace:

Code: Select all

pi@raspberrypi:~/freecad-source/build/bin $ gdb ./FreeCAD
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./FreeCAD...
(gdb) run
Starting program: /home/pi/freecad-source/build/bin/FreeCAD 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
FreeCAD 0.20, Libs: 0.20R26485 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Sheet Metal workbench loaded
[New Thread 0x7fed280e80 (LWP 146221)]
[New Thread 0x7fe0f5ee80 (LWP 146222)]
[New Thread 0x7fdbffee80 (LWP 146223)]
[New Thread 0x7fd37fde80 (LWP 146224)]
[New Thread 0x7fdb7fde80 (LWP 146225)]
[New Thread 0x7fdaffce80 (LWP 146226)]
Accelerator conflict between Std_ViewFullscreen (F11) and Std_MacroStepInto (F11)
Accelerator conflict between Std_MacroStepInto (F11) and Std_ViewFullscreen (F11)
[New Thread 0x7fd1011e80 (LWP 146246)]
[New Thread 0x7fbe3fee80 (LWP 146247)]
connect failed: Aucun fichier ou dossier de ce type
[Thread 0x7fdaffce80 (LWP 146226) exited]
[Thread 0x7fdb7fde80 (LWP 146225) exited]
[Thread 0x7fd37fde80 (LWP 146224) exited]
[Thread 0x7fdbffee80 (LWP 146223) exited]
[New Thread 0x7fdb7fde80 (LWP 146248)]
[New Thread 0x7fdaffce80 (LWP 146249)]
[New Thread 0x7fd37fde80 (LWP 146250)]
[New Thread 0x7fdbffee80 (LWP 146309)]
[New Thread 0x7fb7ffee80 (LWP 146310)]
[New Thread 0x7fb77fde80 (LWP 146311)]
[New Thread 0x7fb6ffce80 (LWP 146312)]
[Thread 0x7fb6ffce80 (LWP 146312) exited]
[Thread 0x7fb77fde80 (LWP 146311) exited]
[Thread 0x7fb7ffee80 (LWP 146310) exited]
[Thread 0x7fdbffee80 (LWP 146309) exited]

Thread 1 "FreeCAD" received signal SIGILL, Illegal instruction.
0x0000007ff2a5c090 in ?? () from /lib/aarch64-linux-gnu/libCoin.so.80c
(gdb) q
A debugging session is active.

	Inferior 1 [process 146214] will be killed.

Quit anyway? (y or n) 
OS: Debian GNU/Linux 11 (bullseye) (LXDE/LXDE-pi)
Word size of FreeCAD: 64-bit
Version: 0.20.26485 (Git)
Build type: Debug
Branch: master
Hash: 36489487113f5b65be52279165b28150323748a3
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: French/France (fr_FR)

The crash occurs in Draft WB when you start drawing a line in a blank 3D view, or when activating Draft WB if an object is already there.
This bug didn't occur with RPIOS Buster where Coin version was 4.0.0a.

Anyway, I found a workaround to fix this issue, you have to backport libcoin-dev package in order to replace libcoin80c (= 4.0.0+ds-1) by libcoin80c (= 4.0.0+ds-2).

So, firstly you have to compile FC as usually (Compile_on_Linux_Debian), but in Bullseye 2 libraries are missing, but seem maybe no more needed to get FC working (libboost-signals-dev and python3-pyside2uic. Gurus of compiling: please tell me if I'm wrong here);
So, just install following libs without the missing ones, then it will compile fine:

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-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 qtbase5-dev qttools5-dev swig

Edit 2022-02-24: add dependencies related to the new addon manager:

Code: Select all

sudo apt install python3-pyside2.qtwebengine python3-pyside2.qtwebenginecore python3-pyside2.qtwebenginewidgets python3-pyside2.qtwebchannel python3-pyside2.qtnetwork


Then proceed following Compile_on_Linux_Debian instructions:

Code: Select all

sudo apt install git
cd
git clone https://github.com/FreeCAD/FreeCAD.git freecad-source
mkdir freecad-build
cd freecad-build
cmake ../freecad-source -DBUILD_FLAT_MESH=ON
You should get this report:

Code: Select all

Summary report
==============

-- Build type:          
-- Compiler:            /usr/bin/c++ (10.2.1)
-- Flags:               -Wall -Wextra -Wno-write-strings 
-- Standard:            Requires C++17
-- Python:              3.9.2 [/usr/bin/python3.9] [.cpython-39-aarch64-linux-gnu]
-- PCL:                 not enabled
-- pybind11:            not enabled
-- Boost:               1.74.0 (1.74.0)
-- XercesC:             3.2.3 [/usr/lib/aarch64-linux-gnu/libxerces-c.so] [/usr/include]
-- ZLIB:                1.2.11
-- PyCXX:               6.2.8 [/home/pi/freecad-source/src]
-- OCC:                 7.5.1 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [/usr/lib/aarch64-linux-gnu] [/usr/include/opencascade]
-- SMESH:               build internal
--  MEDFile:            4.1.0 [/usr/lib/aarch64-linux-gnu/libmedC.so] [/usr/include]
--  HDF5:               1.10.6
--  VTK:                7.1.1
-- NETGEN:              not enabled
-- SWIG:                4.0.2
-- Eigen3               3.3.9
-- Qt5Core:             5.15.2
-- Qt5Network:          5.15.2
-- Qt5Xml:              5.15.2
-- Qt5XmlPatterns:      5.15.2
-- Qt5Widgets:          5.15.2
-- Qt5PrintSupport:     5.15.2
-- Qt5OpenGL:           5.15.2
-- Qt5Svg:              5.15.2
-- Qt5UiTools:          5.15.2
-- Qt5Concurrent:       5.15.2
-- Qt5WebKitWidgets:    5.212.0
-- Shiboken2:           5.15.2 [/usr/lib/aarch64-linux-gnu/cmake/Shiboken2-5.15.2] [/usr/lib/../include/shiboken2;/usr/include/python3.9]
-- PySide2:             5.15.2 [/usr/lib/../include/PySide2]
-- PySide2Tools:        [/usr/bin/uic] [/usr/bin/rcc]
-- Freetype:            2.10.4
-- OpenGL:              /usr/lib/aarch64-linux-gnu/libGL.so
-- OpenGLU:             [/usr/lib/aarch64-linux-gnu/libGLU.so][/usr/include]
-- Coin3D:              4.0.0 [/usr/lib/aarch64-linux-gnu/libCoin.so] [/usr/include]
-- Pivy:                0.6.5
-- SPNAV:               [/usr/lib/libspnav.so] [/usr/include]
-- Matplotlib:          3.3.4
-- Rift:                not enabled (BUILD_VR)
-- Doxygen:             not found
=================================================
Then:

Code: Select all

make -j3
If it fails though, just make -j3 again. If it still fails, please report. If you have a RPI4-2GB: make -j1
About 2 or 3 hours later you will get FreeCAD working, but remember, except Draft WB which crashs with illegal instruction.
So, to fix this you have to backport libcoin-dev from Debian testing (Bookworm) to Debian Stable (Bullseye):

Code: Select all

sudo apt edit-sources

Then you should get:

Code: Select all

deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bullseye main contrib non-free
#deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
#deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
Replace "bullseye" by "bookworm" this way:

Code: Select all

eb http://deb.debian.org/debian bookworm main contrib non-free
deb http://security.debian.org/debian-security bookworm-security main contrib non-free
deb http://deb.debian.org/debian bookworm-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bullseye main contrib non-free
#deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
#deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
Then update (but do not upgrade!)

Code: Select all

sudo apt update
Then check libcoin-dev available version:

Code: Select all

sudo apt-cache policy libcoin-dev
you should get (sorry for french locales):

Code: Select all

libcoin-dev:
  Installé : 4.0.0+ds-1
  Candidat : 4.0.0+ds-2
So, update libcoin-dev package:

Code: Select all

sudo apt install libcoin-dev
And that's it!
Now FreeCAD should work like a charme on RPIOS64B Bullseye!
Launch it:

Code: Select all

cd freecad-build/bin/
./FreeCAD
And enjoy the very last FreeCAD master release :D

BTW if you want to use FEM WB, you need to install gmsh and Ccx solver and yaml:

Code: Select all

sudo apt install gmsh calculix-ccx python3-yaml

PS: oh, don't forget to move back your source list file!

Code: Select all

sudo apt edit-sources
then replace "bookworm" by "bullseye" to get the following original content:

Code: Select all

deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bullseye main contrib non-free
#deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
#deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
Compiled_FC_master_on_RPIOS64B_Bullseye.gif
Compiled_FC_master_on_RPIOS64B_Bullseye.gif (480.64 KiB) Viewed 8385 times
Post Reply