vlfeat / matconvnet

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

Error in compile time #1162

Closed aligoglos closed 6 years ago

aligoglos commented 6 years ago

i try to compile matconvnet using below command but error occur :

vl_compilenn('enableGpu', true, ...
               'cudaMethod', 'nvcc', ...
               'cudaRoot', 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0', ...
               'enableCudnn', true, ...
               'cudnnRoot', 'D:\SoftwareInstaltion\cudnn-8.0-windows10-x64-v7\cuda','EnableImreadJpeg',false) ;
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 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnconv.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnfullyconnected.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnsubsample.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnpooling.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnnormalize.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnnormalizelp.cu 
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/INCLUDE\xutility(2316): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data 
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/INCLUDE\xutility(2335): note: see reference to function template instantiation '_OutIt std::_Copy_unchecked1<_InIt,_OutIt>(_InIt,_InIt,_OutIt,std::_General_ptr_iterator_tag)' being compiled 
        with 
        [ 
            _OutIt=int *, 
            _InIt=__int64 * 
        ] 
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/INCLUDE\xutility(2354): note: see reference to function template instantiation '_OutIt std::_Copy_unchecked<_InIt,_Iter>(_InIt,_InIt,_OutIt)' being compiled 
        with 
        [ 
            _OutIt=int *, 
            _InIt=__int64 *, 
            _Iter=int * 
        ] 
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/INCLUDE\xutility(2364): note: see reference to function template instantiation '_OutIt std::_Copy_no_deprecate1<__int64*,_OutIt>(_InIt,_InIt,_OutIt,std::random_access_iterator_tag,std::random_access_iterator_tag)' being compiled 
        with 
        [ 
            _OutIt=int *, 
            _InIt=__int64 * 
        ] 
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/INCLUDE\xutility(2373): note: see reference to function template instantiation '_OutIt std::_Copy_no_deprecate<_InIt,_OutIt>(_InIt,_InIt,_OutIt)' being compiled 
        with 
        [ 
            _OutIt=int *, 
            _InIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types<__int64>>> 
        ] 
d:\software instaltion\matconvnet-1.0-beta25\matconvnet-1.0-beta25\matlab\src\bits\nnnormalizelp_gpu.cu(79): note: see reference to function template instantiation '_OutIt *std::copy<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<__int64>>>,int*>(_InIt,_InIt,_OutIt)' being compiled 
        with 
        [ 
            _OutIt=int *, 
            _InIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types<__int64>>> 
        ] 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnbnorm.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnbias.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnbilinearsampler.cu 
D:/Software Instaltion/matconvnet-1.0-beta25/matconvnet-1.0-beta25/matlab/src/bits/nnbilinearsampler.cu(100): warning C4068: unknown pragma 
D:/Software Instaltion/matconvnet-1.0-beta25/matconvnet-1.0-beta25/matlab/src/bits/nnbilinearsampler.cu(102): warning C4068: unknown pragma 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
nnroipooling.cu 
Building with 'Microsoft Visual C++ 2015 Professional'.
MEX completed successfully.
Building with 'Microsoft Visual C++ 2015 Professional'.
MEX completed successfully.
Building with 'Microsoft Visual C++ 2015 Professional'.
MEX completed successfully.
Building with 'Microsoft Visual C++ 2015 Professional'.
MEX completed successfully.
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
im2row_gpu.cu 
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. 
vl_nnconv.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_nnconvt.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_nnpool.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_nnnormalize.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_nnnormalizelp.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_nnbnorm.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_nnbilinearsampler.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_nnroipool.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_taccummex.cu 
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored. 
vl_cudatool.cu 
Building with 'Microsoft Visual C++ 2013 Professional (C)'.
Error using mex
msvcprt.lib(newaop_s.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't
match value '1900' in vl_nnconv.obj
   Creating library D:\Software
   Instaltion\matconvnet-1.0-beta25\matconvnet-1.0-beta25\matlab\mex\vl_nnconv.lib and object
   D:\Software Instaltion\matconvnet-1.0-beta25\matconvnet-1.0-beta25\matlab\mex\vl_nnconv.exp
vl_nnconv.obj : error LNK2019: unresolved external symbol __imp___stdio_common_vsprintf referenced in
function _vsnprintf_l
data.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *,unsigned
__int64)" (??3@YAXPEAX_K@Z) referenced in function "int `double __cdecl vl::randn(void)'::`1'::dtor$0"
(?dtor$0@?0??randn@vl@@YANXZ@4HA)
tinythread.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void
*,unsigned __int64)" (??3@YAXPEAX_K@Z)
data.obj : error LNK2019: unresolved external symbol _Init_thread_header referenced in function
"double __cdecl vl::randn(void)" (?randn@vl@@YANXZ)
data.obj : error LNK2019: unresolved external symbol _Init_thread_abort referenced in function "int
`double __cdecl vl::randn(void)'::`1'::dtor$0" (?dtor$0@?0??randn@vl@@YANXZ@4HA)
data.obj : error LNK2019: unresolved external symbol _Init_thread_footer referenced in function
"double __cdecl vl::randn(void)" (?randn@vl@@YANXZ)
data.obj : error LNK2019: unresolved external symbol _Init_thread_epoch referenced in function "double
__cdecl vl::randn(void)" (?randn@vl@@YANXZ)
nnbilinearsampler.obj : error LNK2019: unresolved external symbol __imp___acrt_iob_func referenced in
function printf
nnbilinearsampler.obj : error LNK2019: unresolved external symbol __imp___stdio_common_vfprintf
referenced in function _vfprintf_l
tinythread.obj : error LNK2001: unresolved external symbol __std_terminate
tinythread.obj : error LNK2019: unresolved external symbol __imp_terminate referenced in function
"public: __cdecl tthread::thread::~thread(void)" (??1thread@tthread@@QEAA@XZ)
D:\Software Instaltion\matconvnet-1.0-beta25\matconvnet-1.0-beta25\matlab\mex\vl_nnconv.mexw64 : fatal
error LNK1120: 10 unresolved externals

Error in vl_compilenn>mex_link (line 627)
mex(args{:}) ;

Error in vl_compilenn (line 500)
  mex_link(opts, objs, flags.mex_dir, flags) ;
astha0899 commented 5 years ago

Did you find a solution to this problem?

If you did, let me know please.