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:
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):
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!)
Then check libcoin-dev available version:
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:
And that's it!
Now FreeCAD should work like a charme on RPIOS64B Bullseye!
Launch it:
And enjoy the very last FreeCAD master release
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!
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 (480.64 KiB) Viewed 9194 times