albanie / mcnMaxout

Maxout networks for MatConvNet
MIT License
5 stars 3 forks source link

Installation Issue #1

Open k2cu8 opened 6 years ago

k2cu8 commented 6 years ago

After successfully installed Matconvnet freshly, the installation of mcnMaxout occured the following error and thus failed to install on my VS2015 + nvcc9.0 + Win10 setup:

vl_contrib('install', 'mcnMaxout') ; Module mcnMaxout is up to date. Module mcnMaxout updated. To set up the module, run: compile and setup vlcontrib('compile', 'mcnMaxout') ; Warning: Variable 'continue' has the same name as a keyword. It will be loaded as 'continue'. In compile_mcnMaxout (line 6) In vl_contrib>module_compile (line 231) In vl_contrib (line 110) nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. data.cu nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. datamex.cu Building with 'Microsoft Visual C++ 2015'. MEX completed successfully. nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. copy_gpu.cu nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. datacu.cu nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. nnmaxout.cu Building with 'Microsoft Visual C++ 2015'. Error using mex maxout_cpu.cpp c:\users\zz_ro\dropbox\source\include\matconvnet-1.0-beta25.tar\matconvnet-1.0-beta25\contrib\mcnmaxout\matlab\src\bits\impl\maxout_cpu.cpp(87) : error C4716: 'vl::impl::maxout<0,double>::backward': must return a value c:\users\zz_ro\dropbox\source\include\matconvnet-1.0-beta25.tar\matconvnet-1.0-beta25\contrib\mcnmaxout\matlab\src\bits\impl\maxout_cpu.cpp(72) : error C4716: 'vl::impl::maxout<0,double>::forward': must return a value c:\users\zz_ro\dropbox\source\include\matconvnet-1.0-beta25.tar\matconvnet-1.0-beta25\contrib\mcnmaxout\matlab\src\bits\impl\maxout_cpu.cpp(72) : error C4716: 'vl::impl::maxout<0,float>::forward': must return a value c:\users\zz_ro\dropbox\source\include\matconvnet-1.0-beta25.tar\matconvnet-1.0-beta25\contrib\mcnmaxout\matlab\src\bits\impl\maxout_cpu.cpp(87) : error C4716: 'vl::impl::maxout<0,float>::backward': must return a value

Error in vl_compilenn>mex_compile (line 583) mex(args{:}) ;

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

Error in compile_mcnMaxout (line 8) vl_compilenn(opts{:}, varargin{:}, 'preCompileFn', @preCompileFn) ;

Error in vl_contrib>module_compile (line 231) handle(varargin{:});

Error in vl_contrib (line 110) module_compile(module, varargin{:});

Mex was configured to VS2015 Compiler, and all test cases of Matconvnet passed.

albanie commented 6 years ago

Hi @k2cu8, unfortunately I don't have a windows machine, so I'm not much use for debugging the compilation issue. I'm sorry I can't be more help :(

AbderraoufKhodja commented 5 years ago

@k2cu8 , Hello, I am facing the same issue, did you find a solution for it?