a372187663 2015-06-07 05:44 采纳率: 75%
浏览 2733
已结题

ubuntu64位qmake出来的makefile文件出了问题

**/usr/bin/ld: skipping incompatible /opt/qt/5.2.0/gcc/lib/libQt5Widgets.so when searching for -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Widgets

/usr/bin/ld: skipping incompatible /opt/qt/5.2.0/gcc/lib/libQt5Gui.so when searching for -lQt5Gui
/usr/bin/ld: cannot find -lQt5Gui

/usr/bin/ld: skipping incompatible /opt/qt/5.2.0/gcc/lib/libQt5Core.so when searching for -lQt5Core
/usr/bin/ld: cannot find -lQt5Core
**

提示出错目录看了一下 都有这些.so文件 为何会出错?? 听说要加-m32 不知道加在哪里
makefile前几条也贴出来吧。
CC = gcc
CXX = g++
DEFINES = -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIE $(DEFINES)
CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIE $(DEFINES)
INCPATH = -I/opt/qt/5.2.0/gcc/mkspecs/linux-g++ -I. -I/opt/qt/5.2.0/gcc/include -I/opt/qt/5.2.0/gcc/include/QtWidgets -I/opt/qt/5.2.0/gcc/include/QtGui -I/opt/qt/5.2.0/gcc/include/QtCore -I. -I.
19 LINK = g++
20 LFLAGS = -Wl,-O1 -Wl,-rpath,/opt/qt/5.2.0/gcc -Wl,-rpath,/opt/qt/5.2.
0/gcc/lib
21 LIBS = $(SUBLIBS) -L/opt/qt/5.2.0/gcc/lib -lQt5Widgets -lQt5Gui -lQ
t5Core -lGL -lpthread
22 AR = ar cqs
23 RANLIB =
24 QMAKE = /usr/lib/x86_64-linux-gnu/qt4/bin/qmake

请大牛指点迷津

  • 写回答

4条回答

  • tt_li 2015-06-07 06:22
    关注

    配置文件出问题了 建议去修改出错的脚本

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog