Project update‎ > ‎

2012/11/28-David-Pedestrian detection at 100 frames per second的source code編譯

posted Nov 27, 2012, 7:22 AM by 梁仲偉
2012/11/26~27

安裝CUDA
 
刪除就有cuda
sudo apt-get --purge remove nvidia-*
裝所需套件
sudo apt-get install build-essential libc6-dev pkg-config xserver-xorg-dev  gcc gcc-4.4
ctrl+alt+f1進入文字終端機
中斷x window
sudo /etc/init.d/gdm stop
安裝驅動
sudo ./NVIDIA-Linux-x86_64-310.19.run
裝完回x window
sudo /etc/init.d/gdm start
測試是否成功
glxinfo | grep "OpenGL version string:
lspci | grep VGA
裝cuda toolkit
chmod +x cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
sudo ./cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
sudo gedit ~/.bashrc
 export PATH=/usr/local/cuda/bin:$PATH
 export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib:$LD_LIBRARY_PATH
source ~/.bashrc
裝cuda sdk
chmod +x gpucomputingsdk_4.2.9_linux.run
./gpucomputingsdk_4.2.9_linux.run
裝編譯套件
sudo apt-get install build-essential libx11-dev libglu1-mesa-dev freeglut3-dev libxi-dev libxmu-dev
sudo apt-get install gcc-4.4 g++-4.4
進行編譯
cd ~/NVIDIA_GPU_Computing_SDK/C
make
安裝完成
 
 
安裝Opencv 2.4.0
 
 
sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-dev cmake libswscale-dev libjasper-dev ffmpeg cmake cmake-qt-gui
 
進入opencv目錄
mkdir opencv-build
cd opencv-build
cmake ../
make -j4
sudo make install
sudo gedit ~/.bashrc
 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
source ~/.bashrc
進入opencv中的sample目錄
cd c
chmod +x ./build_all.sh
./build_all.sh
./facedetect lena.jpg
opencv安裝完成
 
安裝 google protocol buffer
 

進入protobuf目錄
 ./configure --prefix=$INSTALL_DIR
 make
 make check
 sudo make install
安裝完成
 
 
安裝SDL
 
進入SDL目錄
./configure
make
sudo make install
安裝完成
 
安裝Boost
 
進入boost目錄
sudo apt-get install mpi-default-dev libicu-dev python-dev libbz2-dev
./bootstrap.sh
./b2
./b2 install
安裝完成
 
 
進行編譯
 
cd ~/doppia/src/applications/ground_estimation
cmake ./
make
出現下列錯誤
Linking CXX executable ground_estimation
/usr/bin/ld: cannot find -lboost_program_options-mt
collect2: ld returned 1 exit status
make[2]: *** [ground_estimation] Error 1
make[1]: *** [CMakeFiles/ground_estimation.dir/all] Error 2
make: *** [all] Error 2
 

目前安裝boost是1.49版
而且勢將所有功能全部安裝
所以判斷是版本不同的問題
藉由使用
apt-cache search libboost
找到有libboost-filesystem-dev
因此改由直接以apt-get方式安裝boost

從ubuntu package網站http://packages.ubuntu.com/search?keywords=libboost&searchon=names&suite=all&section=all
找到有libboost-all-dev封包
因此進行安裝
sudo apt-get install libboost-all-dev
 
從安裝過程中發現是安裝boost 1.40版本
安裝重編譯
出現更多錯誤
CMakeFiles/ground_estimation.dir/GroundEstimationGui.cpp.o: In function `global constructors keyed to _ZN6doppia19GroundEstimationGui16get_args_optionsEv':
GroundEstimationGui.cpp:(.text+0x1045): undefined reference to `boost::system::generic_category()'
GroundEstimationGui.cpp:(.text+0x1051): undefined reference to `boost::system::generic_category()'
GroundEstimationGui.cpp:(.text+0x105d): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/GroundEstimationGui.cpp.o: In function `doppia::GroundEstimationGui::get_args_options()':
GroundEstimationGui.cpp:(.text+0x12c7): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/ground_estimation.cpp.o: In function `global constructors keyed to main':
ground_estimation.cpp:(.text+0x23): undefined reference to `boost::system::generic_category()'
ground_estimation.cpp:(.text+0x2f): undefined reference to `boost::system::generic_category()'
ground_estimation.cpp:(.text+0x3b): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/GroundEstimationApplication.cpp.o: In function `global constructors keyed to _ZN6doppia27GroundEstimationApplication21get_application_titleEv':
GroundEstimationApplication.cpp:(.text+0x5): undefined reference to `boost::system::generic_category()'
GroundEstimationApplication.cpp:(.text+0x11): undefined reference to `boost::system::generic_category()'
GroundEstimationApplication.cpp:(.text+0x1d): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/GroundEstimationApplication.cpp.o: In function `doppia::GroundEstimationApplication::get_args_options()':
GroundEstimationApplication.cpp:(.text+0x123): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `global constructors keyed to _ZN6doppia15BaseApplicationC2Ev':
BaseApplication.cpp:(.text+0x35): undefined reference to `boost::system::generic_category()'
BaseApplication.cpp:(.text+0x41): undefined reference to `boost::system::generic_category()'
BaseApplication.cpp:(.text+0x4d): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `doppia::BaseApplication::get_args_options(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
BaseApplication.cpp:(.text+0xf3): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `doppia::BaseApplication::record_program_options() const':
BaseApplication.cpp:(.text+0x6d1): undefined reference to `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `doppia::BaseApplication::create_recording_path() const':
BaseApplication.cpp:(.text+0xbd0): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
BaseApplication.cpp:(.text+0xc3b): undefined reference to `boost::filesystem3::detail::create_directory(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `doppia::BaseApplication::setup_logging(std::basic_ofstream<char, std::char_traits<char> >&, boost::program_options::variables_map const&)':
BaseApplication.cpp:(.text+0x13d6): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `doppia::BaseApplication::parse_arguments(int, char**, boost::program_options::variables_map&)':
BaseApplication.cpp:(.text+0x168e): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
BaseApplication.cpp:(.text+0x1d4b): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `doppia::BaseApplication::main(int, char**)':
BaseApplication.cpp:(.text+0x25c6): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `doppia::BaseApplication::BaseApplication()':
BaseApplication.cpp:(.text+0x2df0): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
BaseApplication.cpp:(.text+0x2e1c): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseApplication.cpp.o: In function `doppia::BaseApplication::BaseApplication()':
BaseApplication.cpp:(.text+0x3af0): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
BaseApplication.cpp:(.text+0x3b1c): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseSdlGui.cpp.o: In function `global constructors keyed to _ZN6doppia10BaseSdlGui16get_args_optionsEv':
BaseSdlGui.cpp:(.text+0x5): undefined reference to `boost::system::generic_category()'
BaseSdlGui.cpp:(.text+0x11): undefined reference to `boost::system::generic_category()'
BaseSdlGui.cpp:(.text+0x1d): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseSdlGui.cpp.o: In function `doppia::BaseSdlGui::get_args_options()':
BaseSdlGui.cpp:(.text+0x224e): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/applications/BaseSdlGui.cpp.o: In function `doppia::BaseSdlGui::save_screenshot()':
BaseSdlGui.cpp:(.text+0x2627): undefined reference to `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/cost_volume/AbstractDisparityCostVolumeEstimator.cpp.o: In function `doppia::AbstractDisparityCostVolumeEstimator::get_args_options()':
AbstractDisparityCostVolumeEstimator.cpp:(.text+0x1c6): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/cost_volume/AbstractDisparityCostVolumeEstimator.cpp.o: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)':
AbstractDisparityCostVolumeEstimator.cpp:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb[std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)]+0x8f): undefined reference to `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
AbstractDisparityCostVolumeEstimator.cpp:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb[std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)]+0x163): undefined reference to `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/cost_volume/DisparityCostVolumeEstimatorFactory.cpp.o: In function `doppia::DisparityCostVolumeEstimatorFactory::get_args_options()':
DisparityCostVolumeEstimatorFactory.cpp:(.text+0x11d): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/cost_volume/DisparityCostVolumeEstimator.cpp.o: In function `doppia::DisparityCostVolumeEstimator::get_args_options()':
DisparityCostVolumeEstimator.cpp:(.text+0x1237): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/cost_volume/FastDisparityCostVolumeEstimator.cpp.o: In function `doppia::FastDisparityCostVolumeEstimator::get_args_options()':
FastDisparityCostVolumeEstimator.cpp:(.text+0x477): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/AbstractStereoMatcher.cpp.o: In function `doppia::AbstractStereoMatcher::get_args_options()':
AbstractStereoMatcher.cpp:(.text+0x8e): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/AbstractStereoBlockMatcher.cpp.o: In function `doppia::AbstractStereoBlockMatcher::get_args_options()':
AbstractStereoBlockMatcher.cpp:(.text+0x73a): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/SimpleBlockMatcher.cpp.o:SimpleBlockMatcher.cpp:(.text+0xcf00): more undefined references to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)' follow
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/ImagesFromDirectory.cpp.o: In function `global constructors keyed to _ZN6doppia10open_imageERKSsRN5boost3gil5imageINS3_5pixelIhNS3_6layoutINS2_3mpl7vector3INS3_5red_tENS3_7green_tENS3_6blue_tEEENS7_7range_cIiLi0ELi3EEEEEEELb0ESaIhEEE':
ImagesFromDirectory.cpp:(.text+0x45): undefined reference to `boost::system::generic_category()'
ImagesFromDirectory.cpp:(.text+0x51): undefined reference to `boost::system::generic_category()'
ImagesFromDirectory.cpp:(.text+0x5d): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/ImagesFromDirectory.cpp.o: In function `doppia::ImagesFromDirectory::ImagesFromDirectory(boost::filesystem3::path const&)':
ImagesFromDirectory.cpp:(.text+0x2bf): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
ImagesFromDirectory.cpp:(.text+0x3b1): undefined reference to `boost::filesystem3::detail::directory_iterator_construct(boost::filesystem3::directory_iterator&, boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/ImagesFromDirectory.cpp.o: In function `doppia::ImagesFromDirectory::ImagesFromDirectory(boost::filesystem3::path const&)':
ImagesFromDirectory.cpp:(.text+0x6cf): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
ImagesFromDirectory.cpp:(.text+0x7c1): undefined reference to `boost::filesystem3::detail::directory_iterator_construct(boost::filesystem3::directory_iterator&, boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/ImagesFromDirectory.cpp.o: In function `doppia::open_image(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::gil::image<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector3<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t>, boost::mpl::range_c<int, 0, 3> > >, false, std::allocator<unsigned char> >&)':
ImagesFromDirectory.cpp:(.text+0x989): undefined reference to `boost::filesystem3::path::extension() const'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/ImagesFromDirectory.cpp.o: In function `doppia::ImagesFromDirectory::next_frame()':
ImagesFromDirectory.cpp:(.text+0x1248): undefined reference to `boost::filesystem3::path::filename() const'
ImagesFromDirectory.cpp:(.text+0x1486): undefined reference to `boost::filesystem3::detail::directory_iterator_increment(boost::filesystem3::directory_iterator&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/ImagesFromDirectory.cpp.o: In function `void boost::checked_delete<boost::filesystem3::detail::dir_itr_imp>(boost::filesystem3::detail::dir_itr_imp*)':
ImagesFromDirectory.cpp:(.text._ZN5boost14checked_deleteINS_11filesystem36detail11dir_itr_impEEEvPT_[void boost::checked_delete<boost::filesystem3::detail::dir_itr_imp>(boost::filesystem3::detail::dir_itr_imp*)]+0x16): undefined reference to `boost::filesystem3::detail::dir_itr_close(void*&, void*&)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/ImagesFromDirectory.cpp.o: In function `boost::detail::sp_counted_impl_p<boost::filesystem3::detail::dir_itr_imp>::dispose()':
ImagesFromDirectory.cpp:(.text._ZN5boost6detail17sp_counted_impl_pINS_11filesystem36detail11dir_itr_impEE7disposeEv[boost::detail::sp_counted_impl_p<boost::filesystem3::detail::dir_itr_imp>::dispose()]+0x17): undefined reference to `boost::filesystem3::detail::dir_itr_close(void*&, void*&)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/VideoFromFiles.cpp.o: In function `doppia::VideoFromFiles::get_args_options()':
VideoFromFiles.cpp:(.text+0x76a): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/VideoFromFiles.cpp.o: In function `doppia::get_number_of_matching_files(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, int)':
VideoFromFiles.cpp:(.text+0xf54): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
VideoFromFiles.cpp:(.text+0xf73): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/VideoFromFiles.cpp.o: In function `doppia::VideoFromFiles::read_frame_from_disk(int, boost::gil::image<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector3<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t>, boost::mpl::range_c<int, 0, 3> > >, false, std::allocator<unsigned char> >&, boost::gil::image<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector3<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t>, boost::mpl::range_c<int, 0, 3> > >, false, std::allocator<unsigned char> >&, boost::gil::image_view<boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector3<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t>, boost::mpl::range_c<int, 0, 3> > > const*> > >&, boost::gil::image_view<boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector3<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t>, boost::mpl::range_c<int, 0, 3> > > const*> > >&)':
VideoFromFiles.cpp:(.text+0x115d): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
VideoFromFiles.cpp:(.text+0x11ea): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
VideoFromFiles.cpp:(.text+0x121d): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
VideoFromFiles.cpp:(.text+0x122f): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
VideoFromFiles.cpp:(.text+0x125a): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
VideoFromFiles.cpp:(.text+0x12e7): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
VideoFromFiles.cpp:(.text+0x17f0): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
VideoFromFiles.cpp:(.text+0x1a65): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/VideoFromFiles.cpp.o: In function `global constructors keyed to _ZN6doppia14VideoFromFiles16get_args_optionsEv':
VideoFromFiles.cpp:(.text+0x355c): undefined reference to `boost::system::generic_category()'
VideoFromFiles.cpp:(.text+0x3568): undefined reference to `boost::system::generic_category()'
VideoFromFiles.cpp:(.text+0x3574): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/AbstractVideoInput.cpp.o: In function `doppia::AbstractVideoInput::get_args_options()':
AbstractVideoInput.cpp:(.text+0x61c): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/VideoInputFactory.cpp.o: In function `doppia::VideoInputFactory::get_args_options()':
VideoInputFactory.cpp:(.text+0x9cd): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/calibration/StereoCameraCalibration.cpp.o: In function `global constructors keyed to _ZN6doppia23StereoCameraCalibrationC2ERKSs':
StereoCameraCalibration.cpp:(.text+0x130): undefined reference to `boost::system::generic_category()'
StereoCameraCalibration.cpp:(.text+0x13c): undefined reference to `boost::system::generic_category()'
StereoCameraCalibration.cpp:(.text+0x148): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/calibration/StereoCameraCalibration.cpp.o: In function `doppia::StereoCameraCalibration::StereoCameraCalibration(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
StereoCameraCalibration.cpp:(.text+0xa21): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/calibration/StereoCameraCalibration.cpp.o: In function `doppia::StereoCameraCalibration::StereoCameraCalibration(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
StereoCameraCalibration.cpp:(.text+0x1061): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/preprocessing/CpuPreprocessor.cpp.o: In function `doppia::CpuPreprocessor::get_args_options()':
CpuPreprocessor.cpp:(.text+0x9ce): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/preprocessing/AbstractPreprocessor.cpp.o: In function `doppia::AbstractPreprocessor::get_args_options()':
AbstractPreprocessor.cpp:(.text+0x127): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/image_processing/IrlsLinesDetector.cpp.o: In function `doppia::IrlsLinesDetector::get_args_options()':
IrlsLinesDetector.cpp:(.text+0x5e20): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/helpers/data/DataSequence.cpp.o: In function `global constructors keyed to DataSequence.cpp':
DataSequence.cpp:(.text+0x5): undefined reference to `boost::system::generic_category()'
DataSequence.cpp:(.text+0x11): undefined reference to `boost::system::generic_category()'
DataSequence.cpp:(.text+0x1d): undefined reference to `boost::system::system_category()'
CMakeFiles/ground_estimation.dir/home/islab/doppia/src/helpers/get_section_options.cpp.o: In function `get_section_options(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::program_options::options_description const&)':
get_section_options.cpp:(.text+0x54): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
collect2: ld returned 1 exit status
make[2]: *** [ground_estimation] Error 1
make[1]: *** [CMakeFiles/ground_estimation.dir/all] Error 2
make: *** [all] Error 2
 
 
測試發現
islab@islab:~/doppia/src/applications/objects_detection$ cmake ./
FATAL_ERROR,Unknown machine, please add your configuration inside biclop/common_settings.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /home/islab/doppia/src/applications/objects_detection
FATAL_ERROR,Unknown machine
 

要自己在biclop/common_settings.cmake設定
同樣在第二步的編譯
islab@islab:~/doppia/src/applications/ground_estimation$ cmake ./
FATAL_ERROR,Unknown machine, please add your configuration inside biclop/common_settings.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /home/islab/doppia/src/applications/ground_estimation
有相同問題
 
 
開啟common_settings.cmake發現46~137行是要針對自己電腦設定
#if(HOSTED_AT_VISICS GREATER -1)
#  message(STATUS "Using ${VISICS_MACHINES} optimisation options")
  # since gcc 4.6 the option -Ofast provides faster than -O3
#  set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
  #set(CMAKE_CXX_FLAGS_RELEASE "-Ofast -DNDEBUG")
  # add local compiled opencv trunk in the pkg-config paths
 # set(PKG_CONFIG_PATH ${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig)
  #set(OPT_CXX_FLAGS "-fopenmp -march=native -mtune=native -ffast-math -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2") # just for testing
 
  #option(USE_GPU "Should the GPU be used ?" ON)
  #option(USE_GPU "Should the GPU be used ?" OFF) # set to false for testing purposes only
  #set(CUDA_BUILD_EMULATION OFF CACHE BOOL "enable emulation mode")
  #set(CUDA_BUILD_CUBIN OFF)
  #set(local_CUDA_CUT_INCLUDE_DIRS "/users/visics/rbenenso/code/references/cuda/cuda_sdk/C/common/inc")
  #set(local_CUDA_CUT_LIBRARY_DIRS "/users/visics/rbenenso/code/references/cuda/cuda_sdk/C/lib")
  #set(local_CUDA_LIB_DIR "/usr/lib64/nvidia")
  #set(local_CUDA_LIB "/usr/lib64/nvidia/libcuda.so")
  #set(cuda_LIBS "cuda")
  #set(cutil_LIB "cutil")
  # if you get error messages in nvcc-generated files,
  # enable the following line for debugging:
  #set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS};--keep")
  #set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} --host-compilation c++ --device-compilation c++)
  #set(CUDA_NVCC_EXECUTABLE  /users/visics/rbenenso/code/references/cuda/gcc-4.4/nvcc-4.4.sh)
  #set(CUDA_SDK_ROOT_DIR  /users/visics/rbenenso/code/references/cuda_sdk_4.0.17/C)
  #set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} --compiler-options -D__USE_XOPEN2K8) # black magic required on Visics machines
  #set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -arch=sm_20) # only matar, jabbah and yildun can run current code
  # faster malloc, and a good profiler via http://google-perftools.googlecode.com
  #set(google_perftools_LIBS tcmalloc profiler)
#  set(google_perftools_LIBS tcmalloc_and_profiler)
#  set(liblinear_INCLUDE_DIRS "/home/islab/doppia/libs/liblinear-1.8")
#  set(liblinear_LIBRARY_DIRS "/home/islab/doppia/libs/liblinear-1.8")
# add_definitions("-Dint_p_NULL=((int*)0)")
#elseif(${HOSTNAME} STREQUAL  "rodrigob-laptop")
#  message(STATUS "Using rodrigob-laptop optimisation options")
#  option(USE_GPU "Should the GPU be used ?" FALSE)
  #set(CUDA_BUILD_EMULATION ON CACHE BOOL "enable emulation mode")
  #set(CUDA_BUILD_CUBIN OFF)
  #set(local_CUDA_CUT_INCLUDE_DIRS "/home/rodrigob/work/code/biclop_references/cuda/cuda_sdk/C/common/inc")
  #set(local_CUDA_CUT_LIBRARY_DIRS "/home/rodrigob/work/code/biclop_references/cuda/cuda_sdk/C/lib")
  #set(cuda_LIBS "")
  #set(cutil_LIB "cutil")
#  set(GCC44_DIRECTORY "/usr/lib/gcc/x86_64-linux-gnu/4.4/")
  #set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} --compiler-bindir ${GCC44_DIRECTORY})
  # faster malloc, and a good profiler via http://google-perftools.googlecode.com
#  set(google_perftools_LIBS tcmalloc profiler)
#  set(EUROPA_SVN "/home/rodrigob/work/code/europa_svn/code")
#  set(liblinear_INCLUDE_DIRS "/home/islab/doppia/libs/liblinear-1.8")
#  set(liblinear_LIBRARY_DIRS "/home/islab/doppia/libs/liblinear-1.8")

#elseif(${HOSTNAME} STREQUAL  "visics-gt680r")
#  message(STATUS "Using visics-gt680r optimisation options")
  #option(USE_GPU "Should the GPU be used ?" TRUE)
  #set(CUDA_BUILD_EMULATION OFF CACHE BOOL "enable emulation mode")
#  set(CUDA_BUILD_CUBIN OFF)
 
  # work around to use gcc-4.4 instead of 4.5
  #set(CUDA_NVCC_EXECUTABLE "/home/rodrigob/code/references/cuda/gcc-4.4/nvcc-4.4.sh")
  #set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -arch=sm_21)
  #set(local_CUDA_CUT_INCLUDE_DIRS "/home/rodrigob/code/references/cuda/cuda_sdk/C/common/inc")
  #set(local_CUDA_CUT_LIBRARY_DIRS "/home/rodrigob/code/references/cuda/cuda_sdk/C/lib")
  #set(local_CUDA_LIB_DIR "/usr/local/cuda/lib64")
  #set(cuda_LIBS "")
  #set(cutil_LIB "cutil")
  # faster malloc, and a good profiler via http://google-perftools.googlecode.com
#  set(google_perftools_LIBS tcmalloc profiler)
#  set(EUROPA_SVN "/home/rodrigob/code/europa_svn/code")
#  set(liblinear_INCLUDE_DIRS "/home/islab/doppia/libs/liblinear-1.8")
#  set(liblinear_LIBRARY_DIRS "/home/islab/doppia/libs/liblinear-1.8")
#else ()
#  message(FATAL_ERROR, "Unknown machine, please add your configuration inside biclop/common_settings.cmake")
 
#endif ()
關於電腦設定網站沒說明
不知從和下手
所以我直接把46~137行全關掉進行編譯

islab@islab:~/doppia/src/applications/ground_estimation$ make
Linking CXX executable ground_estimation
/usr/bin/ld: CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/ground_plane/GroundPlaneEstimator.cpp.o: undefined reference to symbol 'cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&)'
/usr/bin/ld: note: 'cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&)' is defined in DSO /usr/local/lib/libopencv_core.so.2.4 so try adding it to the linker command line
/usr/local/lib/libopencv_core.so.2.4: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [ground_estimation] Error 1
make[1]: *** [CMakeFiles/ground_estimation.dir/all] Error 2
make: *** [all] Error 2
同樣有錯誤
 

編譯object detection目錄
出現錯誤
islab@islab:~/doppia/src/applications/objects_detection$ make
[  0%] Building CXX object CMakeFiles/cpp_stuff_library.dir/ObjectsDetectionApplication.cpp.o
In file included from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:5:0,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractModelWindowToObjectWindowConverter.hpp:5,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractObjectsDetector.hpp:6,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionGui.hpp:5,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionApplication.cpp:7:
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:90:17: error: expected unqualified-id before numeric constant
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:90:17: error: expected ‘)’ before numeric constant
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:116:1: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:124:7: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
In file included from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractModelWindowToObjectWindowConverter.hpp:5:0,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractObjectsDetector.hpp:6,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionGui.hpp:5,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionApplication.cpp:7:
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:32:13: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:25: error: ‘fast_stage_t’ was not declared in this scope
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:37: error: template argument 1 is invalid
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:37: error: template argument 2 is invalid
make[2]: *** [CMakeFiles/cpp_stuff_library.dir/ObjectsDetectionApplication.cpp.o] Error 1
make[1]: *** [CMakeFiles/cpp_stuff_library.dir/all] Error 2
make: *** [all] Error 2
 
由於前面是使用gcc 4.4版
由於無法編過
所以想自己安裝gcc 4.5版
 
安裝GCC 4.5
 
sudo apt-get install build-essential m4
進入gmp目錄
./configure
make
make check
sudo make install
進入mpfr目錄
./configure
make
make check
sudo make install
進入mpc目錄
./configure
make
make check
sudo make install
進入gcc目錄
./configure
make
make check
sudo make install
自己編譯安裝失敗
 
 
改由從ubuntu package安裝
將/etc/apt/sources.list加入
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ precise main
sudo apt-get update
sudo apt-get install gcc-4.5
使用gcc --version檢查版本
還是原來的4.4版
 

 

2012/11/27~28
 
因為自己安裝gcc 4.5失敗
而且不想花太多時間在裝gcc上
所以乾脆直接換成最新的ubuntu 12.04 LTS版
發現此版gcc是4.6.3版
 
opencv、google protocol buffer、SDL和Boost與前面一樣
 
在此我先忽略CUDA而不安裝進行編譯
 
 
opencv要安裝的套件要改成
sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg-dev libtiff4-dev cmake libswscale-dev libjasper-dev ffmpeg cmake cmake-qt-gui
 
 
進入source code編譯
islab@ubuntu:~$ cd doppia/src/applications/ground_estimation/
islab@ubuntu:~$ cd doppia/src/applications/ground_estimation/
islab@ubuntu:~/doppia/src/applications/ground_estimation$ cmake ./
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
FATAL_ERROR,Unknown machine, please add your configuration inside biclop/common_settings.cmake
-- checking for module 'libpng'
--   found libpng, version 1.2.46
-- checking for module 'opencv>=2.3'
--   found opencv, version 2.4.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/islab/doppia/src/applications/ground_estimation
islab@ubuntu:~/doppia/src/applications/ground_estimation$ make -j4
出現錯誤
In file included from /home/islab/doppia/src/video_input/calibration/calibration.pb.cc:4:0:
/home/islab/doppia/src/video_input/calibration/calibration.pb.h:9:42: fatal error: google/protobuf/stubs/common.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/calibration/calibration.pb.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/islab/doppia/src/video_input/calibration/CameraCalibration.cpp:3:0:
/home/islab/doppia/src/video_input/calibration/calibration.pb.h:9:42: fatal error: google/protobuf/stubs/common.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/calibration/StereoCameraCalibration.cpp.o] Error 1
make[2]: *** [CMakeFiles/ground_estimation.dir/home/islab/doppia/src/video_input/calibration/CameraCalibration.cpp.o] Error 1
make[1]: *** [CMakeFiles/ground_estimation.dir/all] Error 2
make: *** [all] Error 2
從訊息中看起來是protobuf有問題,上網找解答
將protobuf-2.4.1中src目錄內的google目錄複製到doppia/src目錄中
 
再次編譯
islab@ubuntu:~/doppia/src/applications/ground_estimation$ make -j4
出現錯誤
 
/usr/bin/ld: CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/ground_plane/GroundPlaneEstimator.cpp.o: undefined reference to symbol 'cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&)'
/usr/bin/ld: note: 'cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&)' is defined in DSO /usr/local/lib/libopencv_core.so.2.4 so try adding it to the linker command line
/usr/local/lib/libopencv_core.so.2.4: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [ground_estimation] Error 1
make[1]: *** [CMakeFiles/ground_estimation.dir/all] Error 2
make: *** [all] Error 2
發現是opencv部分造成的錯誤
從網路上找有Could not read symbols錯誤的相關的問題
可能是因為gcc版本問題
因為ubuntu 12.04是gcc4.6
soruce code網站說要gcc 4.5
 
那開始換gcc版本
sudo apt-get install gcc-4.5
sudo apt-get install g++-4.5
 
換版本
成功將gcc換成4.5版
 
再次編譯
islab@ubuntu:~/doppia/src/applications/ground_estimation$ cmake ./
FATAL_ERROR,Unknown machine, please add your configuration inside biclop/common_settings.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /home/islab/doppia/src/applications/ground_estimation
islab@ubuntu:~/doppia/src/applications/ground_estimation$ make -j4
Linking CXX executable ground_estimation
/usr/bin/ld: CMakeFiles/ground_estimation.dir/home/islab/doppia/src/stereo_matching/ground_plane/GroundPlaneEstimator.cpp.o: undefined reference to symbol 'cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&)'
/usr/bin/ld: note: 'cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&)' is defined in DSO /usr/local/lib/libopencv_core.so.2.4 so try adding it to the linker command line
/usr/local/lib/libopencv_core.so.2.4: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [ground_estimation] Error 1
make[1]: *** [CMakeFiles/ground_estimation.dir/all] Error 2
make: *** [all] Error 2
還是同樣錯誤
因該不是gcc版本問題
所以猜測是opencv編譯安裝上有問題
 
進入objects_detection目錄編譯
同樣顯示一堆錯誤
islab@ubuntu:~/doppia/src/applications/objects_detection$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
FATAL_ERROR,Unknown machine, please add your configuration inside biclop/common_settings.cmake
-- checking for module 'libpng'
--   found libpng, version 1.2.46
-- checking for module 'opencv>=2.3'
--   found opencv, version 2.4.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/islab/doppia/src/applications/objects_detection
islab@ubuntu:~/doppia/src/applications/objects_detection$ make -j4
Scanning dependencies of target cpp_stuff_library
[  0%] [  1%] [  2%] [  3%] Building CXX object CMakeFiles/cpp_stuff_library.dir/ObjectsDetectionGui.cpp.o
Building CXX object CMakeFiles/cpp_stuff_library.dir/draw_the_detections.cpp.o
Building CXX object CMakeFiles/cpp_stuff_library.dir/home/islab/doppia/src/objects_detection/AbstractObjectsDetector.cpp.o
Building CXX object CMakeFiles/cpp_stuff_library.dir/ObjectsDetectionApplication.cpp.o
In file included from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:5:0,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractModelWindowToObjectWindowConverter.hpp:5,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractObjectsDetector.hpp:6,
                 from /home/islab/doppia/src/applications/objects_detection/draw_the_detections.hpp:4,
                 from /home/islab/doppia/src/applications/objects_detection/draw_the_detections.cpp:1:
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:90:17: error: expected unqualified-id before numeric constant
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:90:17: error: expected ‘)’ before numeric constant
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:116:1: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:124:7: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
In file included from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractModelWindowToObjectWindowConverter.hpp:5:0,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractObjectsDetector.hpp:6,
                 from /home/islab/doppia/src/applications/objects_detection/draw_the_detections.hpp:4,
                 from /home/islab/doppia/src/applications/objects_detection/draw_the_detections.cpp:1:
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:32:13: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:25: error: ‘fast_stage_t’ was not declared in this scope
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:37: error: template argument 1 is invalid
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:37: error: template argument 2 is invalid
In file included from /home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:5:0,
                 from /home/islab/doppia/src/objects_detection/AbstractModelWindowToObjectWindowConverter.hpp:5,
                 from /home/islab/doppia/src/objects_detection/AbstractObjectsDetector.hpp:6,
                 from /home/islab/doppia/src/objects_detection/AbstractObjectsDetector.cpp:1:
/home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:90:17: error: expected unqualified-id before numeric constant
/home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:90:17: error: expected ‘)’ before numeric constant
/home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:116:1: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
/home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:124:7: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
In file included from /home/islab/doppia/src/objects_detection/AbstractModelWindowToObjectWindowConverter.hpp:5:0,
                 from /home/islab/doppia/src/objects_detection/AbstractObjectsDetector.hpp:6,
                 from /home/islab/doppia/src/objects_detection/AbstractObjectsDetector.cpp:1:
/home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:32:13: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
/home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:25: error: ‘fast_stage_t’ was not declared in this scope
/home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:37: error: template argument 1 is invalid
/home/islab/doppia/src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:37: error: template argument 2 is invalid
make[2]: *** [CMakeFiles/cpp_stuff_library.dir/draw_the_detections.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/cpp_stuff_library.dir/home/islab/doppia/src/objects_detection/AbstractObjectsDetector.cpp.o] Error 1
In file included from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/integral_channels/GpuIntegralChannelsForPedestrians.hpp:15:0,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/GpuIntegralChannelsDetector.hpp:4,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/GpuVeryFastIntegralChannelsDetector.hpp:4,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionGui.cpp:24:
/home/islab/doppia/src/applications/objects_detection/../../../libs/cudatemplates/include/cudatemplates/devicememorypitched.hpp:25:26: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/cpp_stuff_library.dir/ObjectsDetectionGui.cpp.o] Error 1
In file included from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:5:0,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractModelWindowToObjectWindowConverter.hpp:5,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractObjectsDetector.hpp:6,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionGui.hpp:5,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionApplication.cpp:7:
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:90:17: error: expected unqualified-id before numeric constant
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:90:17: error: expected ‘)’ before numeric constant
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:116:1: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsFastStage.hpp:124:7: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
In file included from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractModelWindowToObjectWindowConverter.hpp:5:0,
                 from /home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/AbstractObjectsDetector.hpp:6,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionGui.hpp:5,
                 from /home/islab/doppia/src/applications/objects_detection/ObjectsDetectionApplication.cpp:7:
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:32:13: error: ‘SoftCascadeOverIntegralChannelsFastStage’ does not name a type
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:25: error: ‘fast_stage_t’ was not declared in this scope
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:37: error: template argument 1 is invalid
/home/islab/doppia/src/applications/objects_detection/../../../src/objects_detection/SoftCascadeOverIntegralChannelsModel.hpp:33:37: error: template argument 2 is invalid
make[2]: *** [CMakeFiles/cpp_stuff_library.dir/ObjectsDetectionApplication.cpp.o] Error 1
make[1]: *** [CMakeFiles/cpp_stuff_library.dir/all] Error 2
make: *** [all] Error 2

 
Comments