[Solved] Trouble compiling FreeCAD and problems with python version

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
rafi
Posts: 2
Joined: Thu Nov 17, 2022 9:05 am

[Solved] Trouble compiling FreeCAD and problems with python version

Post by rafi »

Good day everyone.
I am learning to develop stuff on freeCAD and am first trying to compile it myself following the tutorial linked here: https://wiki.freecadweb.org/Compile_on_Windows

On the step for Running and installing FreeCAD there are 2 methods to build and run the program. I tried both steps, and when I clicked on the exe file for FreeCAD an error popped up saying I needed python39.dll for both those methods: https://freeimage.host/i/H9MWwzu

Currently on the tutorial, it says python38.dll is used and in the LibPack I downloaded from here python38 is what was available.

Am I missing something? Was I supposed to use python 3.9 from the beginning?
Thank you very much in advance.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Trouble compiling FreeCAD and problems with python version

Post by GeneFC »

rafi wrote: Thu Nov 17, 2022 9:21 am Am I missing something?
I just compiled and had no problems.

I followed the instructions exactly, and I made no changes to anything. The only oddity is that the Help-About does not pick up the version number. Probably something missing in the cmake files. The actual version is 0.21.31036.

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.Unknown
Build type: Release
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * FeedsAndSpeeds 0.4.0
  * FeedsAndSpeeds-master.zip
  * freecad.gears 1.0.0
  * Help 1.0.3

My guess is that one of two things went wrong for you.

* You did not follow the instructions exactly, or you made some changes to the files.

* You have a Windows Path environmental variable set that tries to call some other (non-FreeCAD) Python installation.

Gene
rafi
Posts: 2
Joined: Thu Nov 17, 2022 9:05 am

Re: Trouble compiling FreeCAD and problems with python version

Post by rafi »

Hello Good Day.
After reading your reply and checking any pythons installed, it seems it has been detecting another python installation that isn't on paths. After taking care of that, it has been compiling and executing as expected.
Thank you very much
Post Reply