eldar / deepcut-cnn

CNN architecture for articulated human pose estimation
Other
193 stars 67 forks source link

does not compile under ubuntu 14.04 or 16.04 #3

Open TheTesla opened 8 years ago

TheTesla commented 8 years ago

a lot of warnings are thrown:

warning: ‘auto’ changes meaning in C++11

ubuntu 14.04:

/home/willi/deepcut-cnn/src/caffe/pose/segment_parts.cpp:157:20: error: ‘jnt’ was not declared in this scope

ubuntu 16.04:

/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope

ubuntu 16.04 after adding set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES") to CMakeLists.txt:

/home/gdv/deepcut-cnn/src/caffe/layers/pose_data_layer.cpp:298:43: error: ‘joint_stats_file’ was not declared in this scope

there are some other errors, but I think that are the main one

eldar commented 8 years ago

You probably didn't build with C++11 support. Try adding CXXFLAGS += -std=c++11 to your Makefile.config (or do a similar thing in CMakeLists.txt).

TheTesla commented 8 years ago

Thanks, I corrected it.