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](https://private-user-images.githubusercontent.com/37951601/333416658-c30560a9-46a1-4a42-98ce-977754914b1a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI2NDk4NDcsIm5iZiI6MTcyMjY0OTU0NywicGF0aCI6Ii8zNzk1MTYwMS8zMzM0MTY2NTgtYzMwNTYwYTktNDZhMS00YTQyLTk4Y2UtOTc3NzU0OTE0YjFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAzVDAxNDU0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUyZTRmNTE5NWVkMTM3NWJlMzViYWQ0NTc1M2QyNTIwYzdmODg2NWRhM2I0ODEzNGFjN2FmODJjMDQ5MzE3ZWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BWpwgLmPrnnieOIg6b71hmszwXEixFtE63uP-ZhhV0k)
Other things I have tried:
- 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"
- 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.