-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Compile in windows #12
Comments
I have the same problem. Is there anyone know why? |
Same here, I hope someone knows why |
hi all! to correct this error! you open c:program filesmatlabr2011aexternincludematrix.h add this line in to file matrix.h (locate in mahlab_install_folder\extern\include) #pragma warning (disable:4430) contact me if you can't do this Yahoo: buiduyhung2007 |
Actually you should avoid doing that. Modifying the actual MEX MATLAB libraries is NOT recommended. If you get this issue, go into the following files: lk.cpp, fern.cpp, and bb_overlap.cpp, and comment out these lines of code: #ifdef _CHAR16_T #define CHAR16_T #endif Once you do that, try compiling it again. These were written in the installation directions on this wiki: https://github.com/zk00006/OpenTLD/wiki/Installation Hope this helps,
|
Dear Vicy, This means that the WORKING DIRECTORY in MATLAB is not set to where the Hope this helps,
On Tue, Jul 5, 2011 at 3:10 AM, waczkor <
|
And this? PC E:\PROGRA~1\MATLAB\BIN\MEX.PL: Error: Link of 'lk.mexw64' failed. ??? Error using ==> mex at 222 Error in ==> compile at 32 If I run run_TLD.m i got this: Error in ==> tldInitFirstFrame at 21 Error in ==> tldExample at 30 Error in ==> run_TLD at 42 and an empty window in matlab named Figure2. Please please help me. |
Aha, You weren't telling me the whole story! Because you're compiling in 64-bit You need to follow these directions before compiling. You gotta tell me the https://github.com/zk00006/OpenTLD/wiki/Installation Hope this helps,
On Tue, Jul 5, 2011 at 12:01 PM, waczkor <
|
Running compile.m is finished, but running run_TLD.m gives me this: ??? Invalid MEX-file . Error in ==> tldInit at 20 Error in ==> tldExample at 34 Error in ==> run_TLD at 42 I did what you said Ray (C:\Users\Waczkor\Documents\predator\progi\source code) Error in ==> tldInitFirstFrame at 21 Error in ==> tldExample at 30 Error in ==> run_TLD at 42 |
Install 32-bit MATLAB, then try again... I'm out of options. Good luck,
|
with 32-bit matlab it works correctly, thanks :D |
Hey, I am having that same problem, I've tried both open cv 2.2 and 2.3.1, am using vc2010, and matlab 32bit( as is my computer.. ) PC C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Link of 'lk.mexw32' failed. ??? Error using ==> mex at 208 Error in ==> compile at 34 any help ? |
Matlab us 2010 a or b. 2010a needs a patch. Opencv 2.2 is needed, look after On 2011.07.24. 13:01, "AlonBiran" < Hey, I am having that same problem, I've tried both open cv 2.2 and 2.3.1, PC lk.obj : error LNK2019: unresolved external symbol _cvCalcOpticalFlowPyrLK C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Link of 'lk.mexw32' failed. ??? Error using ==> mex at 208 Error in ==> compile at 34 eval(['mex lk.cpp -O' include lib]); Reply to this email directly or view it on GitHub: |
Hey, thanks for the fast reply, I have 2011a Matlab us 2010 a or b. 2010a needs a patch. Opencv 2.2 is needed, look after On 2011.07.24. 13:01, "AlonBiran" < Hey, I am having that same problem, I've tried both open cv 2.2 and 2.3.1, PC lk.obj : error LNK2019: unresolved external symbol _cvCalcOpticalFlowPyrLK C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Link of 'lk.mexw32' failed. ??? Error using ==> mex at 208 Error in ==> compile at 34 eval(['mex lk.cpp -O' include lib]); Reply to this email directly or view it on GitHub: Reply to this email directly or view it on GitHub: |
A needs a patch to work correctly with VS2010, and you'll need to use opencv 2011/7/24 AlonBiran <
|
Where do I find the patch? A needs a patch to work correctly with VS2010, and you'll need to use opencv 2011/7/24 AlonBiran <
Reply to this email directly or view it on GitHub: |
http://www.mathworks.com/support/solutions/en/data/1-D5W493/?solution=1-D5W493 2011/7/25 AlonBiran <
|
@duyhunghd6 z hint works for me. |
hi guys, i have the same problem, who can help me please? i use matlab2011a+opencv2.3.1+vs2008 the error: C:\PROGRA~1\MATLAB\BIN\MEX.PL: Error: Link of 'lk.mexw32' failed. ??? Error using ==> mex at 208 Error in ==> compile at 35 does anyone have a solution? thank in advance.. |
Hi,I got the similar problem,I use matlab2011a+vs2010+opencv2.2. D:\MATLAB\R2011A\BIN\MEX.PL: Error: Link of 'lk.mexw32' failed. ??? Error using ==> mex at 208 Error in ==> compile at 32 any help ? thanks so much! |
I figure it out now.the error is that I had set lthe libpath as ' D:\OpenCV2.2\lib',and there's an unnecessary spase before the path(in front of D). |
I'm using Linux 64bit, matlab 2012b, Warning: You are using gcc version "4.6.3-1ubuntu5)". The version lk.o: In function
Error using mex (line 206) Error in compile (line 77) |
Maybe it's because that the libpath you set is wrong,check your path again. |
@simonsayshi I'm sorry I have no idea. I haven't used this framework in 4 years so whatever nuances I've discovered, I've long forgotten them. |
First i installed opencv from here: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.2/OpenCV-2.2.0-win32-vs2010.exe/download and selected 'add path to variables.'
Second i wrote 'mex -setup' and select Visual studio 2010.
Finally i open the source folder in Matlab, run the file compile.m and got:
´PC
lk.cpp
c:\program files\matlab\r2011a\extern\include\matrix.h(337) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
lk.cpp(175) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
lk.cpp(175) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
lk.cpp(176) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
lk.cpp(176) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
lk.cpp(177) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
lk.cpp(177) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Compile of 'lk.cpp' failed.
??? Error using ==> mex at 208
Unable to complete successfully.
Error in ==> compile at 32
eval(['mex lk.cpp -O' include lib]);
The text was updated successfully, but these errors were encountered: