ShaoqingRen / SPP_net

SPP_net : Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition
363 stars 236 forks source link

spp_build () Compile Error #2

Closed ByzanTine closed 9 years ago

ByzanTine commented 9 years ago

Hi, I am a researcher that need spp-net to make our detection fast. But when I compile, I got following error messages. Compiling spm_pool_caffe_mex utils/spm_pool/spm_pool_caffe_mex.cpp: In function ‘void mexFunction(int, mxArray, int, const m xArray)’: utils/spm_pool/spm_pool_caffe_mex.cpp:101: error: ‘floor’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:104: error: ‘ceil’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:132: error: ‘memset’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:134: error: ‘_aligned_malloc’ was not declared in this scop e utils/spm_pool/spm_pool_caffe_mex.cpp:168: error: ‘floor’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:169: error: ‘ceil’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:184: error: expected initializer before ‘*’ token utils/spm_pool/spm_pool_caffe_mex.cpp:185: error: ‘__m128’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:185: error: ‘pooled_this_div_sse’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:185: error: expected primary-expression before ‘)’ token utils/spm_pool/spm_pool_caffe_mex.cpp:185: error: expected ‘;’ before ‘pooled_this_div_cache’ utils/spm_pool/spm_pool_caffe_mex.cpp:189: error: ‘feats_this_sse’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:189: error: ‘_mm_max_ps’ was not declared in this scope utils/spm_pool/spm_pool_caffe_mex.cpp:218: error: ‘_aligned_free’ was not declared in this scope

mex: compile of ' "utils/spm_pool/spm_pool_caffe_mex.cpp"' failed.

Unable to complete successfully.

I have cleared the first 3 error message by include and . I think others are sse command set compile errors. I am compile in Matlab R2013b, is that the problem?

ShaoqingRen commented 9 years ago

Could you aslo list the complier and operation system used ?

I have tested in Windows, with Matlab R2013a / R2014a, Microsoft Visual C++ 2010 / 2012 / 2013.

ByzanTine commented 9 years ago

I see the problem, we are using Linux/Matlab 2013a. Then I guess my question is will you make it compatible to Linux? It seems not that easy...I will try windows I guess. You may close it now.