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...)
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Postby ToniGil » Thu Dec 12, 2019 10:34 am

Hi all,

I finally get my FreeCAD 0.18.3 running on Raspi 4.

When I try to open scenario "Part Design" comes an error message: "No module named PartDesignGui". All the others work.

Is there a way to include it?

Thanks in advance.
Toni Gil.
wmayer
Site Admin
Posts: 15122
Joined: Thu Feb 19, 2009 10:32 am

Re: FreeCAD and Raspberry Pi 4

Postby wmayer » Thu Dec 12, 2019 11:53 am

When FreeCAD is running then activate its Python console if not yet active via View -> Panels -> Python console

Then enter

Code: Select all

import PartDesignGui
You should see an error message now with some more details about its failure.
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Postby ToniGil » Thu Dec 12, 2019 12:04 pm

wmayer wrote:
Thu Dec 12, 2019 11:53 am
When FreeCAD is running then activate its Python console if not yet active via View -> Panels -> Python console

Then enter

Code: Select all

import PartDesignGui
You should see an error message now with some more details about its failure.
This is the error, I paste all info at Python Console:

Python 2.7.16 (default, Apr 6 2019, 01:42:57)
[GCC 8.2.0] on linux2
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> import PartDesignGui
Traceback (most recent call last):
File "<input>", line 1, in <module>
ImportError: No module named PartDesignGui
>>>
wmayer
Site Admin
Posts: 15122
Joined: Thu Feb 19, 2009 10:32 am

Re: FreeCAD and Raspberry Pi 4

Postby wmayer » Thu Dec 12, 2019 2:39 pm

When you look at the build directory then is there no file PartDesignGui.so? What about the file _PartDesign.so?
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Postby ToniGil » Thu Dec 12, 2019 2:51 pm

Yes, I found the second one "_PartDesign.so"
wmayer
Site Admin
Posts: 15122
Joined: Thu Feb 19, 2009 10:32 am

Re: FreeCAD and Raspberry Pi 4

Postby wmayer » Thu Dec 12, 2019 5:01 pm

And PartDesignGui.so? Is it there or not? If not you should open a terminal and cd to your build directory. Enter make PartDesignGui
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Postby ToniGil » Thu Dec 12, 2019 5:25 pm

I understand this part of the conversation is not for this forun (since FreeCad was installed). Maybe it should be for a "Basic Linux knowledge" forum so thank you very much for your help.

It worked to make the modul and I could import in Python console on FreeCAD. It all works.

Thanks again.
Toni Gil.
User avatar
sgrogan
Posts: 5530
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD and Raspberry Pi 4

Postby sgrogan » Fri Dec 13, 2019 10:14 pm

ToniGil wrote:
Thu Dec 12, 2019 5:25 pm
I understand this part of the conversation is not for this forun (since FreeCad was installed). Maybe it should be for a "Basic Linux knowledge" forum so thank you very much for your help.
The question persists "Why didn't FreeCADGui not build?"

Can you check CMakeCache for BUILD_GUI:BOOL=ON?
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Postby ToniGil » Sat Dec 14, 2019 7:08 am

Yes, it's "ON"

Feel free to ask whatever you need to know about this question. I attach CMakeOutput.log as it could help.

Thanks and regards,
Toni Gil.
Attachments
CMakeOutput.log
(62.52 KiB) Downloaded 9 times
User avatar
-alex-
Posts: 268
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Postby -alex- » Sat Dec 14, 2019 11:55 pm

@ ToniGil, maybe it's not relevant, but....what about your RPI4 model? 1Gb? 2Gb? 4Gb?
The make -j4 command involves more than 2Gb of RAM consumption sometimes while compiling.
So, if you have a 1 or 2Gb model you maybe should compile with make -j2 or make -j3 to avoid potential compiling errors?...
Do you remember some warning messages during compiling ?