Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Compiling MEX Files #167

Open
Veins666 opened this issue Oct 22, 2024 · 3 comments
Open

Issue Compiling MEX Files #167

Veins666 opened this issue Oct 22, 2024 · 3 comments

Comments

@Veins666
Copy link

I encountered issues while trying to compile the MEX files: after running cmake --build . --config Release, I receive a series of errors, such as the following:

"[1/301] Building CXX object deps/embree-build/common/sys/CMakeFiles/sys.dir/thread.cpp.obj
FAILED: deps/embree-build/common/sys/CMakeFiles/sys.dir/thread.cpp.obj
C:\Strawberry\c\bin\c++.exe -DEMBREE_TARGET_AVX2 -DTASKING_INTERNAL -march=native -O3 -DNDEBUG /EHsc /MP /GR /Gy /GS- /Ox /Oi -std=gnu++14 /D__SSE
/D__SSE2__ /D__SSE3__ /D__SSSE3__ /D__SSE4_1__ /D__SSE4_2__ /arch:AVX2 -MD -MT deps/embree-build/common/sys/CMakeFiles/sys.dir/thread.cpp.obj -MF deps\embree-build\common\sys\CMakeFiles\sys.dir\thread.cpp.obj.d -o deps/embree-build/common/sys/CMakeFiles/sys.dir/thread.cpp.obj -c C:/dev/gptoolbox/mex/build/deps/embree-src/common/sys/thread.cpp
c++.exe: error: /EHsc: No such file or directory
c++.exe: error: /MP: No such file or directory
c++.exe: error: /GR: No such file or directory
c++.exe: error: /Gy: No such file or directory
c++.exe: error: /GS-: No such file or directory
c++.exe: error: /Ox: No such file or directory
c++.exe: error: /Oi: No such file or directory
c++.exe: error: /D__SSE
: No such file or directory
c++.exe: error: /D__SSE2
: No such file or directory
c++.exe: error: /D__SSE3__: No such file or directory
c++.exe: error: /D__SSSE3__: No such file or directory
c++.exe: error: /D__SSE4_1__: No such file or directory
c++.exe: error: /D__SSE4_2__: No such file or directory
c++.exe: error: /arch:AVX2: No such file or directory"

EMBREE seems to be not properly installed, despite the instructions indicating that all dependencies would be installed automatically.

Could you kindly confirm if the installation steps are up to date, or advise if I might be missing something in the process?

Thank you very much for your time and assistance.

@alecjacobson
Copy link
Owner

I'm not great on windows issues. If you'd like to skip the EMBREE-dependent stuffy you could using

cmake  -DLIBIGL_EMBREE=OFF

@Veins666
Copy link
Author

Now by running cmake -DLIBIGL_EMBREE=OFF I have:
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.

Should I specify the --build directory?

@alecjacobson
Copy link
Owner

alecjacobson commented Oct 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants