./generate_protocol_buffer_files.sh
protoc --version
vi libprotobuf.conf
/usr/local/lib/protobuf2.5
%!sudo tee %> /dev/null
vi ld.so.conf
/usr/local/lib/opencv2.4.8
%!sudo tee %> /dev/null
sudo ldconfig
/usr/local/lib/protobuf3.0
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo .
vim /etc/profile
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PATH=$PATH:/usr/local/cuda-7.5/bin
source /etc/profile
gedti /usr/local/lib/pkgconfig/opencv.pc
make -j10
sudo apt-get install libopencv-dev
cat /usr/lib/x86_64-linux-gnu/pkgconfig/opencv.pc
gedit /etc/ld.so.conf
/usr/local/lib/opencv2.4.8sudo ldconfig或sudo /sbin/ldconfig
sudo gedit /etc/bash.bashrc
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
sudo mv opencv.pc opencv3.1.0.pc
可参考: http://www.cnblogs.com/suyang/archive/2008/05/18/1201990.html#!/bin/bash
#comments
echo "......................oldtlist..................."
ls
if [ -e $'CMakeCache.txt' ]
then
rm CMakeCache.txt
fi
if [ -e $'CMakeFiles' ]
then
rm CMakeFiles -r
fi
if [ -e $'Makefile' ]
then
rm Makefile
fi
if [ -e $'cmake_install.cmake' ]
then
rm cmake_install.cmake
fi
if [ -e $'make.log' ]
then
rm make.log
fi
echo "......................currentlist..................."
ls
echo "......................begin cmake..................."
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo .
echo "......................after cmake..................."
ls
make -j10 2>&1|tee make.log
./generate_protocol_buffer_files.sh
./cmake.sh
注意:在CMakeLists.txt中添加protuf库#!/bin/bash
#comments
echo "......................oldtlist..................."
ls
if [ -e $'CMakeCache.txt' ]
then
rm CMakeCache.txt
fi
if [ -e $'CMakeFiles' ]
then
rm CMakeFiles -r
fi
if [ -e $'Makefile' ]
then
rm Makefile
fi
if [ -e $'cmake_install.cmake' ]
then
rm cmake_install.cmake
fi
if [ -e $'make.log' ]
then
rm make.log
fi
echo "......................currentlist..................."
ls
echo "......................begin cmake..................."
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo .
echo "......................after cmake..................."
ls
echo "......................make..................."
make -j10 2>&1|tee make.logecho "......................stixel_world..................."
OMP_NUM_THREADS=10 OMP_THREAD_LIMIT=10 OMP_DYNAMIC=FALSE
./stixel_world -c fast_uv.config.ini --gui.disable false./stixel_world -c fast_uv.config.ini --gui.disable false
pkg_check_modules(protobuf REQUIRED protobuf)
link_directories(
${libpng_LIBRARY_DIRS}
${opencv_LIBRARY_DIRS}
${Boost_LIBRARY_DIRS}
${protobuf_LIBRARY_DIRS}
${local_LIBRARY_DIRS}
)include_directories(
${doppia_root}/libs
${doppia_root}/src
${libpng_INCLUDE_DIRS}
${opencv_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${protobuf_INCLUDE_DIRS}
${local_INCLUDE_DIRS}
)