Porting to python3

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
triplus
Posts: 9428
Joined: Mon Dec 12, 2011 4:45 pm

Re: Porting to python3

Postby triplus » Thu Mar 21, 2019 8:41 pm

Some issues will for sure emerge, when it comes to FreeCAD 0.18 Py3 builds. But i don't know if it makes sense to worry about that too much for now.
reox
Posts: 845
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Porting to python3

Postby reox » Thu Jan 30, 2020 7:09 pm

kkremitzki wrote:
Mon Jun 12, 2017 12:17 am
zaleksf wrote:
Sun Jun 11, 2017 11:46 pm
I'm attempting to build the py3-27 version, but no-luck. It fails when attempting to link the libSMESH.so library (see below). I was able ot compile the py3-26 version.
You need to use mpic++ as your CXX compiler, so e.g. add this flag to cmake:

-DCMAKE_CXX_COMPILER=/usr/bin/mpic++
Is it really necessary to use a MPI compiler? I usually compile with a normal gcc and it seems to work.
Would the MPI compiler just add the parallelism?

sorry to excavate the thread here, but I did not wanted to create a new one ;)
vocx
Posts: 4032
Joined: Thu Oct 18, 2018 9:18 pm

Re: Porting to python3

Postby vocx » Thu Jan 30, 2020 9:40 pm

reox wrote:
Thu Jan 30, 2020 7:09 pm
...
sorry to excavate the thread here, but I did not wanted to create a new one ;)
You are reading old information.

This flag is not needed. If you have all requisites you only need this line to configure the build.

Code: Select all

cmake -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 freecad-source
CompileOnUnix
Always add the important information to your posts if you need help.
To support the documentation effort, and code development, your donation is appreciated: paypal.
reox
Posts: 845
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Porting to python3

Postby reox » Fri Jan 31, 2020 2:02 pm

vocx wrote:
Thu Jan 30, 2020 9:40 pm
CompileOnUnix
okay thanks for the clarification! I was just consolidating old buildscripts and saw that some used mpic++