软件01 发表于 2020-9-23 17:51:43

RK3399 UBUNTU系统跑QT程序

开发板型号:MY-RK3999-EK314
内核版本:linux-4.4
源码版本:myrk3399_linux.tar.bz2
系统类型:ubuntu


原因:想在ubuntu上测试一下QT程序
方法如下:


1.复制一下QT demo源码Uart_Test.zip
$ unzip Uart_Test.zip


2.配置和编译(注意:如果报错,需要修改Uart_Test.pro,增加greaterThan(QT_MAJOR_VERSION, 4): QT += widgets)
$ sudo apt-get install g++
$ cd Uart_Test
myzr@localhost:~/Uart_Test$ qmake -project
myzr@localhost:~/Uart_Test$ qmake
myzr@localhost:~/Uart_Test$ make
myzr@localhost:~/Uart_Test$ ls
main.cppMakefile      moc_widget.oUart_Test.prowidget.cppwidget.o
main.o    moc_widget.cppUart_Test   ui_widget.h    widget.h    widget.ui

3.运行程序
myzr@localhost:~/Uart_Test$ export DISPLAY=':0.0'myzr@localhost:~/Uart_Test$ ./Uart_Test






页: [1]
查看完整版本: RK3399 UBUNTU系统跑QT程序