主题 : ubuntu下XDNW问题 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 15047
精华: 0
发帖: 67
金钱: 335 两
威望: 67 点
贡献值: 0 点
综合积分: 134 分
注册时间: 2010-02-27
最后登录: 2017-09-13
楼主  发表于: 2011-05-26 01:05

 ubuntu下XDNW问题

我在ubuntu下安装XDNW:qmake正常,make的时候出现以下信息
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.5.3/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.5.3/include/QtCore -I/usr/local/Trolltech/Qt-4.5.3/include/QtGui -I/usr/local/Trolltech/Qt-4.5.3/include/QtDBus -I/usr/local/Trolltech/Qt-4.5.3/include -I. -I. -I. -o dnw.o dnw.cpp
In file included from dnw.cpp:10:0:
dnw.h:13:34: fatal error: QtDBus/QDBusConnection: 没有那个文件或目录
compilation terminated.
make: *** [dnw.o] 错误 1

我已经安装了QtDBus问一下各位应该怎么解决这个问题?我的系统是UBUNTU 11.04
级别: 侠客
UID: 15047
精华: 0
发帖: 67
金钱: 335 两
威望: 67 点
贡献值: 0 点
综合积分: 134 分
注册时间: 2010-02-27
最后登录: 2017-09-13
1楼  发表于: 2011-05-26 01:29
我刚把头文件拷贝到/usr/include下面 make的时候出现:我不知道应该怎么办了 请教高手帮忙
g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.5.3/lib -o xdnw main.o widget.o dnw.o moc_widget.o moc_dnw.o    -L/usr/local/Trolltech/Qt-4.5.3/lib -lusb -lQtDBus -lQtGui -L/usr/local/Trolltech/Qt-4.5.3/lib -L/usr/X11R6/lib -lpng -lfreetype -lSM -lICE -lXrender -L/usr/lib/i386-linux-gnu -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lpthread
/usr/lib/libQtDBus.so: undefined reference to `QHashData::detach_helper2(void (*)(QHashData::Node*, void*), void (*)(QHashData::Node*), int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QHashData::allocateNode(int)'
/usr/lib/libQtDBus.so: undefined reference to `QListData::detach(int)'
/usr/lib/libQtDBus.so: undefined reference to `QMapData::createData(int)'
/usr/lib/libQtDBus.so: undefined reference to `QVectorData::free(QVectorData*, int)'
/usr/lib/libQtDBus.so: undefined reference to `QString::QString(int, Qt::Initialization)'
/usr/lib/libQtDBus.so: undefined reference to `qBadAlloc()'
/usr/lib/libQtDBus.so: undefined reference to `QVariant::QVariant(int, void const*, unsigned int)'
/usr/lib/libQtDBus.so: undefined reference to `QMapData::node_create(QMapData::Node**, int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QObjectPrivate::checkWindowRole()'
/usr/lib/libQtDBus.so: undefined reference to `QHashData::free_helper(void (*)(QHashData::Node*))'
/usr/lib/libQtDBus.so: undefined reference to `QVectorData::allocate(int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QMetaType::registerTypedef(char const*, int)'
/usr/lib/libQtDBus.so: undefined reference to `QListData::detach_grow(int*, int)'
collect2: ld returned 1 exit status
make: *** [xdnw] 错误 1
root@hbhe-R25S:/home/hbhe/xdnw# make
g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.5.3/lib -o xdnw main.o widget.o dnw.o moc_widget.o moc_dnw.o    -L/usr/local/Trolltech/Qt-4.5.3/lib -lusb -lQtDBus -lQtGui -L/usr/local/Trolltech/Qt-4.5.3/lib -L/usr/X11R6/lib -lpng -lfreetype -lSM -lICE -lXrender -L/usr/lib/i386-linux-gnu -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lpthread
/usr/lib/libQtDBus.so: undefined reference to `QHashData::detach_helper2(void (*)(QHashData::Node*, void*), void (*)(QHashData::Node*), int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QHashData::allocateNode(int)'
/usr/lib/libQtDBus.so: undefined reference to `QListData::detach(int)'
/usr/lib/libQtDBus.so: undefined reference to `QMapData::createData(int)'
/usr/lib/libQtDBus.so: undefined reference to `QVectorData::free(QVectorData*, int)'
/usr/lib/libQtDBus.so: undefined reference to `QString::QString(int, Qt::Initialization)'
/usr/lib/libQtDBus.so: undefined reference to `qBadAlloc()'
/usr/lib/libQtDBus.so: undefined reference to `QVariant::QVariant(int, void const*, unsigned int)'
/usr/lib/libQtDBus.so: undefined reference to `QMapData::node_create(QMapData::Node**, int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QObjectPrivate::checkWindowRole()'
/usr/lib/libQtDBus.so: undefined reference to `QHashData::free_helper(void (*)(QHashData::Node*))'
/usr/lib/libQtDBus.so: undefined reference to `QVectorData::allocate(int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QMetaType::registerTypedef(char const*, int)'
/usr/lib/libQtDBus.so: undefined reference to `QListData::detach_grow(int*, int)'
collect2: ld returned 1 exit status
make: *** [xdnw] 错误 1
root@hbhe-R25S:/home/hbhe/xdnw# make
g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.5.3/lib -o xdnw main.o widget.o dnw.o moc_widget.o moc_dnw.o    -L/usr/local/Trolltech/Qt-4.5.3/lib -lusb -lQtDBus -lQtGui -L/usr/local/Trolltech/Qt-4.5.3/lib -L/usr/X11R6/lib -lpng -lfreetype -lSM -lICE -lXrender -L/usr/lib/i386-linux-gnu -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lpthread
/usr/lib/libQtDBus.so: undefined reference to `QHashData::detach_helper2(void (*)(QHashData::Node*, void*), void (*)(QHashData::Node*), int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QHashData::allocateNode(int)'
/usr/lib/libQtDBus.so: undefined reference to `QListData::detach(int)'
/usr/lib/libQtDBus.so: undefined reference to `QMapData::createData(int)'
/usr/lib/libQtDBus.so: undefined reference to `QVectorData::free(QVectorData*, int)'
/usr/lib/libQtDBus.so: undefined reference to `QString::QString(int, Qt::Initialization)'
/usr/lib/libQtDBus.so: undefined reference to `qBadAlloc()'
/usr/lib/libQtDBus.so: undefined reference to `QVariant::QVariant(int, void const*, unsigned int)'
/usr/lib/libQtDBus.so: undefined reference to `QMapData::node_create(QMapData::Node**, int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QObjectPrivate::checkWindowRole()'
/usr/lib/libQtDBus.so: undefined reference to `QHashData::free_helper(void (*)(QHashData::Node*))'
/usr/lib/libQtDBus.so: undefined reference to `QVectorData::allocate(int, int)'
/usr/lib/libQtDBus.so: undefined reference to `QMetaType::registerTypedef(char const*, int)'
/usr/lib/libQtDBus.so: undefined reference to `QListData::detach_grow(int*, int)'
collect2: ld returned 1 exit status
级别: 新手上路
UID: 48179
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2011-05-28
最后登录: 2017-09-13
2楼  发表于: 2011-05-30 21:59
也遇到这样的问题 ??
怎么解决的你,请问呢 ??
级别: 新手上路
UID: 22319
精华: 0
发帖: 40
金钱: 200 两
威望: 40 点
贡献值: 0 点
综合积分: 80 分
注册时间: 2010-05-30
最后登录: 2012-02-29
3楼  发表于: 2011-10-05 10:37
同求!!