在qt编译程序时调用自己编译的动态连接库时发生错误 undefined reference

zhangyushi33 2016-03-09 09:07:40
19:56:09: 为项目3dpartdetect_RF执行构建步骤 ...
19:56:10: 配置没有改变, 跳过 qmake 步骤.
19:56:11: 正在启动 "/usr/bin/make" -w
{1"?} {2?}
make: Entering directory `/home/aaa/CLJC/Zia_CVPR13_Code/code/src/apps/3dpartdetect_RF'
g++ -Wl,-O1 -o ../../../bin/Release/x86_64/3dpartdetect_RF Release/obj_x86_64/main.o -L../../../lib/Release//x86_64 -L/usr/X11R6/lib -L/usr/lib/x86_64-linux-gnu -L/home/stark/lib/boost/lib/ -L/usr/local/lib/ -L/home/stark/lib/matlab-2008b-glnxa64-nozlib/ -L/home/stark/lib/protobuf_64bit/lib/ -L/home/zeeshan/usr/localz/lib/ -L/BS/starkprojekt/work/zeeshan-michael/TUDVision/branches/zeeshan/cvpr_codeshare/lib/Release/x86_64/ -lmx -lmat -lconfig++ -lxml2 -lMatlabIO_MST -lBoostMath_MST -lFilesystemAux_MST -lPartDetect_RF -lPartApp_MST -lKMA2_MST -lAnnotation_MST -lAdaBoost_MST -lrandomForest -lboost_program_options -lprotobuf -L../../../lib/Release//x86_64 -lpthread -lGL -lQtXml -lQtOpenGL -lQtGui -lQtCore
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `mxDestroyArray'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `matPutVariable'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `mxCreateNumericArray'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `filesys::create_dir(QString)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `matGetNextVariable'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `matlab_io::mat_close(MATFile_tag*)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `matlab_io::mat_save_double_matrix(QString, QString, boost::numeric::ublas::matrix<double, boost::numeric::ublas::basic_row_major<unsigned long, long>, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > > const&)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `matlab_io::mat_save_double(MATFile_tag*, QString, double)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `matlab_io::mat_save_double(QString, QString, double)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `filesys::check_file(QString)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `mxGetDimensions'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `filesys::check_dir(QString)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `mxGetNumberOfDimensions'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `matlab_io::mat_open(QString, char const*)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `filesys::split_filename_ext(QString, QString&, QString&, QString&)'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `mxGetPr'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `mxCreateCellArray'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `mxSetCell'
../../../lib/Release//x86_64/libPartDetect_RF.so: undefined reference to `mxCalcSingleSubscript'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `mxIsSingle'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `mxIsCell'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `filesys::split_filename(QString, QString&, QString&)'
../../../lib/Release//x86_64/libPartApp_MST.so: undefined reference to `mxGetCell'
collect2: ld returned 1 exit status
make: Leaving directory `/home/aaa/CLJC/Zia_CVPR13_Code/code/src/apps/3dpartdetect_RF'
make: *** [../../../bin/Release/x86_64/3dpartdetect_RF] Error 1
19:56:17: 进程"/usr/bin/make"退出,退出代码 2 。
构建项目3dpartdetect_RF 时发生错误 (目标: 桌面)
当执行构建步骤 'Make'时



这是由于由于编译动态连接库的时候 没有连接到显示错误的库文件吗??应该怎样解决呢?拜托各位前辈指点指点
...全文
693 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
奈奈先生嗷 2021-06-25
  • 打赏
  • 举报
回复

解决了吗

pencilpen 2017-09-11
  • 打赏
  • 举报
回复
楼主,解决了吗?求教
foruok 2016-03-10
  • 打赏
  • 举报
回复
libPartDetect_RF.so这个库还依赖其他的库吧,找找看,也加进去。可以使用objdump或其它工具看看。

16,175

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧