Chinaunix首页 | 论坛 | 博客
  • 博客访问: 521001
  • 博文数量: 174
  • 博客积分: 4177
  • 博客等级: 上校
  • 技术积分: 1827
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-15 14:12
文章分类

全部博文(174)

文章存档

2018年(1)

2017年(1)

2013年(3)

2012年(9)

2010年(12)

2009年(5)

2008年(106)

2007年(37)

我的朋友

分类: C/C++

2008-04-14 22:29:20

/root/x86qt/qt-2.3.7/bin/uic mainwindow.ui -o ./mainwindow.h
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/x86qt/qt-2.3.7/include -o tmp/main.o main.cpp
/root/x86qt/qt-2.3.7/bin/uic mainwindow.ui -i mainwindow.h -o mainwindow.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/x86qt/qt-2.3.7/include -o tmp/mainwindow.o mainwindow.cpp
/root/x86qt/qt-2.3.7/bin/moc mainwindow.h -o tmp/moc_mainwindow.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/x86qt/qt-2.3.7/include -o tmp/moc_mainwindow.o tmp/moc_mainwindow.cpp
gcc  -o bluetooth tmp/main.o tmp/mainwindow.o tmp/moc_mainwindow.o  -L/root/x86qt/qt-2.3.7/lib -lqte
/root/x86qt/qt-2.3.7/lib/libqte.so: undefined reference to `QWizard::staticMetaObject()'
collect2: ld returned 1 exit status
make: *** [bluetooth] Error 1

下面是我的一些环境变量设置

QTDIR=/root/x86qt/qt-2.3.7
QTEDIR=/root/x86qt/qt-2.3.7
TMAKEDIR=/root/tmake
TMAKEDIR=$TMAKEDIR/lib/qws/linux-generic-g++
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

我按照上的说法又编译了一遍,还是出现相同的错误
阅读(785) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~