Buildroot 添加 Qt 支持
lqonlylove
于 2022-12-03 13:37:34 发布
收藏 12
点赞数3
分类专栏: 根文件系统制作 文章标签: qt buildroot
版权
编辑根文件系统制作专栏收录该内容
2 篇文章0 订阅
订阅专栏
一、制作根文件系统
Buildroot 制作根文件系统_lqonlylove的博客-CSDN博客_buildroot-2022.08/output/build/toolchain-external-
二、添加 Qt 支持
1、解决Qt支持异常问题
1、异常提示
2、解决方法
1、升级工具链
工具链下载官网:Linaro Releases
2、添加支持
Target packages --->
[*] Toolchain has C++ support?
- 1
- 2
3、解决结果
2、配置项
Target packages --->
Graphic libraries and applications (graphic/text) --->
[*] Qt5 --->
- 1
- 2
- 3
3、qt 常用模块
Target packages --->
Graphic libraries and applications (graphic/text) --->
[*] Qt5 --->
[*] gui module
[*] widgets module
[*] GIF support
[*] JPEG support
[*] PNG support
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
注:其他模块根据需要添加。
三、编译
make -j4
- 1
通过以上信息,可以确定 buildroot 添加 qt 成功。
四、测试
1、查找 qmake
onlylove@ubuntu:~/my/buildroot/buildroot-2022.08$ pwd
/home/onlylove/my/buildroot/buildroot-2022.08
onlylove@ubuntu:~/my/buildroot/buildroot-2022.08$ find -name qmake
./output/host/bin/qmake
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/bin/qmake
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/tests/auto/tools/qmake
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/qmake
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/qmake/doc/snippets/qmake
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/qmake/qmake
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/qmake
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/tmp-target-install/home/onlylove/my/buildroot/buildroot-2022.08/output/host/bin/qmake
onlylove@ubuntu:~/my/buildroot/buildroot-2022.08$
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
2、查找 qt 例程
onlylove@ubuntu:~/my/buildroot/buildroot-2022.08$ pwd
/home/onlylove/my/buildroot/buildroot-2022.08
onlylove@ubuntu:~/my/buildroot/buildroot-2022.08$ find . | grep pro$ | grep examples
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/src/tools/qlalr/examples/lambda/lambda.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/src/tools/qlalr/examples/glsl/glsl.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/src/tools/qlalr/examples/dummy-xml/dummy-xml.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/src/tools/qlalr/examples/qparser/qparser.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/qtconcurrent/runfunction/runfunction.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/qtconcurrent/wordcount/wordcount.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/qtconcurrent/qtconcurrent.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/qtconcurrent/imagescaling/imagescaling.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/qtconcurrent/progressdialog/progressdialog.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/qtconcurrent/map/map.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/mimetypes/mimetypebrowser/mimetypebrowser.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/mimetypes/mimetypes.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/ipc/localfortuneserver/localfortuneserver.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/ipc/ipc.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/ipc/sharedmemory/sharedmemory.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/ipc/localfortuneclient/localfortuneclient.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/serialization/cbordump/cbordump.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/serialization/convert/convert.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/serialization/serialization.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/serialization/savegame/savegame.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/corelib.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/threads/waitconditions/waitconditions.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/threads/semaphores/semaphores.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/threads/queuedcustomtype/queuedcustomtype.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/threads/threads.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/threads/mandelbrot/mandelbrot.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/tools/tools.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/tools/contiguouscache/contiguouscache.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/tools/customtype/customtype.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/corelib/tools/customtypesending/customtypesending.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/gallery/gallery.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/widgets/windowlayout/windowlayout.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/widgets/toplevel/toplevel.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/widgets/childwidget/childwidget.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/widgets/widgets.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/addressbook/part6/part6.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/addressbook/part3/part3.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/addressbook/addressbook.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/addressbook/part1/part1.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/addressbook/part5/part5.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/addressbook/part7/part7.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/addressbook/part2/part2.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/addressbook/part4/part4.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/gettingStarted/gettingStarted.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/gettingStarted/gsQt/part3/part3.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/gettingStarted/gsQt/part1/part1.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/gettingStarted/gsQt/part5/part5.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/gettingStarted/gsQt/part2/part2.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/gettingStarted/gsQt/part4/part4.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/examples/widgets/tutorials/gettingStarted/gsQt/gsqt.pro
./output/build/qt5base-2ffb7ad8a1079a0444b9c72affe3d19b089b60de/exa