ricedsp / rwt

The Rice Wavelet Toolbox (RWT) is a collection of Matlab M-files and C MEX-files for 1D and 2D wavelet and filter bank design, analysis, and processing. The toolbox provides tools for denoising and interfaces directly with our Matlab code for wavelet domain hidden Markov models and wavelet regularized deconvolution.
http://dsp.rice.edu
Other
135 stars 47 forks source link

error to compile using matlabR2012b on windows 7 and R2012a on windows XP #5

Closed meorfaisal85 closed 9 years ago

meorfaisal85 commented 10 years ago

Hi, I tried to use the RWT, however I have got some problem when I need to compile the file. To compile the file, I put the ‘bin’ as subdirectory in my Matlab as explained in the installation guide. Below are the error that I got from the Matlab

compile

-> Default options filename found in C:\Users\mmm112\AppData\Roaming\MathWorks\MATLAB\R2012b

-> Options file = C:\Users\mmm112\AppData\Roaming\MathWorks\MATLAB\R2012b\mexopts.bat MATLAB = C:\Program Files\MATLAB\R2012b -> COMPILER = cl -> Compiler flags: COMPFLAGS = /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD OPTIMFLAGS = /O2 /Oy- /DNDEBUG DEBUGFLAGS = /Z7 arguments = -I../lib/inc Name switch = /Fo -> Pre-linking commands =
-> LINKER = link -> Link directives: LINKFLAGS = /dll /export:mexFunction /LIBPATH:"C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib /MACHINE:X64 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /manifest /incremental:NO /implib:"C:\Users\mmm112\AppData\Local\Temp\mex_MJVk5t\templib.x" /MAP:"../bin\mdwt.mexw64.map" LINKDEBUGFLAGS = /debug /PDB:"../bin\mdwt.mexw64.pdb" LINKFLAGSPOST =
Name directive = /out:"../bin\mdwt.mexw64" File link directive =
Lib. link directive =
Rsp file indicator = @ -> Resource Compiler = rc /fo "../bin\mexversion.res"

-> Resource Linker =

--> cl -I../lib/inc /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /FoC:\Users\mmm112\AppData\Local\Temp\mex_MJVk5t\mdwt.obj -I"C:\Program Files\MATLAB\R2012b\extern\include" -I"C:\Program Files\MATLAB\R2012b\simulink\include" /O2 /Oy- /DNDEBUG ..\mex\mdwt.c

mdwt.c d:\phd research\004 programming & design\001 matlab\004 image processing\rwt-master\rwt-master\lib\inc\rwt_platform.h(44) : warning C4005: 'max' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(854) : see previous definition of 'max' d:\phd research\004 programming & design\001 matlab\004 image processing\rwt-master\rwt-master\lib\inc\rwt_platform.h(45) : warning C4005: 'min' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(855) : see previous definition of 'min'

--> cl -I../lib/inc /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /FoC:\Users\mmm112\AppData\Local\Temp\mex_MJVk5t\dwt.obj -I"C:\Program Files\MATLAB\R2012b\extern\include" -I"C:\Program Files\MATLAB\R2012b\simulink\include" /O2 /Oy- /DNDEBUG ..\lib\src\dwt.c

dwt.c ../lib/inc\rwt_platform.h(44) : warning C4005: 'max' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(854) : see previous definition of 'max' ../lib/inc\rwt_platform.h(45) : warning C4005: 'min' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(855) : see previous definition of 'min'

--> cl -I../lib/inc /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /FoC:\Users\mmm112\AppData\Local\Temp\mex_MJVk5t\init.obj -I"C:\Program Files\MATLAB\R2012b\extern\include" -I"C:\Program Files\MATLAB\R2012b\simulink\include" /O2 /Oy- /DNDEBUG ..\lib\src\init.c

init.c d:\phd research\004 programming & design\001 matlab\004 image processing\rwt-master\rwt-master\lib\inc\rwt_platform.h(44) : warning C4005: 'max' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(854) : see previous definition of 'max' d:\phd research\004 programming & design\001 matlab\004 image processing\rwt-master\rwt-master\lib\inc\rwt_platform.h(45) : warning C4005: 'min' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(855) : see previous definition of 'min' ..\lib\src\init.c(97) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data ..\lib\src\init.c(171) : error C2143: syntax error : missing ';' before 'type' ..\lib\src\init.c(172) : error C2065: 'argNumL' : undeclared identifier ..\lib\src\init.c(173) : error C2065: 'argNumL' : undeclared identifier ..\lib\src\init.c(187) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ..\lib\src\init.c(195) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data

C:\PROGRA~1\MATLAB\R2012B\BIN\MEX.PL: Error: Compile of '..\lib\src\init.c' failed.

Error using mex (line 206) Unable to complete successfully.

Error in compile (line 13) mex -v -largeArrayDims ../mex/mdwt.c ../lib/src/dwt.c ../lib/src/init.c ../lib/src/platform.c -I../lib/inc -outdir ../bin

I really appreciate if you could help me on this. Thanks in advance!

KwangKa commented 10 years ago

Got the same problem, Anyone fixed it?

ngcthuong commented 10 years ago

I also got the same problem on Window7, Anyone fixed it?

kalliste commented 9 years ago

Fixed in commit 7445141086abcdc0ad190b38f700fcb70017d8ee