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

From wiki.ferrari.mo.it
Jump to navigation Jump to search
(Created page with "=== Compile QT application in an ARM device === 1. Install required packages apt-get install qttools5-dev apt-get install qt5-default 2. Install required modules. Example...")
 
Line 1: Line 1:
 
=== Compile QT application in an ARM device ===
 
=== Compile QT application in an ARM device ===
  
1. Install required packages
+
1. Install compiler
 +
 
 +
apt-get install g++
 +
 
 +
2. Install required packages
  
 
  apt-get install qttools5-dev
 
  apt-get install qttools5-dev
 
  apt-get install qt5-default
 
  apt-get install qt5-default
  
2. Install required modules. Examples:
+
3. Install required modules. Examples:
  
 
  apt-get install libqt5sql5
 
  apt-get install libqt5sql5
Line 12: Line 16:
 
  apt-get install libqt5websockets5-dev
 
  apt-get install libqt5websockets5-dev
  
3. Compile
+
4. Compile
  
 
  cd my_dir
 
  cd my_dir
 
  qmake
 
  qmake
 
  make
 
  make

Revision as of 10:27, 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