Ticket #6274 - Source code installation failed

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
jack9603301
Posts: 21
Joined: Tue Oct 12, 2021 6:10 pm

Ticket #6274 - Source code installation failed

Post by jack9603301 »

I compiled freecad 0.20-dev in release mode, but I can't make the compiled and installed program work normally.

I use the following command to compile:

Code: Select all

sudo make install
After starting freecad, it reports an error:

Code: Select all

No module named 'StartGui'
I use Kubuntu 21.04 to do the above
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Source code installation failed

Post by Syres »

This old post still looks relevant today with regard to paths, see https://forum.freecadweb.org/viewtopic. ... 239#p59239
jack9603301
Posts: 21
Joined: Tue Oct 12, 2021 6:10 pm

Re: Source code installation failed

Post by jack9603301 »

My setup doesn't seem to load any modules
jack9603301
Posts: 21
Joined: Tue Oct 12, 2021 6:10 pm

Re: Source code installation failed

Post by jack9603301 »

Screenshot_20211018_193517.png
Screenshot_20211018_193517.png (172.13 KiB) Viewed 2817 times
chrisb
Veteran
Posts: 53939
Joined: Tue Mar 17, 2015 9:14 am

Re: Source code installation failed

Post by chrisb »

Please don't show such information as screenshot. output of report view is usually put in code tags directly in the post.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
jack9603301
Posts: 21
Joined: Tue Oct 12, 2021 6:10 pm

Re: Source code installation failed

Post by jack9603301 »

This is the search path for Python3 and the path where the Mod is located

Code: Select all

/usr/Mod
/home/jack/SourceCode/FreeCAD/build
/usr/lib/python39.zip
/usr/lib/python3.9
/usr/lib/python3.9/lib-dynload
/home/jack/.local/lib/python3.9/site-packages
/usr/local/lib/python3.9/dist-packages
/usr/lib/python3/dist-packages
/usr/lib/python3.9/dist-packages
>>> exit()

Code: Select all

ls /usr/Mod                      
AddonManager  Draft    Fem  Image   Inspection  Measure  MeshPart  Part        Path  Points      ReverseEngineering  Show      Spreadsheet  Surface   Test  Web
Arch          Drawing  Idf  Import  Material    Mesh     OpenSCAD  PartDesign  Plot  Raytracing  Robot               Sketcher  Start        TechDraw  Tux
jack9603301
Posts: 21
Joined: Tue Oct 12, 2021 6:10 pm

Re: Source code installation failed

Post by jack9603301 »

I noticed that the Gui directory was missing from the specific /usr/Mod/Start/ directory
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Source code installation failed

Post by chennes »

Can you show us your cMake command?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
jack9603301
Posts: 21
Joined: Tue Oct 12, 2021 6:10 pm

Re: Source code installation failed

Post by jack9603301 »

chennes wrote: Mon Oct 18, 2021 2:44 pm Can you show us your cMake command?

Code: Select all

cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python3 -DFREECAD_USE_PCL=ON -DFREECAD_USE_PYBIND11=ON -DCMAKE_BUILD_TYPE=Release
I'm recompiling.
jack9603301
Posts: 21
Joined: Tue Oct 12, 2021 6:10 pm

Re: Source code installation failed

Post by jack9603301 »

Post Reply