Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt-embedded link failure: undefined reference
Forum Updated to NodeBB v4.3 + New Features

Qt-embedded link failure: undefined reference

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kaijun
    wrote on last edited by
    #1

    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 function QPlayer': /home/tang/Projects/OE/build/Aips/main.cpp:22: undefined reference to av_register_all()'
    main.o: In function QPlayer::run()': /home/tang/Projects/OE/build/Aips/main.cpp:28: undefined reference to gplayer(_GList*)'
    collect2: ld returned 1 exit status

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kaijun
      wrote on last edited by
      #2

      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 function QPlayer': /home/tang/Projects/OE/build/Aips/main.cpp:22: undefined reference to av_register_all()'
      main.o: In function QPlayer::run()': /home/tang/Projects/OE/build/Aips/main.cpp:28: undefined reference to gplayer(_GList*)'
      collect2: ld returned 1 exit status

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved