Qt5 on Wayland for RPi

   日期:2024-01-22     浏览:92    评论:0    
核心提示:设置环境

以下内容需要Raspbian环境。下载并编译Qt-base

设置环境

操作界面设置为CLI,并将用于VideoCore的内存设置为最小:16MB。

获取Qt5源代码

$ git clone git://gitorious.org/qt/qtbase.git
$ git clone git://gitorious.org/qt/qtjsbackend.git
$ git clone git://gitorious.org/qt/qtdeclarative.git
$ git clone git://gitorious.org/qt/qtwayland.git
$ cd qtbase
$ ./configure -opensource -confirm-license -qreal float -fully-process -no-c++11 -nomake tests -nomake examples -make libs -prefix /opt/qt5
$ make && sudo make install
$ cd ../qtjsbackend
$ /opt/qt5/bin/qmake
$ make && make install
$ cd ../qtjsbackend
$ /opt/qt5/bin/qmake
$ make && make install
$ cd ../qtdeclarative
$ /opt/qt5/bin/qmake
$ make && make install
$ cd ../qtwayland
$ /opt/qt5/bin/qmake
$ make && make install

测试一下,需要退出X Windows。

$ cd qtbase/examples/opengl/hellowindow
$ qmake
$ make
$ weston-launch &
$ ./hellowindow -platform waylaid

参考资料:
[1] http://wayland.freedesktop.org/qt5.html

 
打赏
 本文转载自:网络 
所有权利归属于原作者,如文章来源标示错误或侵犯了您的权利请联系微信13520258486
更多>最近资讯中心
更多>最新资讯中心
0相关评论

推荐图文
推荐资讯中心
点击排行
最新信息
新手指南
采购商服务
供应商服务
交易安全
关注我们
手机网站:
新浪微博:
微信关注:

13520258486

周一至周五 9:00-18:00
(其他时间联系在线客服)

24小时在线客服