天嵌 ARM开发社区

 找回密码
 注册
查看: 2227|回复: 1

qt hello程序 问题

[复制链接]
whesear 发表于 2010-2-4 19:44:58 | 显示全部楼层 |阅读模式
我用新的教程做实验可是和旧的教程出现的问题一样
Makefile:125: warning: overriding commands for target `moc_first.cpp'
Makefile:122: warning: ignoring old commands for target `moc_first.cpp'
g++  -o /image/opt/Qtopia/bin/first first.o main.o first.o moc_first.o moc_first.o  -L/lib -L/usr/lib/qt-3.1/lib -lqpe -lqtopia -lqte
/usr/bin/ld: cannot open output file /image/opt/Qtopia/bin/first: 没有那个文件或目录
collect2: ld returned 1 exit status
make: *** [/image/opt/Qtopia/bin/first] Error 1
都是这个问题。。。请大家帮忙解决一下
亚瑟王 发表于 2010-2-6 00:41:46 | 显示全部楼层
-L/usr/lib/qt-3.1/lib 你需要修改Makefile文件,将调用系统中的qt库的选项去除掉。因为编译first时不需要使用系统自带的qt库。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-10-21 06:32 , Processed in 2.054721 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表