Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 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

Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by EnigmaVoidX »

Hello everyone,

I hope everyone is doing well. I wanted to try out and see if FreeCAD could work inside a Linux P-root container running on arm64 device. I am accessing my Ubuntu desktop with tigerVNC and it has been setup to use software 3d rendering (llvmpipe 128bit to be exact). I have no issues rendering anything using Blender so I am a bit surprised I couldn't launch into FreeCAD.

All did was apt-get install freecad, and then inside terminal I typed freecad, it attempts to launch but then exits with Segmentation Error. However there is no error message or code being displayed, just Segmentation Error. I can however type in freecad --console and open the python version of it. However I do not know why the gui won't load. Any tips?
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by vocx »

EnigmaVoidX wrote: Tue Mar 31, 2020 4:48 am ... if FreeCAD could work inside a Linux P-root container running on arm64 device. ...
I am not sure what that is, but FreeCAD doesn't exactly run well in ARM devices. It's been known to run on the Raspberry Pi 3 and 4 under Raspbian 32-bit (armhf), I think, but not with Py3 and Qt5. You have to run the Py2/Qt4 version, or maybe it was something like the Py3/Qt4 combination.

It seems people run both FreeCAD 0.18 and 0.19, but these are self-compiled versions, not just installed from apt-get. It takes a couple of hours to compile FreeCAD in those ARM devices.

FreeCAD and Raspberry Pi 4

Unfortunately, the ARM situation is a bit difficult to troubleshoot. Raspbian users report problems to Debian, but they just send the reports back to Raspbian, and in turn Raspbian users ask here. I don't think any of the main developers test FreeCAD in an ARM device so it's difficult to find out why it doesn't work.
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.
User avatar
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by EnigmaVoidX »

So I followed the link and build freecad 0.18. It wouldn't build with python2.7. It seems I can't even access python 2.7 but however I can use python3. After building I can't launch freecad because of sigsigV segfaults. I dont know if its due to python 3 (I read python 3 and qt5 has issues) or if it's due to no dedicated gpu? I should be able to launch using a llvmpipe right?
User avatar
kkremitzki
Veteran
Posts: 2517
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by kkremitzki »

Python 2 + Qt 4 builds are confirmed to work on ARM devices. In your post on the other thread you mentioned you got a "permission denied" error trying to build with Python 2. Can you please post the entire error message?
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
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by EnigmaVoidX »

kkremitzki wrote: Wed Apr 01, 2020 8:35 pm Python 2 + Qt 4 builds are confirmed to work on ARM devices. In your post on the other thread you mentioned you got a "permission denied" error trying to build with Python 2. Can you please post the entire error message?
So the error I get is permission denied: cannot access /usr/bin/python when trying to launch python. When I try to cmake ,an error say that only found python 1.4 and that I cannot access python lib.

However using python3 works.
User avatar
kkremitzki
Veteran
Posts: 2517
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by kkremitzki »

It sounds like Python 2 may not be installed... did you try installing it? Are you following a guide or something on building FreeCAD?
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
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by EnigmaVoidX »

kkremitzki wrote: Wed Apr 01, 2020 8:51 pm It sounds like Python 2 may not be installed... did you try installing it? Are you following a guide or something on building FreeCAD?
My system says I have python 2 already:

Code: Select all

andrutu@localhost:~$ sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (2.7.15~rc1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Also I am following this site:
https://www.framboise314.fr/utiliser-fr ... GTSD63Ac1s
User avatar
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by EnigmaVoidX »

kkremitzki wrote: Wed Apr 01, 2020 8:51 pm It sounds like Python 2 may not be installed... did you try installing it? Are you following a guide or something on building FreeCAD?
My system says I have python 2 already:

Code: Select all

andrutu@localhost:~$ sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (2.7.15~rc1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Also

Code: Select all

andrutu@localhost:~$ whereis python
python: /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python
2.7 /usr/bin/python /usr/bin/python3.6-config /usr/bin/python3
.6m-config /usr/lib/aarch64-linux-gnu/python2.7 /usr/lib/pytho
n3.6 /usr/lib/python2.7 /usr/lib/python3.7 /usr/lib/python3.8
/etc/python3.6 /etc/python2.7 /etc/python /usr/local/lib/pytho
n3.6 /usr/local/lib/python2.7 /usr/include/python2.7 /usr/incl
ude/python3.6m /usr/include/python3.6 /usr/share/python
andrutu@localhost:~$
Also I am following this site:
https://www.framboise314.fr/utiliser-fr ... GTSD63Ac1s

This is the cmake error:

Code: Select all

root@localhost:/home/andrutu/Downloads/freecad-build# cmake -D
PYTHON_EXECUTABLE=/usr/bin/python2.7 \ -DPYTHON_INCLUDE_DIR=/u
sr/include/python2.7m \ -DPYTHON_LIBRARY=/usr/lib/arm-linux-gn
ueabihf/libpython2.7m.so \ -DPAGESTHON_PACK=/local/lib/python2
.7/dist-packages/ ../FreeCAD-0.18.4
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiler: GNU, version: 7.5.0
-- Looking for GL/gl.h
-- Looking for GL/gl.h - found
-- Looking for C++ include istream
-- Looking for C++ include istream - found
-- Looking for C++ include ostream
-- Looking for C++ include ostream - found
-- Looking for C++ include fstream
-- Looking for C++ include fstream - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for C++ include ios
-- Looking for C++ include ios - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Looking for C++ include iomanip
-- Looking for C++ include iomanip - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Check for STD namespace
-- Check for STD namespace - found
-- prefix: /usr/local
-- datadir: data
-- docdir: doc
-- includedir: include
-- libdir: /usr/local/lib
-- cmake: 3.10.2
-- Found PythonInterp: /usr/bin/python2.7 (found version "1.4"
)
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON
_INCLUDE_DIRS) (Required is exact version "1.4")
CMake Error at CMakeLists.txt:562 (MESSAGE):
  =================================

  Python not found, install Python!

  =================================



-- Configuring incomplete, errors occurred!
See also "/home/andrutu/Downloads/freecad-build/CMakeFiles/CMa
keOutput.log".
root@localhost:/home/andrutu/Downloads/freecad-build#

User avatar
kkremitzki
Veteran
Posts: 2517
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by kkremitzki »

Code: Select all

-DPAGESTHON_PACK
Typo? Should be -DPYTHON_PACKAGES_PATH, and the value you've set it to is wrong as well.

Also, are you sure all those CMake flags are required? Why don't you try without them?
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
EnigmaVoidX
Posts: 26
Joined: Tue Mar 31, 2020 4:39 am

Re: Trying to Launch FreeCAD 0.16 on Ubuntu Bionic inside a Linux Proot on arm64 device?

Post by EnigmaVoidX »

kkremitzki wrote: Wed Apr 01, 2020 10:27 pm

Code: Select all

-DPAGESTHON_PACK
Typo? Should be -DPYTHON_PACKAGES_PATH, and the value you've set it to is wrong as well.

Also, are you sure all those CMake flags are required? Why don't you try without them?
I'm no linux pro so I dont know per say, I copied and pasted theose lines from the website.

So should I just try cmake -DPYTHON_PACKAGES_PATH and then the path ?
Post Reply