MPI-IS / mesh

MPI-IS Mesh Processing Library
Other
643 stars 147 forks source link

fatal error C1083: Cannot open include file: 'CGAL/AABB_tree.h': No such file or directory #35

Closed sujaybokil closed 4 years ago

sujaybokil commented 4 years ago

I'm trying to install the library in my command prompt using the makefile provided using GnuWin32 make.exe and am getting the below error. Can someone suggest any fix?

My system specifications: Windows 10 Intel i5-7200 CPU Python 3.7 Here is the error:

(coma) F:\Codebase\FORD_PROJECT\ModifiedAE\Mesh\mesh>make.exe "\033[0;36m----- [" mesh_package "] Installing on the local virtual environment which python\033[0m" Requirement already up-to-date: setuptools in f:\anaconda\envs\coma\lib\site-packages (from -r requirements.txt (line 1)) (46.1.3.post20200325) Collecting numpy Using cached numpy-1.18.2-cp37-cp37m-win_amd64.whl (12.8 MB) Collecting scipy Using cached scipy-1.4.1-cp37-cp37m-win_amd64.whl (30.9 MB) Collecting pyopengl Using cached PyOpenGL-3.1.5-py3-none-any.whl (2.4 MB) Collecting pillow Using cached Pillow-7.1.1-cp37-cp37m-win_amd64.whl (2.0 MB) Collecting pyzmq Using cached pyzmq-19.0.0-cp37-cp37m-win_amd64.whl (1.1 MB) Collecting pyyaml Using cached PyYAML-5.3.1-cp37-cp37m-win_amd64.whl (216 kB) Collecting opencv-python Using cached opencv_python-4.2.0.34-cp37-cp37m-win_amd64.whl (33.0 MB) Installing collected packages: numpy, scipy, pyopengl, pillow, pyzmq, pyyaml, opencv-python Attempting uninstall: numpy Found existing installation: numpy 1.18.1 Uninstalling numpy-1.18.1: Successfully uninstalled numpy-1.18.1 Successfully installed numpy-1.18.2 opencv-python-4.2.0.34 pillow-7.1.1 pyopengl-3.1.5 pyyaml-5.3.1 pyzmq-19.0.0 scipy-1.4.1 Package Version


certifi 2020.4.5.1 numpy 1.18.2 opencv-python 4.2.0.34 Pillow 7.1.1 pip 20.0.2 PyOpenGL 3.1.5 PyYAML 5.3.1 pyzmq 19.0.0 scipy 1.4.1 setuptools 46.1.3.post20200325 wheel 0.34.2 wincertstore 0.2 F:\ANACONDA\envs\coma\lib\site-packages\pip_internal\commands\install.py:244: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option. cmdoptions.check_install_build_global(options) Non-user install because site-packages writeable Created temporary directory: C:\Users\SUJAYB~1\AppData\Local\Temp\pip-ephem-wheel-cache-dc4dt4a5 Created temporary directory: C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-tracker-45k8953u Initialized build tracking at C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-tracker-45k8953u Created build tracker: C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-tracker-45k8953u Entered build tracker: C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-tracker-45k8953u Created temporary directory: C:\Users\SUJAYB~1\AppData\Local\Temp\pip-install-nugo5vli Processing f:\codebase\ford_project\modifiedae\mesh\mesh Created temporary directory: C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5 Added file:///F:/Codebase/FORD_PROJECT/ModifiedAE/Mesh/mesh to build tracker 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-tracker-45k8953u' Running setup.py (path:C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\setup.py) egg_info for package from file:///F:/Codebase/FORD_PROJECT/ModifiedAE/Mesh/mesh Running command python setup.py egg_info [VERSION] read version is 0.3 running egg_info creating C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info writing C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info\PKG-INFO writing dependency_links to C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info\dependency_links.txt writing namespace_packages to C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info\namespace_packages.txt writing requirements to C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info\requires.txt writing top-level names to C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info\top_level.txt writing manifest file 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info\SOURCES.txt' reading manifest file 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\pip-egg-info\psbody_mesh.egg-info\SOURCES.txt' Source in c:\users\sujayb~1\appdata\local\temp\pip-req-build-h0yq7ms5 has version 0.3, which satisfies requirement psbody-mesh==0.3 from file:///F:/Codebase/FORD_PROJECT/ModifiedAE/Mesh/mesh Removed psbody-mesh==0.3 from file:///F:/Codebase/FORD_PROJECT/ModifiedAE/Mesh/mesh from build tracker 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-tracker-45k8953u' Skipping wheel build for psbody-mesh, due to binaries being disabled for it. Installing collected packages: psbody-mesh Created temporary directory: C:\Users\SUJAYB~1\AppData\Local\Temp\pip-record-093ivoe8 Running command 'F:\ANACONDA\envs\coma\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\setup.py'"'"'; file='"'"'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-record-093ivoe8\install-record.txt' --single-version-externally-managed --compile --install-headers 'F:\ANACONDA\envs\coma\Include\psbody-mesh' '--boost-location=$BOOST_ROOT' [VERSION] read version is 0.3 running install running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\psbody copying psbody-mesh-namespace__init.py -> build\lib.win-amd64-3.7\psbody creating build\lib.win-amd64-3.7\psbody\mesh copying mesh\arcball.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\colors.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\errors.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\fonts.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\landmarks.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\lines.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\mesh.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\meshviewer.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\processing.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\search.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\sphere.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\texture.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\utils.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh\version.py -> build\lib.win-amd64-3.7\psbody\mesh copying mesh__init.py -> build\lib.win-amd64-3.7\psbody\mesh creating build\lib.win-amd64-3.7\psbody\mesh\topology copying mesh\topology\connectivity.py -> build\lib.win-amd64-3.7\psbody\mesh\topology copying mesh\topology\decimation.py -> build\lib.win-amd64-3.7\psbody\mesh\topology copying mesh\topology\linear_mesh_transform.py -> build\lib.win-amd64-3.7\psbody\mesh\topology copying mesh\topology\subdivision.py -> build\lib.win-amd64-3.7\psbody\mesh\topology copying mesh\topology__init__.py -> build\lib.win-amd64-3.7\psbody\mesh\topology creating build\lib.win-amd64-3.7\psbody\mesh\geometry copying mesh\geometry\barycentric_coordinates_of_projection.py -> build\lib.win-amd64-3.7\psbody\mesh\geometry copying mesh\geometry\cross_product.py -> build\lib.win-amd64-3.7\psbody\mesh\geometry copying mesh\geometry\rodrigues.py -> build\lib.win-amd64-3.7\psbody\mesh\geometry copying mesh\geometry\triangle_area.py -> build\lib.win-amd64-3.7\psbody\mesh\geometry copying mesh\geometry\tri_normals.py -> build\lib.win-amd64-3.7\psbody\mesh\geometry copying mesh\geometry\vert_normals.py -> build\lib.win-amd64-3.7\psbody\mesh\geometry copying mesh\geometry\init.py -> build\lib.win-amd64-3.7\psbody\mesh\geometry creating build\lib.win-amd64-3.7\psbody\mesh\serialization copying mesh\serialization\serialization.py -> build\lib.win-amd64-3.7\psbody\mesh\serialization copying mesh\serialization\init__.py -> build\lib.win-amd64-3.7\psbody\mesh\serialization running build_ext [CGAL] deflating cgal from "mesh\thirdparty\CGAL-4.7.tar.gz" to "C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\build\temp.win-amd64-3.7"
building 'psbody.mesh.aabb_normals' extension creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\mesh creating build\temp.win-amd64-3.7\Release\mesh\src C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DNDEBUG=1 -DCGAL_NDEBUG=1 -DMESH_CGAL_AVOID_COMPILED_VERSION=1 -DCGAL_HAS_NO_THREADS=1 -DCGAL_NO_AUTOLINK_CGAL=1 -Imesh/src -IF:\ANACONDA\envs\coma\lib\site-packages\numpy\core\include -IC:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\build\temp.win-amd64-3.7\Release\CGAL-4.7\include -I$BOOST_ROOT -IF:\ANACONDA\envs\coma\include -IF:\ANACONDA\envs\coma\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpmesh/src/aabb_normals.cpp /Fobuild\temp.win-amd64-3.7\Release\mesh/src/aabb_normals.obj -O3 cl : Command line warning D9002 : ignoring unknown option '-O3' aabb_normals.cpp F:\ANACONDA\envs\coma\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION C:\Users\Sujay Bokil\AppData\Local\Temp\pip-req-build-h0yq7ms5\mesh\src\AABB_n_tree.h(9): fatal error C1083: Cannot open include file: 'CGAL/AABB_tree.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe' failed with exit status 2 Running setup.py install for psbody-mesh ... error Cleaning up... Removing source in C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5 Removed build tracker: 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-tracker-45k8953u' ERROR: Command errored out with exit status 1: 'F:\ANACONDA\envs\coma\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\setup.py'"'"';
file='"'"'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-record-093ivoe8\install-record.txt' --single-version-externally-managed --compile --install-headers 'F:\ANACONDA\envs\coma\Include\psbody-mesh' '--boost-location=$BOOST_ROOT' Check the logs for full command output. Exception information: Traceback (most recent call last): File "F:\ANACONDA\envs\coma\lib\site-packages\pip_internal\cli\base_command.py", line 186, in _main status = self.run(options, args) File "F:\ANACONDA\envs\coma\lib\site-packages\pip_internal\commands\install.py", line 404, in run use_user_site=options.use_user_site, File "F:\ANACONDA\envs\coma\lib\site-packages\pip_internal\req__init__.py", line 71, in install_given_reqs **kwargs File "F:\ANACONDA\envs\coma\lib\site-packages\pip_internal\req\req_install.py", line 829, in install scheme=scheme, File "F:\ANACONDA\envs\coma\lib\site-packages\pip_internal\operations\install\legacy.py", line 72, in install cwd=install_req.unpacked_source_directory, File "F:\ANACONDA\envs\coma\lib\site-packages\pip_internal\utils\subprocess.py", line 275, in runner spinner=spinner, File "F:\ANACONDA\envs\coma\lib\site-packages\pip_internal\utils\subprocess.py", line 242, in call_subprocess raise InstallationError(exc_msg) pip._internal.exceptions.InstallationError: Command errored out with exit status 1: 'F:\ANACONDA\envs\coma\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\setup.py'"'"'; file='"'"'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-req-build-h0yq7ms5\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file__, '"'"'exec'"'"'))' install --record 'C:\Users\SUJAYB~1\AppData\Local\Temp\pip-record-093ivoe8\install-record.txt' --single-version-externally-managed --compile --install-headers 'F:\ANACONDA\envs\coma\Include\psbody-mesh' '--boost-location=$BOOST_ROOT' Check the logs for full command output. 1 location(s) to search for versions of pip:

jcpassy commented 4 years ago

Hi @sujaybokil, for the moment, there is no Windows support for mesh. However, there is the PR #34 by @coloss that should take care of that. It should be merged soon, we will notify you when it is done. :) Cheers!

sujaybokil commented 4 years ago

Thank you for the update, will be waiting for the windows version soon :)

ShengbinWei commented 4 years ago

I do these following: 1.Clone the version by @coloss; 2.Copy the folder CGAL which includes the header file "AABB_tree.h" into the folder mesh/src which includes "AABB_n_tree.h"; 2.Modify the CGAL/Origin.h: //CGAL_EXPORT extern const Origin ORIGIN; CGAL_EXPORT const Origin ORIGIN; //CGAL_EXPORT extern const Null_vector NULL_VECTOR; CGAL_EXPORT const Null_vector NULL_VECTOR; And then I can compile this project in windows. No full test yet, however u can try it.