vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 753 forks source link

Problems when compiling MatConvNet #501

Closed llafcode closed 6 years ago

llafcode commented 8 years ago

Hi everyone, I'm new to MATLAB and MatConvNet. When I tried to follow the instructions on the website of MatConvNet to do the basic compiling(which is the CPU version), no matter I compiled in MATLAB using vl_compilenn or the command line, the compiling process will always stuck in some place. I tried the vl_compilenn('verbose',1) in MATLAB and saw that the process was stucked whlie MEX LINK, and until now I've been waiting for almost half an hour and I believe that there is something wrong.

P.S. My OS is MAC OS X 10.11.4 Graphic card is Intel Iris Graphics 6100 1536 MB MATLAB version is 2016a trial use MatConvNet version is 1.0-beta19

Please help me out, I almost spent all day on this compiling process of my experiment.

elseven commented 8 years ago

Same here... Try running: vl_compilenn('EnableImreadJpeg',false)

Hopefully you don't need ImreadJpeg...

llafcode commented 8 years ago

Actually I solve the problem by using the earlier release of matconvnet.... Pretty tough way to find this solution...

thanks a lot anyway.:)

lenck commented 8 years ago

Hmm, @elseven have you also used the Matlab 2016a? There might some issues in that. But it's weird that the earlier version worked as there hasn't been many changes in the compilation script. @llafcode can you tell which one have you used? So we can backtrack the changes... Thanks for help :)

llafcode commented 8 years ago

@lenck I used Matlab 2016a trial.

lenck commented 8 years ago

@llafcode sorry, I meant which release of MatConvNet have you used :) If it just emerged in the beta-19...

llafcode commented 8 years ago

@lenck This issue only happened when I use the beta-19. I tried beta-15 and beta-17, they all worked well.

sdierauf commented 8 years ago

Same here, beta19 does not compile for me

vedaldi commented 8 years ago

Hi, is this issue occurring on a Mac only? MATLAB 2016a only?

vedaldi commented 8 years ago

Hi, I could reproduce. It seems to be a bug in MATLAB 2016a. Basically, MEX it hangs when one tries to append options to the flags as explained in MathWorks website http://uk.mathworks.com/help/matlab/ref/mex.html (e.g. LDFLAGS='$LDFLAGS something'). We need to do this to link various libraries to MCN, in particular for imreadjpeg. I'll look for a workaround but it may need fixing by MathWorks.

Update: the problem is triggered when the same flag is defined twice. Hence a workaround should be possible but it would require some major rewrite of vl_compilenn. I submitted a bug report to Mathworks and hopefully they will suggest a better solution.

sdierauf commented 8 years ago

beta18 compiles fine for me

sdierauf commented 8 years ago

Not to overload this issue, but I just tested compiling beta17 through 19 with vl_compilenn('enableGpu', true, 'verbose', 2) and they all fail at the MEX_LINK step.

HOWEVER it may not be worth the effort to continue to support cuda on mac, as so little apple hardware ships with nvidia gpus, and it's looking like the next series of macbook pros will not ship with a dedicated nvidia gpu.

humamaki commented 8 years ago

I'm having the same problem when following the steps in the quick start guide.

run  matlab/vl_setupnn

I'm using Windows 10 64 bit and MATLAB R2016a (9.0.0.341360) 64-bit Fed/11/2016.

I'm getting the following error when I build with MinGW64

Building with 'MinGW64 Compiler (C++)'.
C:\MATLAB\SupportPackages\R2016a\MW_MinGW_4_9\bin\g++ -c -DNDEBUG  -DENABLE_DOUBLE  -D__SSSE3__   -m64 -DMATLAB_MEX_FILE  -I"C:\Program Files\MATLAB\R2016a/extern/include" -I"C:\Program Files\MATLAB\R2016a/simulink/include" -fexceptions -fno-omit-frame-pointer  -O -DNDEBUG  C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\src\bits\impl\imread_gdiplus.cpp -o C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\imread_gdiplus.obj
Error using mex
In file included from C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\src\bits\impl\imread_helpers.hpp:18:0,
                 from C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\src\bits\impl\imread_gdiplus.cpp:14:
C:/MATLAB/SupportPackages/R2016a/MW_MinGW_4_9/lib/gcc/x86_64-w64-mingw32/4.9.2/include/tmmintrin.h: In function '__m128i
_mm_hadd_epi16(__m128i, __m128i)':
C:/MATLAB/SupportPackages/R2016a/MW_MinGW_4_9/lib/gcc/x86_64-w64-mingw32/4.9.2/include/tmmintrin.h:42:70: error:
'__builtin_ia32_phaddw128' was not declared in this scope
   return (__m128i) __builtin_ia32_phaddw128 ((__v8hi)__X, (__v8hi)__Y);                                                                   ^
.
.
.

Error in vl_compilenn>mex_compile (line 510)
mex(mopts{:}) ;

Error in vl_compilenn (line 471)
    mex_compile(opts, srcs{i}, objfile, flags.mexcc) ;

Error in run (line 96)
evalin('caller', [script ';']);

And the following error when I build with Microsoft Visual C++ 2015 Professional

Building with 'MinGW64 Compiler (C)'.
C:\MATLAB\SupportPackages\R2016a\MW_MinGW_4_9\bin\gcc -m64 -Wl,--no-undefined  -shared -s -Wl,"C:\Program Files\MATLAB\R2016a/extern/lib/win64/mingw64/mexFunction.def" C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\vl_nnconv.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\data.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\datamex.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnconv.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnfullyconnected.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnsubsample.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnpooling.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnnormalize.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnbnorm.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnbias.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnbilinearsampler.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\im2row_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\subsample_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\copy_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\pooling_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\normalize_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\bnorm_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\tinythread.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\bilinearsampler_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\imread.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\imread_gdiplus.obj  -llibmwblas  -L"C:\Program Files\MATLAB\R2016a\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas gdiplus.lib -o C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\vl_nnconv.mexw64
Error using mex
gcc: error: gdiplus.lib: No such file or directory

Error in vl_compilenn>mex_link (line 528)
mex(mopts{:}) ;

Error in vl_compilenn (line 479)
  mex_link(opts, objs, mex_dir, flags.mexlink) ;

Error in run (line 96)
evalin('caller', [script ';']);

Thank you in advance.

riturkki commented 8 years ago

Any response from MathWorks?

I'm was planning to update to 2016a, but after seeing this issue that's postponed.

humamaki commented 8 years ago

I'm having the same issue with MATLAB 2015b on Ubuntu 16.04. What version of MatLab are you using?

oya163 commented 8 years ago

I believe you need to do the following

mex setup -c
mex setup -c++

However, don't forget that these both mex setup should be of the same version (VS2013/12/10 or Windows SDK)

Masoud-Ghodrati commented 8 years ago

Hi everybody, I also have the same problem, does anyone knows how to slove it :(

Error using mex gcc: error: gdiplus.lib: No such file or directory

Error in vl_compilenn>mex_link (line 547) mex(mopts{:}) ;

Error in vl_compilenn (line 498) mex_link(opts, objs, mex_dir, flags.mexlink) ;

Error in run (line 96) evalin('caller', [script ';']);

Error in CNN_Run (line 8) run matlab/vl_compilenn;

mangye16 commented 8 years ago

@vedaldi I also have the same problem, and The Matlab Version is 2016a, Visual Studio C++2010. Building with 'MinGW64 Compiler (C)'. Error using mex gcc: error: gdiplus.lib: No such file or directory

Error in vl_compilenn>mex_link (line 547) mex(mopts{:}) ;

Error in vl_compilenn (line 498) mex_link(opts, objs, mex_dir, flags.mexlink) ;

How could I solve this problem?

Masoud-Ghodrati commented 8 years ago

Hi guys, @mangmangye, I tried many different things and finally solved the issue magically, my recipe worked for me, but may/may not work for you.

I have couple of compilers (MinGW64, Visual Studio C++2015); but to solve the issue, I restricted the code to use just one compiler Visual Studio (and not MinGW64 because it didn't work for me). Change the first lines of code to:

clear all close all clc % Install and compile MatConvNet (needed once). untar('http://www.vlfeat.org/matconvnet/download/matconvnet-1.0-beta23.tar.gz') ; cd matconvnet-1.0-beta23

% you choose Visual Studio to be your compliler mex -setup:'C:\Program Files\MATLAB\R2016b\bin\win64\mexopts\msvc2015.xml' C mex -setup:'C:\Program Files\MATLAB\R2016b\bin\win64\mexopts\msvcpp2015.xml' C++

run matlab/vl_compilenn; ....

BTW, I use: MATLAB 2016b 64 bits Visual Studio Community 2015 (which is free: https://www.visualstudio.com/downloads/) MatConvNet 23 I also have Windows SDV 7.1 installed (I haven't used it in my code as you see)

Finally, I think you can run the code using Visual Studio 2010 and MATLAB 2016a.

Hope this would solve the issue.

Best

Ermin-Gong commented 7 years ago

hi@masi96 , following your advice, i figure it out finally,thank you very much, btw, matlab 2016b 64 bits,visual studio community 2015 and professional 2013 MatConvNet master

Masoud-Ghodrati commented 7 years ago

Happy to hear that.

Sent from my iPhone

On 17 Nov 2016, at 12:43 AM, Ermin-Gong notifications@github.com wrote:

hi@masi96 , following your advice, i figure it out finally,thank you very much, btw, matlab 2016b 64 bits,visual studio community 2015 and professional 2013 MatConvNet master

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

SphericalHarnomics commented 7 years ago

@masi96, Solve the same problem. Thanks a lot~

agpoyraz commented 7 years ago

I recommend disabling anti-virus before compiling

loosgagnet commented 7 years ago

Hi there. I have same problem when I try to run the below command on MATLAB:

vl_compilenn('enableGpu',true,'cudaRoot','C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0','cudaMethod' ,'nvcc','verbose', '2','enableCudnn','true','cudnnRoot','\local\cudnn')

My system configuration: Windows 10, MATLAB 2016b, Visual Studio 2015, Last version of MatConvNet, CUDA 8.0. CuDNN 5.1, NVIDIA GeForce 840M. There is no difference in the generated error by running of different version of MatConvNet. And the error is:

vl_compilenn: CUDA configuration vl_compilenn: CUDA: using CUDA Devkit 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0'. vl_compilenn: CUDA: using NVCC 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc' (80044). vl_compilenn: CUDA: determining GPU compute capability (use the 'CudaArch' option to override) vl_compilenn: CUDA: NVCC architecture string: '-gencode=arch=compute_50,code=\"sm_50,compute_50\" '. vl_compilenn: CUDA: MEX config file: 'C:\Program Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\src\mex\win64\mex_CUDA_win64.xml' vl_compilenn: Compiler and linker configurations vl_compilenn: intermediate build products directory: H:\Test1\matconvnet\matlab\mex.build vl_compilenn: MEX files: H:\Test1\matconvnet\matlab\mex/ vl_compilenn: MEX options [CC CPU]: -v -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I"\local\cudnn\include" -DENABLE_DOUBLE -DSSSE3 -largeArrayDims CXXFLAGS=$CXXFLAGS CXXOPTIMFLAGS=$CXXOPTIMFLAGS vl_compilenn: MEX options [LINK]: -v -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I"\local\cudnn\include" -DENABLE_DOUBLE -DSSSE3 -lmwblas -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64" -lcudart -lcublas -lgpu -L"\local\cudnn\lib\x64" -lcudnn -largeArrayDims LDFLAGS=$LDFLAGS LINKLIBS=gdiplus.lib $LINKLIBS vl_compilenn: MEX options [CC GPU]: -f C:\Program Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\src\mex\win64\mex_CUDA_win64.xml -v -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I"\local\cudnn\include" -DENABLE_DOUBLE -DSSSE3 -largeArrayDims CXXFLAGS=$CXXFLAGS -gencode=arch=compute_50,code=\"sm_50,compute_50\" -O3 -Xcompiler /MD --compiler-bindir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin" CXXOPTIMFLAGS=$CXXOPTIMFLAGS vl_compilenn: NVCC options [CC GPU]: -v -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I"\local\cudnn\include" -DENABLE_DOUBLE -DSSSE3 -gencode=arch=compute_50,code=\"sm_50,compute_50\" -I"C:\Program Files\MATLAB\R2016b\extern\include" -I"C:\Program Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\include" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -O3 -Xcompiler /MD --compiler-bindir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin" 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: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc" -c "H:\Test1\matconvnet\matlab\src\bits\data.cu" -v -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I"\local\cudnn\include" -DENABLE_DOUBLE -DSSSE3 -gencode=arch=compute_50,code=\"sm_50,compute_50\" -I"C:\Program Files\MATLAB\R2016b\extern\include" -I"C:\Program Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\include" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -O3 -Xcompiler /MD --compiler-bindir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin" -o "H:\Test1\matconvnet\matlab\mex.build\bits\data.obj"

H:\Test1>call C:\Windows\Temp/tmpxft_00002858_00000000-2.bat

H:\Test1>set 1>C:\Windows\Temp/tmpxft_00002858_00000000-1

$ VSINSTALLDIR=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../

$ VCINSTALLDIR=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/

$ C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/bin/amd64/vcvars64.bat

$ AGSDESKTOPJAVA=C:\Program Files (x86)\ArcGIS\Desktop10.1\

$ ALLUSERSPROFILE=C:\ProgramData

$ APPDATA=C:\Users\acer\AppData\Roaming

$ CommandPromptType=Native

$ CommonProgramFiles=C:\Program Files\Common Files

$ CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files

$ CommonProgramW6432=C:\Program Files\Common Files

$ COMPUTERNAME=ADMINRG-UVEHS9V

$ ComSpec=C:\Windows\system32\cmd.exe

$ CUDAPATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA

$ CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0

$ CUDA_PATH_V8_0=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0

$ ENVI51_GPTOOLS=C:\Program Files\Exelis\IDL83

$ FLEXLM_TIMEOUT=300000

$ Framework40Version=v4.0

$ FrameworkDir=C:\Windows\Microsoft.NET\Framework64\

$ FrameworkDir64=C:\Windows\Microsoft.NET\Framework64\

$ FrameworkVersion=v4.0.30319

$ FrameworkVersion64=v4.0.30319

$ HOMEDRIVE=C:

$ HOMEPATH=\Users\acer

$ INCLUDE=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/INCLUDE;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/ATLMFC\INCLUDE;(null)include(null)\ucrt;(null)include\shared;(null)include\um;(null)include\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt

$ KMP_BLOCKTIME=1

$ KMP_DUPLICATE_LIB_OK=TRUE

$ KMP_HANDLE_SIGNALS=0

$ KMP_STACKSIZE=512k

$ LIB=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/LIB\amd64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/ATLMFC\LIB\amd64;(null)lib(null)\ucrt\x64;(null)lib(null)um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64

$ LIBPATH=C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/LIB\amd64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/ATLMFC\LIB\amd64;References\CommonConfiguration\Neutral;\Microsoft.VCLibs\14.0\References\CommonConfiguration\neutral;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\Lib\amd64;

$ LOCALAPPDATA=C:\Users\acer\AppData\Local

$ LOGONSERVER=\ADMINRG-UVEHS9V

$ MATLAB_ARCH=win64

$ MW_NVCC_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc

$ NUMBER_OF_PROCESSORS=4

$ NVCUDASAMPLES8_0_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0

$ NVCUDASAMPLES_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0

$ NVIDIAWHITELISTED=0x01

$ NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\

$ OMP_WAIT_POLICY=PASSIVE

$ OneDrive=C:\Users\acer\OneDrive

$ OS=Windows_NT

$ Path=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/VCPackages;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\IDE;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Team Tools\Performance Tools\x64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Team Tools\Performance Tools;(null)bin\x64;(null)bin\x86;C:\Program Files\MATLAB\R2016b\bin\win64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;C:\Python27;C:\PCI Geomatics\Geomatica 2015\exe;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\MATLAB\R2016b\runtime\win64;C:\Program Files\MATLAB\R2016b\bin;C:\Program Files\MATLAB\R2016b\polyspace\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\acer.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Users\acer\Anaconda2;C:\Users\acer\Anaconda2\Scripts;C:\Users\acer\Anaconda2\Library\bin;C:\Users\acer\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

$ PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

$ Platform=X64

$ PROCESSOR_ARCHITECTURE=AMD64

$ PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel

$ PROCESSOR_LEVEL=6

$ PROCESSOR_REVISION=3d04

$ ProgramData=C:\ProgramData

$ ProgramFiles=C:\Program Files

$ ProgramFiles(x86)=C:\Program Files (x86)

$ ProgramW6432=C:\Program Files

$ PROMPT=$P$G

$ PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules

$ PUBLIC=C:\Users\Public

$ PYTHONPATH=C:\Users\acer\Anaconda2;C:\Users\acer\Anaconda2\Scripts;C:\Users\acer\Anaconda2\Library\bin;C:\Users\acer\Anaconda2\DLLs;C:\Users\acer\Anaconda2\Lib;C:\Users\acer\Anaconda2\Lib\site-packages

$ SHIM_MCCOMPAT=0x810000001

$ SystemDrive=C:

$ SystemRoot=C:\Windows

$ UCRTVersion=(null)

$ UniversalCRTSdkDir=(null)

$ USERDOMAIN=ADMINRG-UVEHS9V

$ USERDOMAIN_ROAMINGPROFILE=ADMINRG-UVEHS9V

$ USERNAME=acer

$ USERPROFILE=C:\Users\acer

$ VCINSTALLDIR=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/

$ VisualStudioVersion=14.0

$ VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\

$ VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin....\Common7\Tools\

$ VSINSTALLDIR=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../

$ windir=C:\Windows

$ WindowsLibPath=References\CommonConfiguration\Neutral

$ WindowsSdkDir=(null)

$ WindowsSDKLibVersion=(null)

$ WindowsSDKVersion=\

$ __KMP_REGISTERED_LIB_7784=00007FF841B27954-cafe4b4d-libiomp5md.dll

$ PATH=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/redist/x64/Microsoft.VC140.CRT;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/VCPackages;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\IDE;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Team Tools\Performance Tools\x64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Team Tools\Performance Tools;(null)bin\x64;(null)bin\x86;C:\Program Files\MATLAB\R2016b\bin\win64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;C:\Python27;C:\PCI Geomatics\Geomatica 2015\exe;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\MATLAB\R2016b\runtime\win64;C:\Program Files\MATLAB\R2016b\bin;C:\Program Files\MATLAB\R2016b\polyspace\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\acer.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Users\acer\Anaconda2;C:\Users\acer\Anaconda2\Scripts;C:\Users\acer\Anaconda2\Library\bin;C:\Users\acer\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

$ PATH=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/bin/amd64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/redist/x64/Microsoft.VC140.CRT;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/VCPackages;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\IDE;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Team Tools\Performance Tools\x64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Team Tools\Performance Tools;(null)bin\x64;(null)bin\x86;C:\Program Files\MATLAB\R2016b\bin\win64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;C:\Python27;C:\PCI Geomatics\Geomatica 2015\exe;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\MATLAB\R2016b\runtime\win64;C:\Program Files\MATLAB\R2016b\bin;C:\Program Files\MATLAB\R2016b\polyspace\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\acer.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Users\acer\Anaconda2;C:\Users\acer\Anaconda2\Scripts;C:\Users\acer\Anaconda2\Library\bin;C:\Users\acer\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

$ SPACE=

$ CUDART=cudart

$ HERE=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin

$ THERE=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin

$ _TARGETSIZE=

$ _TARGETDIR=

$ _TARGETSIZE=64

$ _WINPLATFORM=x64

$ TOP=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin/..

$ NVVMIR_LIBRARY_DIR=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin/../nvvm/libdevice

$ PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin/../open64/bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin/../nvvm/bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin/../lib;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/bin/amd64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/redist/x64/Microsoft.VC140.CRT;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/VCPackages;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\IDE;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Team Tools\Performance Tools\x64;C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../Team Tools\Performance Tools;(null)bin\x64;(null)bin\x86;C:\Program Files\MATLAB\R2016b\bin\win64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;C:\Python27;C:\PCI Geomatics\Geomatica 2015\exe;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\MATLAB\R2016b\runtime\win64;C:\Program Files\MATLAB\R2016b\bin;C:\Program Files\MATLAB\R2016b\polyspace\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\acer.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Users\acer\Anaconda2;C:\Users\acer\Anaconda2\Scripts;C:\Users\acer\Anaconda2\Library\bin;C:\Users\acer\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

$ INCLUDES="-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin/../include"

$ LIBRARIES= "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin/../lib/x64"

$ CUDAFE_FLAGS=

$ PTXAS_FLAGS=

data.cu

$ cl.exe @"C:\Windows\Temp/tmpxft_00002858_00000000-12.res" > "C:/Windows/Temp/tmpxft_00002858_00000000-11_data.cpp1.ii"

data.cu H:/Test1/matconvnet/matlab/src/bits/data.cu(20): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

--error 0x2 --

Error using vl_compilenn>nvcc_compile (line 544) Command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc" -c "H:\Test1\matconvnet\matlab\src\bits\data.cu" -v -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I"\local\cudnn\include" -DENABLE_DOUBLE -DSSSE3 -gencode=arch=compute_50,code=\"sm_50,compute_50\" -I"C:\Program Files\MATLAB\R2016b\extern\include" -I"C:\Program Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\include" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -O3 -Xcompiler /MD --compiler-bindir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin" -o "H:Test1\matconvnet\matlab\mex.build\bits\data.obj" failed.

Error in vl_compilenn (line 489) nvcc_compile(opts, srcs{i}, objfile, flags.nvcc) ;

Could you please tell me what the problem is? Thanks a lot.

isri701 commented 7 years ago

@masi96 I have tried your method. It give following error, can please help

Error using vl_compilenn>check_clpath (line 599) Unable to find cl.exe

Error in vl_compilenn (line 417) cl_path = fileparts(check_clpath()); % check whether cl.exe in path

Error in run (line 96) evalin('caller', [script ';']);

Error in Untitled (line 8) run matlab/vl_compilenn

SphericalHarnomics commented 7 years ago

Maybe note helpful, but there are many vl_feat projects(vl feat, mat convnet) not work well on the latest Matlab. Since the last time I had this issue, I re-install my Matlab from 2017a downgrade to 2016b, and the problem of compiling is solved.

Masoud-Ghodrati commented 7 years ago

Good point. Sometimes this worked for me as well.

On Thu, Jun 1, 2017 at 10:19 AM, SphericalHarnomics < notifications@github.com> wrote:

Maybe note helpful, but there are many vl_feat projects(vl feat, mat convnet) not work well on the latest Matlab. Since the last time I had this issue, I re-install my Matlab from 2017a downgrade to 2016b, and the problem of compiling is solved.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vlfeat/matconvnet/issues/501#issuecomment-305353987, or mute the thread https://github.com/notifications/unsubscribe-auth/AV0TKS9NpE5qo3XM62iGQH2ugF5Uj4Xfks5r_gOCgaJpZM4II8Tz .

-- _____ Masoud Ghodrati,

PhD Student, Department of Physiology, Monash University, Melbourne, Australia.

E-mails: masoud.ghodrati@monash.edu Web pages (Personal) : https://sites.google.com/site/masoudghodrati1985/

_____

popleyi commented 7 years ago

Just compiled the matconvnet beta 24 with 1080Ti, Cuda 8, Gcc/g++ 4.9 on Ubuntu 14.04. It seems like it is quite necessary to put matconvnet under the root for compiling/test.

fmnoori commented 6 years ago

thanks @masi96

I did it.

but when i test with this command

vl_testnn

it showed following error.

Running nnspnorm Setting up nnspnorm[dataType=single,device=cpu] Done setting up nnspnorm[dataType=single,device=cpu] in 0.0028839 seconds Running nnspnorm[dataType=single,device=cpu]/basic Done nnspnorm[dataType=single,device=cpu]/basic in 2.219 seconds Tearing down nnspnorm[dataType=single,device=cpu] Done tearing down nnspnorm[dataType=single,device=cpu] in 0 seconds Done nnspnorm in 2.2219 seconds


Failure Summary:

 Name                                                                    Failed  Incomplete  Reason(s)
=======================================================================================================
 nnmnist[dataType=single,device=cpu]/valErrorRate(networkType=dagnn)       X         X       Errored.
-------------------------------------------------------------------------------------------------------
 nnmnist[dataType=single,device=cpu]/valErrorRate(networkType=simplenn)    X         X       Errored.

result =

1×1673 TestResult array with properties:

Name
Passed
Failed
Incomplete
Duration
Details

Totals: 1671 Passed, 2 Failed, 2 Incomplete. 108.0444 seconds testing time.

ttomar07 commented 6 years ago

Error in vl_compilenn (line 324) mkdir(acess is denied) mkdir(fullfile(flags.bld_dir,'bits','impl')) ; please provide solution

AnFour commented 6 years ago

@Masoud-Ghodrati THX!!!!!!!!!!! You really save me!

Dandelion111 commented 5 years ago

I'm having the same problem when following the steps in the quick start guide.

run  matlab/vl_setupnn

I'm using Windows 10 64 bit and MATLAB R2016a (9.0.0.341360) 64-bit Fed/11/2016.

I'm getting the following error when I build with MinGW64

Building with 'MinGW64 Compiler (C++)'.
C:\MATLAB\SupportPackages\R2016a\MW_MinGW_4_9\bin\g++ -c -DNDEBUG  -DENABLE_DOUBLE  -D__SSSE3__   -m64 -DMATLAB_MEX_FILE  -I"C:\Program Files\MATLAB\R2016a/extern/include" -I"C:\Program Files\MATLAB\R2016a/simulink/include" -fexceptions -fno-omit-frame-pointer  -O -DNDEBUG  C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\src\bits\impl\imread_gdiplus.cpp -o C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\imread_gdiplus.obj
Error using mex
In file included from C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\src\bits\impl\imread_helpers.hpp:18:0,
                 from C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\src\bits\impl\imread_gdiplus.cpp:14:
C:/MATLAB/SupportPackages/R2016a/MW_MinGW_4_9/lib/gcc/x86_64-w64-mingw32/4.9.2/include/tmmintrin.h: In function '__m128i
_mm_hadd_epi16(__m128i, __m128i)':
C:/MATLAB/SupportPackages/R2016a/MW_MinGW_4_9/lib/gcc/x86_64-w64-mingw32/4.9.2/include/tmmintrin.h:42:70: error:
'__builtin_ia32_phaddw128' was not declared in this scope
   return (__m128i) __builtin_ia32_phaddw128 ((__v8hi)__X, (__v8hi)__Y);                                                                   ^
.
.
.

Error in vl_compilenn>mex_compile (line 510)
mex(mopts{:}) ;

Error in vl_compilenn (line 471)
    mex_compile(opts, srcs{i}, objfile, flags.mexcc) ;

Error in run (line 96)
evalin('caller', [script ';']);

And the following error when I build with Microsoft Visual C++ 2015 Professional

Building with 'MinGW64 Compiler (C)'.
C:\MATLAB\SupportPackages\R2016a\MW_MinGW_4_9\bin\gcc -m64 -Wl,--no-undefined  -shared -s -Wl,"C:\Program Files\MATLAB\R2016a/extern/lib/win64/mingw64/mexFunction.def" C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\vl_nnconv.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\data.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\datamex.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnconv.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnfullyconnected.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnsubsample.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnpooling.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnnormalize.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnbnorm.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnbias.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\nnbilinearsampler.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\im2row_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\subsample_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\copy_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\pooling_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\normalize_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\bnorm_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\tinythread.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\bilinearsampler_cpu.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\imread.obj C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\.build\bits\impl\imread_gdiplus.obj  -llibmwblas  -L"C:\Program Files\MATLAB\R2016a\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas gdiplus.lib -o C:\Users\humam\Documents\MATLAB\matconvnet-1.0-beta20\matlab\mex\vl_nnconv.mexw64
Error using mex
gcc: error: gdiplus.lib: No such file or directory

Error in vl_compilenn>mex_link (line 528)
mex(mopts{:}) ;

Error in vl_compilenn (line 479)
  mex_link(opts, objs, mex_dir, flags.mexlink) ;

Error in run (line 96)
evalin('caller', [script ';']);

Thank you in advance.

Error using mex

gcc: error: gdiplus.lib: No such file or directory How to solve this problem?