Debian Installation Problem

Hello,

i have a big problem with the installation from source.
I opend the terminal and i follow the command in readme but i stuck on this command: qmake qgroundcontrol.pro.
That is what happend:
michael@michael12:~/apm_planner$ qmake qgroundcontrol.pro
Project MESSAGE: Qt version 5.2.1
Project MESSAGE: Linux build x86
Project MESSAGE: Release flavor
Project MESSAGE: BASEDIR /home/michael/apm_planner DESTDIR /home/michael/apm_planner/release TARGET apmplanner2
Project MESSAGE: Skipping support for QUpgrade
Project MESSAGE: Using mavlink + ardupilotmega
Project MESSAGE: Skipping support for OpenSceneGraph
Project MESSAGE: Skipping support for Google Earth
Project MESSAGE: Skipping support for Protocol Buffers
Project MESSAGE: Skipping support for libfreenect
Project MESSAGE: Adding ALGLIB /home/michael/apm_planner/libs/alglib
Project MESSAGE: Skipping support for XBee
Project MESSAGE: Skipping support for Opal-RT
Project MESSAGE: QTDIR /opt/Qt5.2.1/5.2.1/gcc_64
WARNING: permFolders.path is not defined: install target not created

WARNING: permFiles.path is not defined: install target not created

michael@michael12:~/apm_planner$

Bes regardes Michael

The output from qmake looks fine, you should be alright to run make now. The build process is detailed in the README.md file: github.com/diydrones/apm_planne … /README.md

I have run make but that is my output:

I have only copied the last part of it with the error.

In file included from src/uas/UAS.h:36:0,
from src/input/JoystickInput.cc:15:
src/comm/MAVLinkProtocol.h:57:10: warning: unused parameter ‘msg’ [-Wunused-parameter]
void sendMessage(mavlink_message_t msg) { }
^
src/input/JoystickInput.cc: In member function ‘bool JoystickInput::sdlJoystickUpdate(unsigned int)’:
src/input/JoystickInput.cc:280:54: error: ‘SDL_TICKS_PASSED’ was not declared in this scope
if (SDL_TICKS_PASSED(ticks, valuesTicks + timeout))
^
make: *** [build-release/obj/JoystickInput.o] Fehler 1
michael@michael12:~/apm_planner$

That would indicate that you don’t have SDLV2 installed?

How can I installiert it?

Ok I have run a SLD2 test file and it work fine.

Her are the Terminal output:
libsdl1.2-dev is already the newest version.
libsdl2-dev is already the newest version.
libsndfile1-dev is already the newest version.

Thanks for your fast replay!

Best regardes Michael

Has no one any idea?

Hi Michael.

I get the same error too. I believe it’s because we need SDL 2.0.1 and libsdl2-dev (wheezy-backports) is at 2.0.0.

See packages.debian.org/wheezy-back … ibsdl2-dev
and
wiki.libsdl.org/SDL_TICKS_PASSED

Dave

Thanks for the find carpy, I’ll get a debian VM up today and see if that’s the issue. Can you try adding that package qudrocopter92, and see if it helps?

No worries malcom–I tried it and got past the compile error.

qudrocopter92, I added deb ftp.us.debian.org/debian sid main to my /etc/apt/sources.list and did a apt-get update and apt-get install libsdl2-dev.

As you probably already know, be careful because sid is development only.

Dave