MPI-IS / mesh

MPI-IS Mesh Processing Library
Other
663 stars 152 forks source link

installation of Windows 10? #4

Closed laurapalmer99 closed 4 years ago

laurapalmer99 commented 5 years ago

Can I Install MPI-IS/mesh on windows?

raffienficiaud commented 5 years ago

The code by itself is not specific to mac or linux (even GDAL), but we never took the time to adjust for Windows.

laurapalmer99 commented 5 years ago

It's a pity, but thanks for your reply. I was trying to install it on windows for hours and I couldn't find out how. so, good to know the answer. :)

raffienficiaud commented 5 years ago

If you are able to install boost on Windows, I believe you did 75% of the work. The rest is passing the --boost-location=$BOOST_ROOT to the setup.py script (and maybe installing the dependencies prior to that, see https://github.com/MPI-IS/mesh/blob/master/Makefile#L62)

laurapalmer99 commented 5 years ago

I'll give it a try and consider installing Linux if it doen's work. thanks!

radekd91 commented 4 years ago

I've just created PR #34 which should fix the compilation on Windows with MSVC.

radekd91 commented 4 years ago

Could anybody take a look at the PR #34 which fixes the compilation on Win? @jcpassy , @raffienficiaud .

jcpassy commented 4 years ago

Hi @coloss , thanks a lot for your PR. We are not forgetting you. :) As soon as we have some time to allocate to this project, we will look into it. Cheers!

Qingqingniu commented 4 years ago

Hi, @laurapalmer99 ,do you install MPI-IS/mesh on windows successfully,could you give me some advice on installing it on windows?

zhangyux15 commented 3 years ago

I run part of this library in win10 with amd cpu.

  1. First you need to build boost(run bootstrap.bat and b2.exe install prefix =xxxxx) and copy the include dir.
  2. Run "pip install --no-deps --install-option="--boost-location=xxxx\build\include\boost-1_74"" --verbose --no-cache-dir ."
  3. Run "python setup.py sdist"
  4. Run "python setup.py --verbose build_ext --boost-location=xxxx\build\include\boost-1_74 bdist_wheel"
  5. step 4 will raise error "can not find CGAL/AABB_tree.h" you need to copy "\build\temp.win-amd64-3.7\CGAL-4.7" to ".\build\temp.win-amd64-3.7\Release\CGAL-4.7" to fix the path problem
  6. Run Step4 again
  7. I found that building extension "visibility" will cause linking error, so I commented out the line 203 of setup.py
  8. Then you can install the package
olga-2020-Feb commented 3 years ago

Hi @zhangyux15 , In step 2 I get: ERROR: You must give at least one requirement to install (see "pip help install") Could you please check?

Thank you.

karan00713 commented 2 years ago

Hi @zhangyux15 , what should i have to give in this location ( --boost-location=xxxx\build\include\boost-1_74 ) ??

Kyle-z1996 commented 1 year ago

@olga-2020-Feb have you solve it?

Try this command to install: psbody root > python setup.py install --boost-location

It works in my win11 system.

qaz8788817 commented 7 months ago

I run part of this library in win10 with amd cpu.

  1. First you need to build boost(run bootstrap.bat and b2.exe install prefix =xxxxx) and copy the include dir.
  2. Run "pip install --no-deps --install-option="--boost-location=xxxx\build\include\boost-1_74"" --verbose --no-cache-dir ."
  3. Run "python setup.py sdist"
  4. Run "python setup.py --verbose build_ext --boost-location=xxxx\build\include\boost-1_74 bdist_wheel"
  5. step 4 will raise error "can not find CGAL/AABB_tree.h" you need to copy "\build\temp.win-amd64-3.7\CGAL-4.7" to ".\build\temp.win-amd64-3.7\Release\CGAL-4.7" to fix the path problem
  6. Run Step4 again
  7. I found that building extension "visibility" will cause linking error, so I commented out the line 203 of setup.py
  8. Then you can install the package

Hi @zhangyux15 , when I run the step 4, I got some errors. Could you help me? image And here is my command: pip install --no-deps --config-settings="--boost-location=C:\local\boost\include\boost-1_73" --verbose --no-cache-dir .