alecjacobson / gptoolbox

Matlab toolbox for Geometry Processing.
MIT License
628 stars 166 forks source link

ld.exe: cannot find /export:mexFunction: No such file or directory #148

Open ZZT-console opened 1 year ago

ZZT-console commented 1 year ago

I use gptoolbox on windows. I can't "make" and there is the following error message:

G:\vscode\gitcode\gptoolbox\mex\build2>make
[  0%] Built target igl_restricted_matlab
[  0%] Built target igl_core
[  2%] Linking CXX shared library G:\vscode\gitcode\gptoolbox\mex\aabb.mexw64
E:\ProgramFiles\w64devkit\bin/ld.exe: cannot find /export:mexFunction: No such file or directory
collect2.exe: error: ld returned 1 exit status
make[2]: *** [CMakeFiles\aabb.dir\build.make:107: G:/vscode/gitcode/gptoolbox/mex/aabb.mexw64] Error 1
make[1]: *** [CMakeFiles\Makefile2:436: CMakeFiles/aabb.dir/all] Error 2
make: *** [Makefile:155: all] Error 2

I think this error maybe come from cmake -G "MinGW Makefiles" .. . Because the terminal used to print some warning message. I chose to ignore it, duo to working eventually. there is the related information:

-- Fetching Boost
-- Fetching Boost - done
-- Boost found: 1.71.0 G:/vscode/gitcode/gptoolbox/mex/build2/_deps/boost-src
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) 
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 
-- The following ICU libraries were not found:
--   uc (required)
--   dt (required)
--   i18n (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND)

What should I do? It is vital for me to use your code. Look forward to your solution.