我想构建静态嵌入式qt。所以我执行了这些步骤:
1-在qt-everywhere-opensource-src-4.8.0 / mkspecs / qws / linux-arm-gnueabi -g ++ / qmake.conf文件中,我添加了directfb,如下所示:
QT_CFLAGS_DIRECTFB = -I${DIRECTFB_DIR}/include/directfb -D_REENTRANT
QT_LIBS_DIRECTFB = -L${DIRECTFB_DIR}/lib -ldirect -ldirectfb -lfusion
2- Directfb共享库存在于/ lib / directfb
中的目标rootfs中3-配置并构建qt:
./configure -v -embedded -platform qws/linux-x86_64-g++ -xplatform qws/linux-arm-gnueabi-g++ -plugin-gfx-directfb -qt-libpng -qt-libjpeg -static -opensource -nomake examples -confirm-license -nomake demos -nomake docs -nomake translations -prefix output -no-fast -no-qt3support -no-libmng -no-phonon -no-phonon-backend -no-declarative-debug -no-ssse3 -no-sse4.1 -no-nis -no-cups -no-gtkstyle -no-glib -no-nas-sound -no-opengl -no-openvg -no-sse4.2 -no-avx -no-neon
make
make install
结果在输出目录中生成。
4-我在target / lib目录中复制了output / lib / fonts
5-构建我的qt应用程序
6-在目标中运行应用程序:
export QT_QWS_FONTDIR=/lib/
./my_qt_application -qws -display directfb
然后我收到了这个错误:
directfb: driver not found
你能帮帮我吗?