[SOLVED] Building pivy on Windows

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

[SOLVED] Building pivy on Windows

Post by apeltauer »

Hi all,
i try to build pivy from source (using the github source form loooooo (https://github.com/FreeCAD/pivy)) for debug and release in windows. Building the release binary just works fine. Building the debug does not.
The problem is my binary(_COIN_D.CP37-WIN_AMD64.PYD) debug version wants to link against Coin4.lib and python37.lib. What leads to an dll miss match at runtime. If i rename my Coin4d.lib to Coin4.lib my .pyd looks for the the correct coin dll (coin4d.dll). But right know i cannot handle the python.37lib.....
Does someone know how to modify the pivy setup script to use the debug version??

BR Manuel
Last edited by apeltauer on Wed Mar 06, 2019 10:23 am, edited 1 time in total.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Building pivy on Windows

Post by looo »

you can set the path to the coin library in the cmake-file directly. Not very nice, but it should work.
https://github.com/FreeCAD/pivy/blob/ma ... ts.txt#L14

But for python I don't know. I can't see where it gets linked:
https://ci.appveyor.com/project/conda-f ... cqdjn#L706
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: Building pivy on Windows

Post by apeltauer »

I already tried to run setup.py with python_d.exe
But no success... :(
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: Building pivy on Windows

Post by apeltauer »

So just found my mistake....
After digging in python distutils build_ext i just found out to start the setup.py script with build --debug...
This works fine and creates a pyd which links to to the debug version of python!!
Sorry for the noise....
BR Manuel
Post Reply