android gstreamer + qmake = a lot of undefined references
Lars Nielsen
lars at steinwurf.com
Fri Jul 10 05:19:40 PDT 2015
Hello, I am trying to develop a media player app for mobile devices
using QT and gstreamer for android.
How ever even a very simple app, based on the helloworld example. Gives
me an c... load of undefined references. And I am hoping for your help
to solve this.
My include path and links to libraries are setup as follows in my .pro
file:
android{
INCLUDEPATH += "LIB/gstreamer-1.0-android-armv7-1.5.2/include" \
"LIB/gstreamer-1.0-android-armv7-1.5.2/include/gstreamer-1.0" \
"LIB/gstreamer-1.0-android-armv7-1.5.2/include/glib-2.0" \
"LIB/gstreamer-1.0-android-armv7-1.5.2/include/gstreamer-1.0/gst"\
"LIB/gstreamer-1.0-android-armv7-1.5.2/include/glib-2.0/glib" \
"LIB/gstreamer-1.0-android-armv7-1.5.2/lib/glib-2.0/include"\
"LIB/gstreamer-1.0-android-armv7-1.5.2/lib/gstreamer-1.0/include"\
"LIB/gstreamer-1.0-android-armv7-1.5.2/lib/gstreamer-1.0/include/gst"
}
android{
LIBS += "-L$$PWD/LIB/gstreamer-1.0-android-armv7-1.5.2/lib/
-lgstreamer-1.0"\
"-L$$PWD/LIB/gstreamer-1.0-android-armv7-1.5.2/lib/ -lglib-2.0"
}
and the generate qmake compile comand is:
"/usr/bin/make"
/home/tools/Qt/5.5/android_armv7/bin/qmake -spec android-g++
CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile
../gstmobiletest/gstmobiletest.pro
/home/tools/Downloads/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++
--sysroot=/home/tools/Downloads/android-ndk-r10e/platforms/android-9/arch-arm/
-Wl,-soname,libgstmobiletest.so
-Wl,-rpath=/home/tools/Qt/5.5/android_armv7/lib -Wl,--no-undefined
-Wl,-z,noexecstack -shared -o libgstmobiletest.so main.o qrc_qml.o
-L/home/tools/Downloads/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a
-L/home/tools/Downloads/android-ndk-r10e/platforms/android-9/arch-arm//usr/lib
-L/home/tools/qt_projects/gstmobiletest/LIB/gstreamer-1.0-android-armv7-1.5.2/lib/\
-lgstreamer-1.0
-L/home/tools/qt_projects/gstmobiletest/LIB/gstreamer-1.0-android-armv7-1.5.2/lib/\
-lglib-2.0 -L/home/tools/Qt/5.5/android_armv7/lib -lQt5Quick
-L/opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a
-L/opt/android/ndk/platforms/android-9/arch-arm//usr/lib -lQt5Widgets
-lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lgnustl_shared -llog
-lz -lm -ldl -lc -lgcc
From what I can tell the command, and link of libs are correct.
I have access to the header files, including enums and typedefs.
If this is question which should be direct to QT / qmake developers
instead, please inform me :)
Thanks in advance
--
Best Regards / Med Venlig Hilsen
Lars Nielsen
More information about the gstreamer-devel
mailing list