[移植"myslam"到zynq上的arm手记] 2 - 移植opencv库
1. 把之前撸的toolchain.cmake撸过去,之后cmake
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DCMAKE_INSTALL_PREFIX=/home/albireo/lib_arm/opencv -DWITH_VTK=ON ..
2. make 果然报错啊
In file included from /home/albireo/lib/ARM/opencv-3.4.1/3rdparty/libpng/pngpriv.h:904:0, from /home/albireo/lib/ARM/opencv-3.4.1/3rdparty/libpng/pngread.c:17: /home/albireo/lib/ARM/opencv-3.4.1/3rdparty/libpng/pngstruct.h:30:18: fatal error: zlib.h: No such file or directory #include "zlib.h" ^ compilation terminated. 3rdparty/libpng/CMakeFiles/libpng.dir/build.make:62: recipe for target '3rdparty/libpng/CMakeFiles/libpng.dir/pngread.c.o' failed
3. 修改成相对路径,接着make(之后会报一万个同样的错误,相同方法
4. make install