Then I ran qmake / make and after that I got a compile error telling me that sndfile.h was missing.
So I also installed libsndfile1-dev as a dependency, and that got rid of the error message.
This gets me all the way to the linking stage but unfortunately that ends with:
g++ -m64 -Wl,-O1 -o release/apmplanner2 build-release/obj/QsLogDest.o ...(long list omitted) .... build-release/obj/qrc_mapresources.o build-release/obj/qrc_qgroundcontrol.o -L/usr/lib/x86_64-linux-gnu -L/usr/X11R6/lib64 -lz -lssl -lcrypto -L/usr/lib -L/usr/local/lib64 -L/usr/lib64 -losgQt -losg -losgViewer -losgGA -losgDB -losgText -lOpenThreads -lSDL -lSDLmain -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite -ludev -lpthread -lQtDeclarative -lQtWebKit -lphonon -lQtSvg -lQtSql -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore -lGL
/usr/bin/ld: build-release/obj/AlsaAudio.o: undefined reference to symbol 'snd_pcm_hw_params_any@@ALSA_0.9'
/usr/lib/x86_64-linux-gnu/libasound.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
I was first thinking I maybe also needed libasound2-dev but that is already installed.
I think you needed to change a few lines of the makescript - maybe I mixed it up with some other project, but you will find solution in issues @github.
or - you can grab one of my autobuilds (64bit) flyfoto-nord.no/apm2beta/
/usr/bin/ld: build-release/obj/AutoUpdateCheck.o: undefined reference to symbol ‘_ZNK13QScriptEngine26uncaughtExceptionBacktraceEv’
/usr/lib/x86_64-linux-gnu/libQtScript.so.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [release/apmplanner2] Error 1