Qt-embedded link failure: undefined reference
-
Hi,
When I use openembedded Qt-embedded SDK to link my Qt GUI application against my static library or ffmpeg shared lib, it fails. The libraries are there, those functions are found in them. I can not figure out why it still complains. Any idea?
arm-angstrom-linux-gnueabi-g++ -Wl,-rpath-link,/home/tang/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/lib -o Aips main.o dataobject.o utils.o message.o qmlapplicationviewer.o moc_qmlapplicationviewer.o moc_dataobject.o moc_message.o -L/home/tang/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/lib -L/home/tang/Projects/OE/build/Aips/../tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib -lgplayer -lglib-2.0 -lavcodec -lavformat -lavutil -lvorbis -lvorbisenc -lspeex -lmp3lame -L/home/tang/Projects/OE/build/Aips/../tmp/sysroots/beagleboard-angstrom-linux-gnueabi/usr/lib/gstreamer-0.10 -lgstffmpeg -lgstticodecplugin -lQtDeclarativeE -lQtScriptE -lQtSvgE -lQtSqlE -lQtXmlPatternsE -lQtGuiE -lQtNetworkE -lQtCoreE -lpthread
main.o: In functionQPlayer': /home/tang/Projects/OE/build/Aips/main.cpp:22: undefined reference to
av_register_all()'
main.o: In functionQPlayer::run()': /home/tang/Projects/OE/build/Aips/main.cpp:28: undefined reference to
gplayer(_GList*)'
collect2: ld returned 1 exit status -
When I use Qt-embedded to link my Qt GUI application against my static library or ffmpeg shared lib, it fails. The libraries are there, I can not figure out why it still complains. Any suggestion?
arm-angstrom-linux-gnueabi-g++ -Wl,-rpath-link,/home/tang/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/lib -o Aips main.o dataobject.o utils.o message.o qmlapplicationviewer.o moc_qmlapplicationviewer.o moc_dataobject.o moc_message.o -L/home/tang/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/lib -L/home/tang/Projects/OE/build/Aips/../tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib -lgplayer -lglib-2.0 -lavcodec -lavformat -lavutil -lvorbis -lvorbisenc -lspeex -lmp3lame -L/home/tang/Projects/OE/build/Aips/../tmp/sysroots/beagleboard-angstrom-linux-gnueabi/usr/lib/gstreamer-0.10 -lgstffmpeg -lgstticodecplugin -lQtDeclarativeE -lQtScriptE -lQtSvgE -lQtSqlE -lQtXmlPatternsE -lQtGuiE -lQtNetworkE -lQtCoreE -lpthread
main.o: In functionQPlayer': /home/tang/Projects/OE/build/Aips/main.cpp:22: undefined reference to
av_register_all()'
main.o: In functionQPlayer::run()': /home/tang/Projects/OE/build/Aips/main.cpp:28: undefined reference to
gplayer(_GList*)'
collect2: ld returned 1 exit status