PyMesh icon indicating copy to clipboard operation
PyMesh copied to clipboard

An Attempt at Solving Build Issues on Windows

Open Cascades opened this issue 3 years ago • 0 comments

Hi all,

I've been following PyMesh for a few years now and have noticed the same issue coming up again and again; being unable to build PyMesh on Windows with any ease. I thought I'd try and help fix this.

Some of the issues which bring up this issue are: #267, #253, #38, #27, #18.

I currently have a fork whose master branch should have some commits which help with Windows. I've already changed some code and dependencies, and the modified install instructions are:

  1. [C++] Build and install boost and add to path
    • Get your required source from: https://www.boost.org/users/download/
    • cd into the boost root directory
    • Run bootstrap && .\b2
    • From the boost root dir add stage/lib/ to your path
    • You will most likely have to restart your terminal
  2. [Py] Install pytest with pip install pytest
  3. [Py] Install hypothosis with pip install hypothesis
  4. cd to the PyMesh root dir
  5. Run python setup.py build
  6. Run python setup.py install
  7. Run python -c "import pymesh; pymesh.test()"

I can't promise any miracles, so this may not work straight away for everyone (or indeed anyone). So please leave feedback with any issues you run into!

Cascades avatar May 27 '22 18:05 Cascades