Make error on Linux Mint

Not sure if it matters but I’m using Linux Mint 15 Olivia, based on Ubuntu 13.04

I have followed the instructions here:
github.com/diydrones/apm_planne … /README.md
up until 3.

‘qtmake-qt4 qgroundcontrol.pro’ does not work, so I run
’qmake qgroundcontrol.pro’

and get the following error:
cj@x201i ~/workspace/apm_planner $ qmake qgroundcontrol.pro
Project MESSAGE: Qt version 5.0.1
Project MESSAGE: Linux build
Project MESSAGE: Release flavor
Project MESSAGE: BASEDIR /home/cj/workspace/apm_planner DESTDIR /home/cj/workspace/apm_planner/release TARGET apmplanner2
/home/cj/workspace/apm_planner/QGCExternalLibs.pri:379: Extra characters after test expression.
Project ERROR: Unknown module(s) in QT: script declarative webkit phonon svg

and now I’m stuck and was wandering if anyone can offer advice.

Regards
Chris
PS - very much a Linux noob, so if you can help please spell it out for me, thanks

Try installing the dependencies as described in the readme.md

[quote]sudo apt-get install phonon libqt4-dev libqt4-opengl-dev
libphonon-dev libphonon4 phonon-backend-gstreamer
qtcreator libsdl1.2-dev libflite1 flite1-dev build-essential
libopenscenegraph-dev libssl-dev libqt4-opengl-dev libudev-dev
libsndfile1-dev[/quote]

Then qmake-qt4 will be available.

APM Planner will not build correctly against Qt5.x

Thank you for your reply.
I have already installed all those dependancies, as I followed the readme.

[quote]qmake-qt4 qgroundcontrol.pro[/quote] works ok, thankyou.

However, following the readme instructions, I was trying to run

[quote]qtmake-qt4 qgroundcontrol.pro or
qmake qgroundcontrol.pro[/quote]
neither of which worked.

so close now… OK, so now onto the next problem :slight_smile:
Running the command:

The spash screen opens and then the gui errors:

I don’t see a directory ‘qml’ under home/cj/

The terminal output:

[quote]cj@x201i ~ $ ./workspace/apm_planner/release/apmplanner2
QsLog: could not open log file /home/cj/apmplanner2/log.txt INFO 2014-03-28T09:36:40.782 QGCCore::initialize()
INFO 2014-03-28T09:36:40.783 Current Build Info
INFO 2014-03-28T09:36:40.783 Git Hash: d28be19ddf037bff3bb5bc34f2c7c10ad47498b7
INFO 2014-03-28T09:36:40.783 Git Commit: 2.0.7-27-gd28be19
INFO 2014-03-28T09:36:40.783 APPLICATION_NAME: "APM Planner"
INFO 2014-03-28T09:36:40.784 APPLICATION_VERSION: "v2.0.7"
INFO 2014-03-28T09:36:40.876 Start Link Manager
INFO 2014-03-28T09:36:40.894 Start UAS Manager
INFO 2014-03-28T09:36:40.901 UDP Created "UDP Link (port:14550)"
DEBUG 2014-03-28T09:36:40.902 Creating MainWindow
INFO 2014-03-28T09:36:41.157 Creating SubMainWindow: SubMainWindow(0xadc27d8)
INFO 2014-03-28T09:36:41.157 setting objectName: "VIEW_MISSION"
INFO 2014-03-28T09:36:41.263 Creating SubMainWindow: SubMainWindow(0xae26180)
INFO 2014-03-28T09:36:41.263 setting objectName: "VIEW_FLIGHT"
INFO 2014-03-28T09:36:41.337 Creating SubMainWindow: SubMainWindow(0xae50be8)
INFO 2014-03-28T09:36:41.337 setting objectName: "VIEW_HARDWARE_CONFIG"
DEBUG 2014-03-28T09:36:41.624 fillPortsInfo
INFO 2014-03-28T09:36:41.635 Inserting "ttyUSB0"
INFO 2014-03-28T09:36:41.635 Changed Link to: "ttyUSB0"
INFO 2014-03-28T09:36:42.144 Creating SubMainWindow: SubMainWindow(0xadd54b8)
INFO 2014-03-28T09:36:42.144 setting objectName: "VIEW_SOFTWARE_CONFIG"
DEBUG 2014-03-28T09:36:42.175 Disable Controls
INFO 2014-03-28T09:36:42.651 Creating SubMainWindow: SubMainWindow(0xb55a480)
INFO 2014-03-28T09:36:42.651 setting objectName: "VIEW_ENGINEER"
INFO 2014-03-28T09:36:42.699 Creating SubMainWindow: SubMainWindow(0xb59c4a0)
INFO 2014-03-28T09:36:42.699 setting objectName: "VIEW_MAVLINK"
INFO 2014-03-28T09:36:42.732 Creating SubMainWindow: SubMainWindow(0xb5aaa98)
INFO 2014-03-28T09:36:42.732 setting objectName: "VIEW_SIMULATOR"
INFO 2014-03-28T09:36:42.807 Creating SubMainWindow: SubMainWindow(0xb5ee9c8)
INFO 2014-03-28T09:36:42.807 setting objectName: "VIEW_TERMINAL"
DEBUG 2014-03-28T09:36:42.822 fillPortsInfo
INFO 2014-03-28T09:36:42.834 Inserting "ttyUSB0"
INFO 2014-03-28T09:36:42.834 Changed Link to: "ttyUSB0"
DEBUG 2014-03-28T09:36:42.915 MODE: 0
DEBUG 2014-03-28T09:36:42.917 "D|PREFLIGHT"
DEBUG 2014-03-28T09:36:42.917 MODE: 80
DEBUG 2014-03-28T09:36:42.918 "D|STABILIZED"
DEBUG 2014-03-28T09:36:42.918 MODE: 64
DEBUG 2014-03-28T09:36:42.919 "D|MANUAL"
DEBUG 2014-03-28T09:36:42.919 MODE: 88
DEBUG 2014-03-28T09:36:42.920 "D|VECTOR|STABILIZED"
DEBUG 2014-03-28T09:36:42.921 MODE: 92
DEBUG 2014-03-28T09:36:42.921 "D|AUTO|STABILIZED"
DEBUG 2014-03-28T09:36:42.922 MODE: 66
DEBUG 2014-03-28T09:36:42.922 "D|TEST"
INFO 2014-03-28T09:36:43.117 UASActionsWidget creating UASActionsWidget(0xb6e9e48)
INFO 2014-03-28T09:36:43.371 Using Alsa Audio driver
WARN 2014-03-28T09:36:43.372 Dir directory tmp_audio exists
DEBUG 2014-03-28T09:36:43.384 qmlBaseDir "/home/cj"
DEBUG 2014-03-28T09:36:43.386 QUrl( “file:///home/cj/qml/ApmToolBar.qml” )
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.950000), must be greater than 0[/quote]

The readme has been corrected (thanks Bill!) to specify the correct qmake.

It looks like you ran it from your home folder. Try running it from the project folder.

There are now Linux binaries, so I highly recommend using them (this daily build or any later) http://firmware.diydrones.com/Tools/APMPlanner/daily/2014-03-27/ unless you are planning on doing development work.

The ubuntu raring builds should work fine with Linux mint.

Thank you, that worked great !

Sweet music to my ears, wish I had know about that before hand !!

Thank you all for your help.

PS - I think it would be really helpful to link to the binaries from the download page, only Windows and Mac are shown

[quote=“cjyoyogi”]
PS - I think it would be really helpful to link to the binaries from the download page, only Windows and Mac are shown[/quote]
They where first posted yesterday. A link to the first stable release will be posted to the downloads section in the next couple of days.