按照网上的攻略编译QT5.6

https://www.lijingquan.net/2016/07/08/build-kernel-busybox-qt5-6-tslib-imx28/

出现问题,找不到fopen()等,在./configure时,加入-ldl选项,动态链接公共库。

我的选项是

./configure -prefix /opt/qt5.6-arm -opensource -confirm-license -release -shared -xplatform linux-arm-gnueabi-g++ -optimized-qmake -pch -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -tslib -no-opengl -no-sse2 -no-openssl -no-cups -no-glib -no-dbus -no-xcb -no-eglfs -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -no-iconv -make libs -make examples -nomake tools -nomake tests -skip qt3d -skip qtcanvas3d -skip qtdoc -skip qtwayland -I/home/mm/tools/mytslib/include -L/home/mm/tools/mytslib/lib -L/opt/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/arm-fsl-linux-gnueabi -ldl

 

编译注意事项:

1、编译器一定要指定好路径

2、平台配置文件一定要正确指定好编译器和库路径

交叉编译qt5.6

3../configure 选项指定关键选项

相关文章:

  • 2022-12-23
  • 2021-08-02
  • 2021-05-06
  • 2021-08-04
  • 2021-09-02
  • 2021-11-30
  • 2022-01-25
猜你喜欢
  • 2022-01-13
相关资源
相似解决方案