[Solved (sort of)] Building Qt for Android: AL/al.h: No such file or directory
-
I'm trying to build Qt 5.2.1-ish (the branch that has the comment "* stable 604f330 don't unnecessarily confuse qt creator") on Mac OS 10.8.5, Xcode 5.0.2.
I use this configure line, which came from this document: "Building Qt 5 for Android":http://qt-project.org/wiki/Qt5ForAndroidBuilding
<code>./configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk /Volumes/Projects/android-ndk-r8e -android-sdk /Volumes/Projects/android-sdk-macosx -android-ndk-host darwin-x86_64 -android-toolchain-version 4.7 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors</code>When I get to the <code>make</code> step, it aborts with this error:
@In file included from qaudioengine_p.cpp:46:0:
qaudioengine_openal_p.h:54:19: fatal error: AL/al.h: No such file or directory@The only place I could find <code>AL/al.h</code> was in <code>/System/Library/Frameworks/OpenAL.framework/Headers</code>
I don't see this directory mentioned on the compilation command line:
@/Projects/Qt5.2.1.RC1/qt5/qtbase/bin/qmake -o Makefile audioengine.pro
/Volumes/Projects/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -O2 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_MULTIMEDIA_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Volumes/Projects/Qt5.2.1.RC1/qt5/qtbase/mkspecs/android-g++ -I. -I../../multimedia/audio -I../../../include/QtMultimedia/5.2.2 -I../../../include/QtMultimedia/5.2.2/QtMultimedia -I/Volumes/Projects/Qt5.2.1.RC1/qt5/qtdeclarative/include -I/Volumes/Projects/Qt5.2.1.RC1/qt5/qtdeclarative/include/QtQuick -I../../../include -I../../../include/QtMultimedia -I/Volumes/Projects/Qt5.2.1.RC1/qt5/qtdeclarative/include/QtQml -I/Volumes/Projects/Qt5.2.1.RC1/qt5/qtbase/include -I/Volumes/Projects/Qt5.2.1.RC1/qt5/qtbase/include/QtNetwork -I/Volumes/Projects/Qt5.2.1.RC1/qt5/qtbase/include/QtGui -I/Volumes/Projects/Qt5.2.1.RC1/qt5/qtbase/include/QtCore -I.moc -I/Volumes/Projects/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/include -I/Volumes/Projects/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a/include -I/Volumes/Projects/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -o .obj/qaudioengine_p.o qaudioengine_p.cpp@Anyone have any ideas why this is happening? I can't tell if this is something I did or a problem in the configure script or .pro files or the phase of the moon. I know I can make it go away with a big enough hammer, but if someone can spot a problem in the configure script, or can divine anything else that I might try, I'd appreciate it.
Let me know if there's any other information I can provide that might help.
Thanks!
-Eric
-
OK, I nuked the whole directory and started again, and THIS problem went away, but I got a whole NEW problem which I'll post in another thread.