cnr-isti-vclab / PyMeshLab

The open source mesh processing python library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't build on windows

FishWoWater opened this issue · comments

Hi, pymeshlab is really a wonderful project and have helped me a lot.

Now I am planning to add some custom modules to pymeshlab. The first thing I need to do is compiling pymeshlab completely from source. I followed your instructions on https://github.com/cnr-isti-vclab/PyMeshLab/blob/docs/src/README.md and succeeded on my Mac (M1 chip, with the provided shell scripts).

But then I have some problems when trying to build on my windows

I am a bit confused by the instruction "therefore it needs to be run in a Linux subsystem environment", so I build manually with the following steps:

git clone --recursive https://github.com/cnr-isti-vclab/PyMeshLab.git
mkdir build
cd build 
cmake .. -GNinja  -DCMAKE_PREFIX_PATH=C:\Qt\Qt-5.15.2\lib\cmake\Qt5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -DCMAKE_CXX_FLAGS="/utf-8"
ninja

which is almost the same with 1_build.sh ,but ninja reports (I have added some english comments in the fig)

xxx_1716518354367

Other things I have tried:

  1. Not using ninja by
cmake ..  -DCMAKE_PREFIX_PATH=C:\Qt\Qt-5.15.2\lib\cmake\Qt5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -DCMAKE_CXX_FLAGS="/utf-8"
  1. Re-clone the repo / all required dependencies

But none of them worked for me

Cmake version: 3.29.3
QT5: 5.15.2
Visual Studio: 2019

Could you please take a look at this? Appreciate a lot :)

Solved after a thourough recompilation of Qt-5.15 , and then use visual studio 2019 as the generator and msvc as the compiler.