-
Notifications
You must be signed in to change notification settings - Fork 171
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
Cannot find /export:mexFunction: No such file or directory #150
Comments
Have you solved this problem? I have the same problem. |
Not yet sorry.. |
Hello, I was wondering if you have resolved this issue? I’ve encountered the same problem. I would appreciate any help you could provide. Thank you! |
I am using Windows 10 10.0.19044.4170, MATLAB 2023b, MSYS2+MinGW64, gcc version 13.2.0 (Rev5, Built by MSYS2 project), same problem encountered.
|
After some searching, I found this problem is caused by: Lines 116 to 119 in 55d3d1e
Some info about this flag: https://stackoverflow.com/questions/8552580/using-gcc-mingw-as-matlabs-mex-compiler https://stackoverflow.com/questions/25998442/mex-options-when-compiling-with-visual-studio Some linkers cannot find the I tried to replace above lines to:
or simply delete the 118 line in original code, could make this error disappear. However, some new errors showed, but I believe it's not relative to the modified code.
more test needed... Update: Notably, MSVC does not encounter this error. |
(I'm sorry I'm not a windows user so I'm not much help here) |
It appears that the MinGW toolchain isn't compatible with this project. |
Hello everyone,
Following my issue (post #149), where I compiled with Cmake-gui software and VS 2015 (window 10 x64), I trying now to pass by Window PowerShell using MinGW compilator.
First, I used this command to write build files : cmake -G "MinGW Makefiles" ..
Generating done, It's ok.
Then, I use this command to build the Makefile : mingw32-make.
I got this error :
PS C:\dev2\gptoolbox\mex\build> mingw32-make
[ 0%] Built target igl_restricted_matlab
[ 0%] Built target igl_core
[ 0%] Building CXX object CMakeFiles/aabb.dir/aabb.cpp.obj
[ 2%] Linking CXX shared library C:\dev2\gptoolbox\mex\aabb.mexw64
c:/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find /export:mexFunction: No such file or directory
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [CMakeFiles\aabb.dir\build.make:106: C:/dev2/gptoolbox/mex/aabb.mexw64] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:436: CMakeFiles/aabb.dir/all] Error 2
mingw32-make: *** [makefile:155: all] Error 2
Is anyone able to help me? #desperate
Thank you very much by advance !
Alexis
The text was updated successfully, but these errors were encountered: