| |
1 实践问题描述和解决步骤:
1.1 编译QT的时候,需要链接directfb的库,我的directfb的库已经编译了,可还是报错
gmake[3]: Leaving directory `/home/wine/root/target/output/objs/gcc-4.5.2_glibc-linux-debug/comps/generic_apps/qt/qt-everywhere-opensource-src-4.7.2/qmake'
The DirectFB screen driver functionality test failed!
You might need to modify the include and library search paths by editing
QT_CFLAGS_DIRECTFB and QT_LIBS_DIRECTFB in
/home/wine/root/target/output/objs/gcc-4.5.2_glibc-linux-debug/comps/generic_apps/qt/qt-everywhere-opensource-src-4.7.2/mkspecs/qws/linux-arm-g++.
gmake[2]: *** [/home/wine/root/target/output/objs/gcc-4.5.2_glibc-linux-debug/comps/generic_apps/qt/qt-everywhere-opensource-src-4.7.2/Makefile] Error 1
gmake[2]: Leaving directory `/home/wine//root/target/src/sd/apps/huangpu/comps/huangpu_ui'
gmake[1]: *** [qt] Error 2
gmake[1]: Leaving directory `/home/wine/root/target/build/systems/linux/huangpu'
make: *** [application_test] Error 2
1.2 更改configure的参数,增加 -v,
2 一些非常有用的调试技巧:
2.1 -v or -verbose:
qt 的解压包,用qt 4.7.2 为例:qt-everywhere-opensource-src-4.7.2 解压后,里面有configure 文件
这个文件就是用来做qt的配置用的,同时qt 编译前,可以用这个命令来检查各个依赖库的相关性,但是,有时候qt configure报错后,
给我们的信息太少,这时候就要在 configure 的参数后面加
-v 或者写成 -verbose 来看看到底qt 是在配置什么东西的时候报错,从而可以知道我们的详细信息:
类似的错误:但不同的问题:
to be continued
此帖原创:made by . huang.makin@gmail.com