构建qtsampleplayer时出错

时间:2015-07-21 08:27:51

标签: qt mpeg-dash

我在构建qtsampleplayer时遇到以下错误:

 ubuntu@ubuntu:~/Libdash/libdash/libdash/qtsampleplayer/build$ make
 [  3%] Automoc for target qtsampleplayer
 [  3%] Built target qtsampleplayer_automoc
 Linking CXX executable qtsampleplayer
 i386-linux-gnu/libQt5Gui.so.5.2.1:undefined reference to symbol 'inflateInit2_'
 /libz.so.1:error adding symbols:DSO missing from command line
 collect2: error: ld returned 1 exit status
 make[2]: *** [qtsampleplayer] Error 1
 make[1]: *** [CMakeFiles/qtsampleplayer.dir/all] Error 2
 make: *** [all] Error 2

尝试了几个选项,比如在命令行中提供libz.so的路径但没有帮助

此致 Mayank

1 个答案:

答案 0 :(得分:0)

collect2: error: ld returned 1 exit status这基本上意味着之前出现了问题。

/libz.so.1:error adding symbols:DSO missing from command line这意味着他没有找到DSO,所以你没有正确地包含libz.so但它说:i386-linux-gnu/libQt5Gui.so.5.2.1:undefined reference to symbol 'inflateInit2_'所以你的问题不在libz.so中,它可以在libQt5Gui。

您的项目正在寻找两个库吗?似乎程序没有找到它们