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

Error on mexing the file #11

Open
dipu641298 opened this issue Sep 30, 2019 · 5 comments
Open

Error on mexing the file #11

dipu641298 opened this issue Sep 30, 2019 · 5 comments

Comments

@dipu641298
Copy link

Hi I am getting this error can anyone tell me what is the issue ?

Error using mex
C:\opencv\build\x64\vc11\lib\opencv_core249.lib: error adding symbols: File in wrong format
collect2.exe: error: ld returned 1 exit status

I ran this command :

mex generateEllipseCandidates.cpp -IC:\opencv\build\include -IC:\opencv\build\include\opencv -IC:\opencv\build\include\opencv2 -LC:\opencv\build\x64\vc11\lib -I'C:\Program Files\Polyspace\R2019a\extern\include' -L'C:\Program Files\Polyspace\R2019a\extern\lib\win64\microsoft' -lopencv_core249 -lopencv_highgui249 -lopencv_imgproc249 -llibmwlapack.lib

@libbyzx
Copy link

libbyzx commented Oct 2, 2019

Hi I am getting this error can anyone tell me what is the issue ?

Error using mex
C:\opencv\build\x64\vc11\lib\opencv_core249.lib: error adding symbols: File in wrong format
collect2.exe: error: ld returned 1 exit status

I ran this command :

mex generateEllipseCandidates.cpp -IC:\opencv\build\include -IC:\opencv\build\include\opencv -IC:\opencv\build\include\opencv2 -LC:\opencv\build\x64\vc11\lib -I'C:\Program Files\Polyspace\R2019a\extern\include' -L'C:\Program Files\Polyspace\R2019a\extern\lib\win64\microsoft' -lopencv_core249 -lopencv_highgui249 -lopencv_imgproc249 -llibmwlapack.lib

I meet the same problem. Has this problem been solved?

@dipu641298 dipu641298 reopened this Oct 2, 2019
@dipu641298
Copy link
Author

Hi I am getting this error can anyone tell me what is the issue ?
Error using mex
C:\opencv\build\x64\vc11\lib\opencv_core249.lib: error adding symbols: File in wrong format
collect2.exe: error: ld returned 1 exit status
I ran this command :
mex generateEllipseCandidates.cpp -IC:\opencv\build\include -IC:\opencv\build\include\opencv -IC:\opencv\build\include\opencv2 -LC:\opencv\build\x64\vc11\lib -I'C:\Program Files\Polyspace\R2019a\extern\include' -L'C:\Program Files\Polyspace\R2019a\extern\lib\win64\microsoft' -lopencv_core249 -lopencv_highgui249 -lopencv_imgproc249 -llibmwlapack.lib

I meet the same problem. Has this problem been solved?

No..!! Till now I haven't found any solution. I will let you know if I find any. And I hope you'll let me know too if you find any solution.

@libbyzx
Copy link

libbyzx commented Oct 3, 2019 via email

@xinzhengyi
Copy link

一样的错误! 我在尝试这个方案后解决了!!https://blog.csdn.net/Crystal_colouro/article/details/82960660

@lixin192
Copy link

@xinzhengyi
还需要下载VS软件?我安装的是Matlab2017和mingw64,mex失败了

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

4 participants