Trouble compiling FreeCAD on an ARM64 SD845 device

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Trouble compiling FreeCAD on an ARM64 SD845 device

Post by EnigmaVoidX »

Hello everyone, I was linked to this post by some people. I dont own an rpi4, but I am trying to run it on a arm64 device (specifically ubuntu Bionic inside a proot/chroot enviornment on a SD845 device).

I followed the instructions on the link on the first post of this page, problem is python 2.7 doesnt work for me, I get permission denied, python 3 works though. I can easily build using python3 but when it comes to launching it I get segfaults. I dont know if its python 3 or the fact I'm using a software 3d accelerator (llvmpipe)?

Any input?
Last edited by Kunda1 on Wed Apr 08, 2020 8:29 pm, edited 1 time in total.
Reason: Thread split off from https://forum.freecadweb.org/viewtopic.php?f=42&t=37458
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- »

EnigmaVoidX wrote: Wed Apr 01, 2020 7:35 pm I dont own an rpi4, but I am trying to run it on a arm64 device .... I can easily build using python3 but when it comes to launching it I get segfaults. I dont know if its python 3 or the fact I'm using a software 3d accelerator (llvmpipe)?
Any input?
Hi, I don't know about ARM64 device, however following previous investigations the segfault issue seems due to Coin3D-QT5.
So you can try to compile PY3/Qt4 https://forum.freecadweb.org/viewtopic. ... 80#p340741
Last edited by -alex- on Fri Apr 03, 2020 7:13 pm, edited 2 times in total.
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- »

Edit: post deleted due to topic spliting.
Last edited by -alex- on Mon Apr 13, 2020 5:58 pm, edited 1 time in total.
User avatar
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: FreeCAD and Raspberry Pi 4

Post by EnigmaVoidX »

The issue for me is, during make and cMake I get errors due to my system keep throwing permission errors for Python2.7. Am in SOL? Technically a pi4 and sd845 soc both run arm64 architecture, only different is I'm running linux in a container.
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- »

EnigmaVoidX wrote: Sun Apr 05, 2020 7:54 pm Technically a pi4 and sd845 soc both run arm64 architecture, only different is I'm running linux in a container.
Ok you are right ARMV8 of RPI4 is arm64, so if your device is the same I assume compiling PY3/Qt4 should work the same, that would avoid troubles with py2 denied access isn't? Although I have not so much skills about all those stuffs sorry :?
User avatar
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: FreeCAD and Raspberry Pi 4

Post by EnigmaVoidX »

-alex- wrote: Mon Apr 06, 2020 4:57 am
EnigmaVoidX wrote: Sun Apr 05, 2020 7:54 pm Technically a pi4 and sd845 soc both run arm64 architecture, only different is I'm running linux in a container.
Ok you are right ARMV8 of RPI4 is arm64, so if your device is the same I assume compiling PY3/Qt4 should work the same, that would avoid troubles with py2 denied access isn't? Although I have not so much skills about all those stuffs sorry :?
I was able to access python2, build goes fine but I still get segfault at launch. I can access freecad in console mode. It was built with py2/qt4. It cant be opengl support as my llvmpipe has opengl support as I can use gmsh which requires openGL. This is the error as followed:

Image
User avatar
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: FreeCAD and Raspberry Pi 4

Post by EnigmaVoidX »

-alex- wrote: Fri Apr 03, 2020 2:29 pm
EnigmaVoidX wrote: Wed Apr 01, 2020 7:35 pm I dont own an rpi4, but I am trying to run it on a arm64 device .... I can easily build using python3 but when it comes to launching it I get segfaults. I dont know if its python 3 or the fact I'm using a software 3d accelerator (llvmpipe)?
Any input?
Hi, I don't know about ARM64 device, however following previous investigations the segfault issue seems due to Coin3D-QT5.
So you can try to compile PY3/Qt4 https://forum.freecadweb.org/viewtopic. ... 80#p340741
I followed your commands and now I get an error that says:
QWidget::Repaint: Recursive repaint detected.
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- »

EnigmaVoidX wrote: Wed Apr 08, 2020 6:31 am
-alex- wrote: Fri Apr 03, 2020 2:29 pm
EnigmaVoidX wrote: Wed Apr 01, 2020 7:35 pm I dont own an rpi4, but I am trying to run it on a arm64 device .... I can easily build using python3 but when it comes to launching it I get segfaults. I dont know if its python 3 or the fact I'm using a software 3d accelerator (llvmpipe)?
Any input?
Hi, I don't know about ARM64 device, however following previous investigations the segfault issue seems due to Coin3D-QT5.
So you can try to compile PY3/Qt4 https://forum.freecadweb.org/viewtopic. ... 80#p340741
I followed your commands and now I get an error that says:
QWidget::Repaint: Recursive repaint detected.
Could you give us the QT version installed? And thank you to past the output error by using the code tag tool in you message.

Kunda1 wrote:ping
Please Kunda could you maybe splite the last 6 messages from EnigmaVoidX and my replies in a new thread titeld" Trouble to compile FreeCAD on an ARM64 SD845 device"? Because that does not concerne directly Raspberry PI4 device.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Trouble compiling FreeCAD on an ARM64 SD845 device

Post by Kunda1 »

-alex- wrote: Wed Apr 08, 2020 4:30 pm
Kunda1 wrote:ping
Please Kunda could you maybe splite the last 6 messages from EnigmaVoidX and my replies in a new thread titeld" Trouble to compile FreeCAD on an ARM64 SD845 device"? Because that does not concerne directly Raspberry PI4 device.
Done ;)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: Trouble compiling FreeCAD on an ARM64 SD845 device

Post by EnigmaVoidX »

Kunda1 wrote: Wed Apr 08, 2020 8:30 pm
-alex- wrote: Wed Apr 08, 2020 4:30 pm
Kunda1 wrote:ping
Please Kunda could you maybe splite the last 6 messages from EnigmaVoidX and my replies in a new thread titeld" Trouble to compile FreeCAD on an ARM64 SD845 device"? Because that does not concerne directly Raspberry PI4 device.
Done ;)
Sweet, appreciate it
Post Reply