s-gupta / rcnn-depth

Learning Rich Features from RGB-D Images for Object Detection and Segmentation
BSD 2-Clause "Simplified" License
365 stars 150 forks source link

something wrong when running mcg_build in windows #21

Open Tanghaocheng opened 8 years ago

Tanghaocheng commented 8 years ago

mex_contour_sides.cpp E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1610) : see reference to class template instantiation 'math::matrices::matrix<T,Syn>' being compiled E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1280) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1286) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1296) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1303) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1313) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1319) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(1638) : see reference to class template instantiation 'math::matrices::cmatrix<T,Syn>' being compiled E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2460: 'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2433: 'math::matrices::+' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2365: 'math::matrices::operator +' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2460: 'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2433: 'math::matrices::-' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2365: 'math::matrices::operator -' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2460: 'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2433: 'math::matrices::+' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2365: 'math::matrices::operator +' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2460: 'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2433: 'math::matrices::-' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2365: 'math::matrices::operator -' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2460: 'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2433: 'math::matrices::+' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2365: 'math::matrices::operator +' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2460: 'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2433: 'math::matrices::-' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2365: 'math::matrices::operator -' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2460: 'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2433: 'math::matrices::+' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2365: 'math::matrices::operator +' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2460: 'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2433: 'math::matrices::-' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2365: 'math::matrices::operator -' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2460: 'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2433: 'math::matrices::+' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2365: 'math::matrices::operator +' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2460: 'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2433: 'math::matrices::-' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2365: 'math::matrices::operator -' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2460: 'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2433: 'math::matrices::+' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2365: 'math::matrices::operator +' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2460: 'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2433: 'math::matrices::-' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2365: 'math::matrices::operator -' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2143: syntax error : missing ';' before '<' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2460: 'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2433: 'math::matrices::+' : 'friend' not permitted on data declarations E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2365: 'math::matrices::operator +' : redefinition; previous definition was 'function' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2238: unexpected token(s) preceding ';' E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : fatal error C1003: error count exceeds 100; stopping compilation

出错 mcg_build (line 102) eval(['mex ' fullfile(mcg_root_dir, 'src_windows', 'bsr', 'mex_contour_sides.cpp') ' -outdir ' fullfile(mcg_root_dir, 'lib'),...

WeiJiaUSTC commented 6 years ago

Have you solved this problem? I met with the same problem...

victordefoe commented 6 years ago

Same error for me