QT问题求助

程叙远 2013-02-19 09:37:45
在用QT Creator的时候,有没有人遇到这个问题:Unknown option -r ;qmake exited with code 154?
...全文
139 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
__阿飞__ 2013-02-22
  • 打赏
  • 举报
回复
难道是你的.pro文件里面某些路径不对?你检查下pro文件里面的路径有没有问题呢.
debug:MOC_DIR=.moc/debug
debug:OBJECTS_DIR=.obj/debug
release:MOC_DIR=.moc/release
release:OBJECTS_DIR=.obj/release
这些个是啥意思?本人用的是Qt Creator开发的,没用过上面这些东西,.moc/debug这个指什么呢?
引用 5 楼 whysnlc 的回复:
引用 4 楼 allencui0313 的回复:compile output错误时啥?***Unknown option -r 11:10:15: The process "/home/markton/Bernese/qt/qmake/qmake" exited with code 154. Error while building project menu (tar……
程叙远 2013-02-21
  • 打赏
  • 举报
回复
引用 4 楼 allencui0313 的回复:
compile output错误时啥?
***Unknown option -r 11:10:15: The process "/home/markton/Bernese/qt/qmake/qmake" exited with code 154. Error while building project menu (target: Desktop) When executing build step 'qmake' 望版主搭救!
  • 打赏
  • 举报
回复
compile output错误时啥?
程叙远 2013-02-21
  • 打赏
  • 举报
回复
引用 1 楼 heksn 的回复:
你的.pro中有链接库的设置吗
关键一个问题,我用在命令行里面直接qmake可以成功,在QT Creator里Bulid就这样了
程叙远 2013-02-21
  • 打赏
  • 举报
回复
引用 1 楼 heksn 的回复:
你的.pro中有链接库的设置吗
TEMPLATE = app LANGUAGE = C++ CONFIG += qt warn_on release stl unix:LIBS += -lICE -lSM -ldl win32:DEFINES += WIN32 HEADERS += menu.h \ canvas.h \ datedial.h \ field.h \ initmenu.h \ inpfile.h \ juldat.h \ keyword.h \ mainwin.h \ menutils.h \ panel.h \ seldial.h \ selwin.h \ uniline.h \ textwin.h \ updpan.h \ runpgm.h \ errormsg.h \ mycheck.h \ myfildlg.h \ server.h \ script.h \ cpufile.h \ pcffile.h \ bpelog.h \ bpedial.h \ myhtml.h \ session.h \ keydesc.h \ chngen.h \ mylineedit.h \ lockfile.h \ myspinbox.h \ bpe.h \ bpeinp.h \ mycombobox.h \ menstyle.h \ r_file.h \ r_dir.h \ bnp.h SOURCES += menu.cpp \ canvas.cpp \ datedial.cpp \ field.cpp \ initmenu.cpp \ inpfile.cpp \ juldat.cpp \ keyword.cpp \ mainwin.cpp \ menutils.cpp \ panel.cpp \ seldial.cpp \ selwin.cpp \ uniline.cpp \ textwin.cpp \ updpan.cpp \ runpgm.cpp \ errormsg.cpp \ mycheck.cpp \ myfildlg.cpp \ server.cpp \ script.cpp \ cpufile.cpp \ pcffile.cpp \ bpelog.cpp \ bpedial.cpp \ myhtml.cpp \ session.cpp \ keydesc.cpp \ chngen.cpp \ mylineedit.cpp \ lockfile.cpp \ myspinbox.cpp \ mainwin2.cpp \ bpe.cpp \ bpeinp.cpp \ mycombobox.cpp \ menstyle.cpp \ r_file.cpp \ r_dir.cpp \ bnp.cpp #### win32:TEMPLATE = vcapp #### CONFIG += qt warn_on debug stl win32-msvc:RC_FILE = menu.rc debug:MOC_DIR=.moc/debug debug:OBJECTS_DIR=.obj/debug release:MOC_DIR=.moc/release release:OBJECTS_DIR=.obj/release win32::INCLUDEPATH += $(QTDIR)/src/3rdparty/zlib # List of all header and source files # ----------------------------------- # The following 6 lines are necessary if you want to plot residuals etc. # ---------------------------------------------------------------------- #DEFINES += USE_QWT #HEADERS += graphwin.h #SOURCES += graphwin.cpp #INCLUDEPATH += $(QWTDIR)/include #unix:LIBS += -L$(QWTDIR) -lqwt #win32:LIBS += $(QWTDIR)/qwt.lib # Name of the executable file # --------------------------- TARGET = menu
  • 打赏
  • 举报
回复
你的.pro中有链接库的设置吗

16,216

社区成员

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

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