While configuring ,
when i reach the vl_compilenn command it informs me to use the C++ compiler of the visual studio, i did that already.
finally i have an error i think it is regarding the mex compilation. DO i have to upgrade the mex?
i use the matlab 2017b do i have to upgrade to 2018a to upgrade the mex files?
could you please help me?
the log is :
`K>> mex -setup
MEX configured to use 'Microsoft Visual C++ 2015 (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.
You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different C compiler, select one from the following:
MinGW64 Compiler (C) mex -setup:'C:\Program Files\MATLAB\R2017b\bin\win64\mexopts\mingw64.xml' C
Microsoft Visual C++ 2015 (C) mex -setup:C:\Users\JUST\AppData\Roaming\MathWorks\MATLAB\R2017b\mex_C_win64.xml C
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
K>> mex -setup:C:\Users\JUST\AppData\Roaming\MathWorks\MATLAB\R2017b\mex_C_win64.xml C
MEX configured to use 'Microsoft Visual C++ 2015 (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.
You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
K>> addpath matlab
K>> vl_compilenn
Building with 'MinGW64 Compiler (C++)'.
Error using mex
Cannot export mexFunction: symbol not defined
Cannot export mexfilerequiredapiversion: symbol not defined
collect2.exe: error: ld returned 1 exit status
Error in vl_compilenn>mex_compile (line 583)
mex(args{:}) ;
Error in vl_compilenn (line 492)
mex_compile(opts, srcs{i}, objfile, flags) ;
583 mex(args{:}) ;
K>> vl_compilenn('verbose', 1)
vl_compilenn: Compiler and linker configurations
vl_compilenn: intermediate build products directory: C:\Users\JUST\Desktop\sanaas work\medical work\imageset 1\try3\practical-category-detection-2018a\matconvnet\matlab\mex.build
vl_compilenn: MEX files: C:\Users\JUST\Desktop\sanaas work\medical work\imageset 1\try3\practical-category-detection-2018a\matconvnet\matlab\mex/
vl_compilenn: Base options: -DENABLE_DOUBLE -O -DNDEBUG
vl_compilenn: MEX CXX: -largeArrayDims -DSSSE3
vl_compilenn: MEX CXXFLAGS:
vl_compilenn: MEX CXXOPTIMFLAGS:
vl_compilenn: MEX LINK: -largeArrayDims -lmwblas
vl_compilenn: MEX LINK LDFLAGS:
vl_compilenn: MEX LINK LDOPTIMFLAGS:
vl_compilenn: MEX LINK LINKLIBS: gdiplus.lib
vl_compilenn: Reading images
vl_compilenn: vl_imreadjpeg enabled
vl_compilenn: image library: gdiplus
vl_compilenn: image library compile flags:
vl_compilenn: image library link flags: gdiplus.lib
vl_compilenn: MEX CC: -c -outdir C:\Users\JUST\Desktop\sanaas work\medical work\imageset 1\try3\practical-category-detection-2018a\matconvnet\matlab\mex.build\bits C:\Users\JUST\Desktop\sanaas work\medical work\imageset 1\try3\practical-category-detection-2018a\matconvnet\matlab\src\bits\data.cpp -DENABLE_DOUBLE -O -DNDEBUG -largeArrayDims -DSSSE3 CXXFLAGS=$CXXFLAGS CXXOPTIMFLAGS=$CXXOPTIMFLAGS
Building with 'MinGW64 Compiler (C++)'.
Error using mex
Cannot export mexFunction: symbol not defined
Cannot export mexfilerequiredapiversion: symbol not defined
collect2.exe: error: ld returned 1 exit status
Error in vl_compilenn>mex_compile (line 583)
mex(args{:}) ;
Error in vl_compilenn (line 492)
mex_compile(opts, srcs{i}, objfile, flags) ;
While configuring , when i reach the vl_compilenn command it informs me to use the C++ compiler of the visual studio, i did that already. finally i have an error i think it is regarding the mex compilation. DO i have to upgrade the mex? i use the matlab 2017b do i have to upgrade to 2018a to upgrade the mex files? could you please help me? the log is :
`K>> mex -setup MEX configured to use 'Microsoft Visual C++ 2015 (C)' for C language compilation. Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. You will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different C compiler, select one from the following: MinGW64 Compiler (C) mex -setup:'C:\Program Files\MATLAB\R2017b\bin\win64\mexopts\mingw64.xml' C Microsoft Visual C++ 2015 (C) mex -setup:C:\Users\JUST\AppData\Roaming\MathWorks\MATLAB\R2017b\mex_C_win64.xml C
To choose a different language, select one from the following: mex -setup C++ mex -setup FORTRAN K>> mex -setup:C:\Users\JUST\AppData\Roaming\MathWorks\MATLAB\R2017b\mex_C_win64.xml C MEX configured to use 'Microsoft Visual C++ 2015 (C)' for C language compilation. Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. You will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html. K>> addpath matlab K>> vl_compilenn Building with 'MinGW64 Compiler (C++)'. Error using mex Cannot export mexFunction: symbol not defined Cannot export mexfilerequiredapiversion: symbol not defined collect2.exe: error: ld returned 1 exit status
Error in vl_compilenn>mex_compile (line 583) mex(args{:}) ;
Error in vl_compilenn (line 492) mex_compile(opts, srcs{i}, objfile, flags) ;
583 mex(args{:}) ; K>> vl_compilenn('verbose', 1) vl_compilenn: Compiler and linker configurations vl_compilenn: intermediate build products directory: C:\Users\JUST\Desktop\sanaas work\medical work\imageset 1\try3\practical-category-detection-2018a\matconvnet\matlab\mex.build vl_compilenn: MEX files: C:\Users\JUST\Desktop\sanaas work\medical work\imageset 1\try3\practical-category-detection-2018a\matconvnet\matlab\mex/ vl_compilenn: Base options: -DENABLE_DOUBLE -O -DNDEBUG vl_compilenn: MEX CXX: -largeArrayDims -DSSSE3 vl_compilenn: MEX CXXFLAGS: vl_compilenn: MEX CXXOPTIMFLAGS: vl_compilenn: MEX LINK: -largeArrayDims -lmwblas vl_compilenn: MEX LINK LDFLAGS: vl_compilenn: MEX LINK LDOPTIMFLAGS: vl_compilenn: MEX LINK LINKLIBS: gdiplus.lib vl_compilenn: Reading images vl_compilenn: vl_imreadjpeg enabled vl_compilenn: image library: gdiplus vl_compilenn: image library compile flags: vl_compilenn: image library link flags: gdiplus.lib vl_compilenn: MEX CC: -c -outdir C:\Users\JUST\Desktop\sanaas work\medical work\imageset 1\try3\practical-category-detection-2018a\matconvnet\matlab\mex.build\bits C:\Users\JUST\Desktop\sanaas work\medical work\imageset 1\try3\practical-category-detection-2018a\matconvnet\matlab\src\bits\data.cpp -DENABLE_DOUBLE -O -DNDEBUG -largeArrayDims -DSSSE3 CXXFLAGS=$CXXFLAGS CXXOPTIMFLAGS=$CXXOPTIMFLAGS Building with 'MinGW64 Compiler (C++)'. Error using mex Cannot export mexFunction: symbol not defined Cannot export mexfilerequiredapiversion: symbol not defined collect2.exe: error: ld returned 1 exit status
Error in vl_compilenn>mex_compile (line 583) mex(args{:}) ;
Error in vl_compilenn (line 492) mex_compile(opts, srcs{i}, objfile, flags) ;
583 mex(args{:}) ; K>> `