标题:64位linux下Qt关于64位和32位库的问题 小弟新手,help
只看楼主
Luderator
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2016-10-24
 问题点数:0 回复次数:1 
64位linux下Qt关于64位和32位库的问题 小弟新手,help
首先说下系统环境,是64位ubuntu12.04,装的是qt-everywhere4.8.1,然后必须引用外部的32位的库,没有源代码所以没法编译成64位
 直接引用就出一大堆这个错误:
 19:09:17: Running steps for project GenStl_C...
 19:09:17: Configuration unchanged, skipping qmake step.
 19:09:17: Starting: "/usr/bin/make" -w
 make: Entering directory `/home/killer/Desktop/GenStl_C_FactoryMode_git'
 g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.1/lib -o Digisizer_QT main.o mygif.o MyLabel.o moc_mygif.o moc_MyLabel.o qrc_DigiSizerPic.o    -L/usr/local/Trolltech/Qt-4.8.1/lib -L/usr/lib64/ -lGenStl_C -lMyStich -L/usr/local/lib -lopencv_core -lopencv_highgui -lopencv_imgproc -lQtGui -L/usr/local/Trolltech/Qt-4.8.1/lib -L/usr/X11R6/lib64 -lQtNetwork -lQtCore -lpthread
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libGenStl_C.so when searching for -lGenStl_C
 /usr/bin/ld: skipping incompatible /usr/lib/../lib/libGenStl_C.so when searching for -lGenStl_C
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libGenStl_C.so when searching for -lGenStl_C
 /usr/bin/ld: skipping incompatible /usr/lib/libGenStl_C.so when searching for -lGenStl_C
 /usr/bin/ld: cannot find -lGenStl_C
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libMyStich.so when searching for -lMyStich
 /usr/bin/ld: skipping incompatible /usr/lib/../lib/libMyStich.so when searching for -lMyStich
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libMyStich.so when searching for -lMyStich
 /usr/bin/ld: skipping incompatible /usr/lib/libMyStich.so when searching for -lMyStich
 /usr/bin/ld: cannot find -lMyStich
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libopencv_core.so when searching for -lopencv_core
 /usr/bin/ld: skipping incompatible /usr/lib/../lib/libopencv_core.so when searching for -lopencv_core
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libopencv_core.so when searching for -lopencv_core
 /usr/bin/ld: skipping incompatible /usr/lib/libopencv_core.so when searching for -lopencv_core
 /usr/bin/ld: cannot find -lopencv_core
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libopencv_highgui.so when searching for -lopencv_highgui
 /usr/bin/ld: skipping incompatible /usr/lib/../lib/libopencv_highgui.so when searching for -lopencv_highgui
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libopencv_highgui.so when searching for -lopencv_highgui
 /usr/bin/ld: skipping incompatible /usr/lib/libopencv_highgui.so when searching for -lopencv_highgui
 /usr/bin/ld: cannot find -lopencv_highgui
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libopencv_imgproc.so when searching for -lopencv_imgproc
 /usr/bin/ld: skipping incompatible /usr/lib/../lib/libopencv_imgproc.so when searching for -lopencv_imgproc
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libopencv_imgproc.so when searching for -lopencv_imgproc
 /usr/bin/ld: skipping incompatible /usr/lib/libopencv_imgproc.so when searching for -lopencv_imgproc
 /usr/bin/ld: cannot find -lopencv_imgproc
 collect2: ld returned 1 exit status
 make: Leaving directory `/home/killer/Desktop/GenStl_C_FactoryMode_git'
 make: *** [Digisizer_QT] Error 1
 19:09:17: The process "/usr/bin/make" exited with code 2.
 Error while building/deploying project GenStl_C (target: 桌面)
 When executing step 'Make'
 外部库有问题

 然后我百度了下,在一些参数上加上 -m32 参数就出这个错误:
 /usr/bin/ld: skipping incompatible /usr/local/Trolltech/Qt-4.8.1/lib/libQtGui.so when searching for -lQtGui
 /usr/bin/ld: skipping incompatible /usr/local/Trolltech/Qt-4.8.1/lib/libQtGui.so when searching for -lQtGui
 /usr/bin/ld: cannot find -lQtGui
 /usr/bin/ld: skipping incompatible /usr/local/Trolltech/Qt-4.8.1/lib/libQtNetwork.so when searching for -lQtNetwork
 /usr/bin/ld: skipping incompatible /usr/local/Trolltech/Qt-4.8.1/lib/libQtNetwork.so when searching for -lQtNetwork
 /usr/bin/ld: cannot find -lQtNetwork
 /usr/bin/ld: skipping incompatible /usr/local/Trolltech/Qt-4.8.1/lib/libQtCore.so when searching for -lQtCore
 /usr/bin/ld: skipping incompatible /usr/local/Trolltech/Qt-4.8.1/lib/libQtCore.so when searching for -lQtCore
 /usr/bin/ld: cannot find -lQtCore
 collect2: ld returned 1 exit status
 make: Leaving directory `/home/killer/Desktop/GenStl_C_FactoryMode_git'
 make: *** [Digisizer_QT] Error 1
 18:41:14: The process "/usr/bin/make" exited with code 2.
 Error while building/deploying project GenStl_C (target: 桌面)
 When executing step 'Make'

 qt内部的64位库有问题,怎么解决?
搜索更多相关主题的帖子: 源代码 Desktop Running linux local 
2016-10-24 19:30
Luderator
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2016-10-24
得分:0 
2016-10-24 19:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-470207-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.286353 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved