使用cmake和opencv未定义对符号'gzclose'的引用(Undefined reference to symbol 'gzclose' with cmake and opencv)
我尝试构建项目doppia ,但发生链接错误。 我想这是一个链接器错误,但我花了很多时间,并没有找到一个工作的答案。
当我以前尝试时,没有错误。 但是我有关于CUDA的其他错误,所以我重新安装了opencv。 之后,发生此链接错误。
所以,我认为这是路径错误等opencv相关的问题。
命令:
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo . && make
路径.bashrc
LD_LIBRARY_PATH=/home/username/Documents/Python/imra/code/opencv-2.4.11/release/lib:/home/username/Documents/Python/imra/code/opencv-2.4.11/release/3rdparty/lib/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
PKG_CONFIG=$PKG_CONFIG_PATH:/home/matterd/Documents/Python/imra/code/opencv-2.4.11/release/unix-install/
export PKG_CONFIG_PATH
产量
/ usr / bin / ld:/home/matterd/Documents/Python/imra/code/opencv-2.4.11/release/installed/lib/libopencv_core.a(persistenc