how to build libpack for freecad0.18.4 by conda?

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
yhw-miracle
Posts: 13
Joined: Sat Jan 04, 2020 5:01 am

how to build libpack for freecad0.18.4 by conda?

Post by yhw-miracle »

for help:
I want to compile python3.6 in freecad0.18.4, but there is no libpack for freecad0.18 and python3. So I ready to make libpack for freecad0.18.4 and python3 by conda. I don't know which dependency packages to download. Hope to get a reply soon!
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: how to build libpack for freecad0.18.4 by conda?

Post by sgrogan »

yhw-miracle wrote: Mon Jan 06, 2020 11:50 am for help:
I want to compile python3.6 in freecad0.18.4, but there is no libpack for freecad0.18 and python3. So I ready to make libpack for freecad0.18.4 and python3 by conda. I don't know which dependency packages to download. Hope to get a reply soon!
Hello yhw-miracle! Wecome to FreeCAD and the forum :)

For conda install freecad 0.18.4 and all necessary runtimes see here: https://anaconda.org/conda-forge/freecad
The Win x64 packages here: https://github.com/FreeCAD/FreeCAD/releases/tag/0.18.4 are packaged from the above conda env.

If you need to compile 0.18.4 yourself, maybe you can explain further?

MOD's, this would be better if moved to Install/Compile sub-forum.
"fight the good fight"
yhw-miracle
Posts: 13
Joined: Sat Jan 04, 2020 5:01 am

Re: how to build libpack for freecad0.18.4 by conda?

Post by yhw-miracle »

I want to develop freecad for the second time and need to modify freecad with c ++ code. Therefore, I need to make libpack for freecad0.18.4, and then recompile it into an executable program in the windows system.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: how to build libpack for freecad0.18.4 by conda?

Post by sgrogan »

yhw-miracle wrote: Mon Jan 06, 2020 11:09 pm ant to develop freecad for the second time and need to modify freecad with c ++ code. Therefore, I need to make libpack for freecad0.18.4, and then recompile it into an executable program in the windows system.
Why not 0.19 then? Only backported fixes will be backported to 0.18.x, new development happens on the mater branch i.e. 0.19

Anyway, if you still want to I can help.
"fight the good fight"
yhw-miracle
Posts: 13
Joined: Sat Jan 04, 2020 5:01 am

Re: how to build libpack for freecad0.18.4 by conda?

Post by yhw-miracle »

I've compiled freecad 0.19, but in debug mode, some errors may be reported, and may be unstable? but, I have no time to consider. So, for stability, I'm going to use 0.18.4, and you can help me compile 0.18.4 , supporting python3, using conda?
yhw-miracle
Posts: 13
Joined: Sat Jan 04, 2020 5:01 am

Re: how to build libpack for freecad0.18.4 by conda?

Post by yhw-miracle »

sgrogan wrote: Mon Jan 06, 2020 11:12 pm
yhw-miracle wrote: Mon Jan 06, 2020 11:09 pm ant to develop freecad for the second time and need to modify freecad with c ++ code. Therefore, I need to make libpack for freecad0.18.4, and then recompile it into an executable program in the windows system.
Why not 0.19 then? Only backported fixes will be backported to 0.18.x, new development happens on the mater branch i.e. 0.19

Anyway, if you still want to I can help.
hello, sgrogan! can you help me compile freecad0.18.4, using conda, supporting python3?
yhw-miracle
Posts: 13
Joined: Sat Jan 04, 2020 5:01 am

Re: how to build libpack for freecad0.18.4 by conda?

Post by yhw-miracle »

sgrogan wrote: Mon Jan 06, 2020 11:12 pm
yhw-miracle wrote: Mon Jan 06, 2020 11:09 pm ant to develop freecad for the second time and need to modify freecad with c ++ code. Therefore, I need to make libpack for freecad0.18.4, and then recompile it into an executable program in the windows system.
Why not 0.19 then? Only backported fixes will be backported to 0.18.x, new development happens on the mater branch i.e. 0.19

Anyway, if you still want to I can help.
hello, sgrogan! I use vs2017 and FreeCADLibs_12.1.2_x64_VC15 to compile freecad0.19_pre, but encountering some errors.

[img][http://yhw-miracle.cn/yhw-miracle_2020- ... -41-36.png]
yhw-miracle
Posts: 13
Joined: Sat Jan 04, 2020 5:01 am

Re: how to build libpack for freecad0.18.4 by conda?

Post by yhw-miracle »

sgrogan wrote: Mon Jan 06, 2020 11:12 pm
yhw-miracle wrote: Mon Jan 06, 2020 11:09 pm ant to develop freecad for the second time and need to modify freecad with c ++ code. Therefore, I need to make libpack for freecad0.18.4, and then recompile it into an executable program in the windows system.
Why not 0.19 then? Only backported fixes will be backported to 0.18.x, new development happens on the mater branch i.e. 0.19

Anyway, if you still want to I can help.
hello, sgrogan! I use vs2017 and FreeCADLibs_12.1.2_x64_VC15 to compile freecad0.19_pre, but encountering some errors.

[img][http://yhw-miracle.cn/yhw-miracle_2020- ... -41-36.png]
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: how to build libpack for freecad0.18.4 by conda?

Post by sgrogan »

yhw-miracle wrote: Tue Jan 07, 2020 8:52 am hello, sgrogan! I use vs2017 and FreeCADLibs_12.1.2_x64_VC15 to compile freecad0.19_pre, but encountering some errors.
OK, let's concentrate on getting 0.19 to compile first with the 12.1.2 Libpack.

First how are you getting the source code? git, GitHub download of the tarball, other?
Next how are you running CMake, command line or gui? What flags are you setting?

The linker errors in your linked image suggest that your build process failed during the CMake phase of the build process.
"fight the good fight"
yhw-miracle
Posts: 13
Joined: Sat Jan 04, 2020 5:01 am

Re: how to build libpack for freecad0.18.4 by conda?

Post by yhw-miracle »

Hello,sgrogan! Now I can successfully compile freecad0.19_pre, on the windows system. I found that the src/tools/pythontocpp.py file in the source code did not specify the encoding format when reading the file, which may have something to do with linux. Linux defaults to utf-8 encoding, while windows defaults to gbk, so an error is reported at this step.

However, I still want to know how to compile freecad0.18.4, with conda. I am currently stuck in how to make libpack belonging to 0.18.4. It seems to me that 0.19 also supports conda compilation. Can you give me a copy of the process of compiling with conda? Thank you very much!
Post Reply