Difference between revisions of "Compile QT in an ARM device"

From wiki.ferrari.mo.it
Jump to navigation Jump to search
Line 27: Line 27:
  
 
Go to Control Panel - System, and then to 'Advanced System Setting'. Go to the 'Advanced' tab and click on 'Environment Variables'.
 
Go to Control Panel - System, and then to 'Advanced System Setting'. Go to the 'Advanced' tab and click on 'Environment Variables'.
Att the MinGW path to the Path variable (in this case, it is C:\Qt\Tools\mingw730_64\bin).
+
Add the MinGW path to the Path variable (in this case, it is C:\Qt\Tools\mingw730_64\bin).

Revision as of 13:45, 18 August 2019

Compile QT application in an ARM device

1. Install compiler

apt-get install g++

2. Install required packages

apt-get install qttools5-dev
apt-get install qt5-default

3. Install required modules. Examples:

apt-get install libqt5sql5
apt-get install libqt5serialport5-dev
apt-get install libqt5websockets5-dev

4. Compile

cd my_dir
qmake
make

5. Compiler setup

Download and install CMake from cmake.org. During installation, select the option 'Add CMake to the PATH for all users'.

Go to Control Panel - System, and then to 'Advanced System Setting'. Go to the 'Advanced' tab and click on 'Environment Variables'. Add the MinGW path to the Path variable (in this case, it is C:\Qt\Tools\mingw730_64\bin).