pixhawk/qgroundcontrol — Issue #89: undefined reference errors when building.
Author: jschall
Created: 2011-12-18 08:21:16+00:00
State: open

I followed the instructions for building on linux, and got the following errors:

/home/jschall/asdf/qgroundcontrol-build-desktop/build/obj/moc_consoleprocess.o:-1: In function `Utils::ConsoleProcess::qt_metacall(QMetaObject::Call, int, void**)':
/home/jschall/asdf/qgroundcontrol-build-desktop/build/moc/moc_consoleprocess.cpp:92: error: undefined reference to `Utils::ConsoleProcess::stubConnectionAvailable()'
/home/jschall/asdf/qgroundcontrol-build-desktop/build/moc/moc_consoleprocess.cpp:93: error: undefined reference to `Utils::ConsoleProcess::readStubOutput()'
/home/jschall/asdf/qgroundcontrol-build-desktop/build/moc/moc_consoleprocess.cpp:94: error: undefined reference to `Utils::ConsoleProcess::stubExited()'
(.rodata._ZTV20QextSerialEnumerator[vtable for QextSerialEnumerator]+0x28):-1: error: undefined reference to `QextSerialEnumerator::~QextSerialEnumerator()'
(.rodata._ZTV20QextSerialEnumerator[vtable for QextSerialEnumerator]+0x30):-1: error: undefined reference to `QextSerialEnumerator::~QextSerialEnumerator()'
:-1: error: collect2: ld returned 1 exit status

I'm running Kubuntu 11.10 Oneiric ocelot.

This is the build procedure I followed:
- sudo apt-get install phonon libqt4-dev \
libphonon-dev libphonon4 phonon-backend-gstreamer \
qtcreator libsdl1.2-dev libflite1 flite1-dev build-essential
- git clone git@github.com:pixhawk/mavlink.git
- git clone git@github.com:pixhawk/qgroundcontrol.git
- Open directory/qgroundcontrol/qgroundcontrol.pro
- Hit the green play button to compile and launch it

I got similar errors attempting to build from the v10release branch.
I'm not sure what version I want. I'm using the latest arduplane, which I believe uses mavlink 1.0.
Thanks for any help :)