我的配置选项为:
./configure -v -embedded arm -xplatform qws/linux-arm-g++ -depths 8,16,24 -exceptions -dbus -I/opt/uclibc-toolchain/gcc-4.4.3-eabi/toolchain-armv5t/usr/include/dbus-1.0 -qt-mouse-tslib -I/opt/uclibc-toolchain/tslib-4.4.3/include -L/opt/uclibc-toolchain/tslib-4.4.3/lib
在配置的时候,会出现如下错误:
D-Bus auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/uclibc-toolchain/gcc-4.4.3-eabi/toolchain-armv5t/usr/include/dbus-1.0 -I/opt/uclibc-toolchain/tslib-4.4.3/include -o dbus.o dbus.cpp
arm-linux-g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib -o dbus dbus.o -L/opt/uclibc-toolchain/gcc-4.4.3-eabi/toolchain-armv5t/usr/lib -L/opt/uclibc-toolchain/tslib-4.4.3/lib
dbus.o: In function `main':
dbus.cpp:(.text+0x4): undefined reference to `dbus_shutdown'
collect2: ld returned 1 exit status
make: *** [dbus] Error 1
D-Bus disabled.
The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found.
在我的交叉编译工具链中是有dbus库存在的,且dbus版本为1.2.4,高些的版本应该没问题的吧;
不知道有没有朋友遇到过这个问题,谢谢赐教!