@@ -53,28 +53,40 @@ Build APM Planner
53
53
Linux
54
54
=====
55
55
56
- Building on Linux (tested against Ubuntu 18.04 LTS) :
57
- (Use Qt5.9.5+ suggested Qt5.12.5)
56
+ 1 ) Install the required packages :
57
+ ---------------------------------
58
58
59
- (** NOTE:** There is an error in 14.04LTS with libxcb crashing sometimes, try this [ fix] ( https://gist.github.com/slimsag/a26d838ccc4480ce21bc ) )
60
59
61
- (** NOTE:** If you are using 14:04LTS or other linux and instructions below are not working do it [ 'The Easy Way'] ( BUILD-EASY.md ) )
62
-
63
- 1 ) Install the required packages:
60
+ ** Packages needed on Ubuntu 18.04 LTS:**
64
61
65
62
Be sure to run apt-get update first
66
63
64
+
67
65
```
68
66
sudo apt-get update
69
67
sudo apt-get install qt5-qmake qt5-default \
70
68
qtscript5-dev libqt5webkit5-dev libqt5serialport5-dev \
71
- libqt5svg5-dev qtdeclarative5-qtquick2-plugin libqt5serialport5-dev \
69
+ libqt5svg5-dev qtdeclarative5-qtquick2-plugin \
72
70
libqt5opengl5-dev qml-module-qtquick-controls
73
71
sudo apt-get install git libsdl1.2-dev libsndfile-dev \
74
72
flite1-dev libssl-dev libudev-dev libsdl2-dev python-serial python-pexpect
75
73
```
76
74
77
- In Fedora (tested against Fedora 21), use:
75
+
76
+ ** Packages needed on Ubuntu 22.04 LTS:**
77
+
78
+ (** NOTE:** On Ubuntu 22.04 use only the native (ubuntu) Qt version 5.15.3 as the official Qt 5.15.2 which comes with the Qt Maintenance tool only supports OpenSSL 1.1.1 which is not supported by Ubuntu 22.04 anymore.)
79
+
80
+ Be sure to run apt-get update first
81
+
82
+ ```
83
+ sudo apt-get update
84
+ sudo apt-get install qt5-qmake qtbase5-dev qtscript5-dev libqt5webkit5-dev libqt5serialport5-dev libqt5svg5-dev libqt5opengl5-dev qml-module-qtquick-controls
85
+ sudo apt-get install git libsdl1.2-dev libsndfile1-dev flite1-dev libssl-dev libudev-dev libsdl2-dev
86
+ ```
87
+
88
+
89
+ ** Packages needed on Fedora (tested against Fedora 21), use:**
78
90
79
91
```
80
92
sudo yum update
@@ -87,13 +99,15 @@ sudo yum install SDL-devel libsndfile-devel \
87
99
```
88
100
89
101
2 ) Clone the repository in your workspace:
102
+ ------------------------------------------
90
103
91
104
```
92
105
cd ~/workspace
93
106
git clone https://github.com/diydrones/apm_planner
94
107
```
95
108
96
109
3 ) Build APM Planner:
110
+ ---------------------
97
111
98
112
```
99
113
cd ~/workspace/apm_planner
@@ -102,13 +116,15 @@ make
102
116
```
103
117
104
118
4 ) Run APM Planner:
119
+ -------------------
105
120
106
121
```
107
122
./release/apmplanner2
108
123
```
109
124
110
- 5 ) Permanent installation (optional, if you'd like to install APM Planner in a fixed location)
111
-
125
+ 5 ) Permanent installation (optional, if you'd like to install APM Planner in a fixed location):
126
+ -----------------------------------------------------------------------------------------------
127
+
112
128
There are two ways to do this:
113
129
114
130
a) Using Debuild:
0 commit comments