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. HELP: Cross compile error with Phonon Library
Qt 6.11 is out! See what's new in the release blog

HELP: Cross compile error with Phonon Library

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 2.2k 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.
  • E Offline
    E Offline
    enaud84
    wrote on last edited by
    #1

    Hi all,
    I made ​​a little program using Qt with Phonon libraries, if i test it on my pc it start correclty!!
    but when I cross compile with the command:

    sb2 -t imx53 make

    i have this error:

    user@ubuntu1004desktop:~/QtSDK/helloworld/hello2/hello2$ sb2 -t imx53 make
    /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile hello2.pro
    /usr/bin/uic-qt4 mainwindow.ui -o ui_mainwindow.h
    g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/qt4/phonon -I/usr/include -I/usr/include/qt4/phonon_compat -I. -I. -o main.o main.cpp
    In file included from /usr/include/QtCore/qobject.h:48,
    from /usr/include/QtCore/qcoreapplication.h:45,
    from /usr/include/QtGui/qapplication.h:45,
    from /usr/include/QtGui/QApplication:1,
    from main.cpp:1:
    /usr/include/QtCore/qstring.h:101: note: the mangling of 'va_list' has changed in GCC 4.4
    g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/qt4/phonon -I/usr/include -I/usr/include/qt4/phonon_compat -I. -I. -o mainwindow.o mainwindow.cpp
    In file included from mainwindow.cpp:2:
    ui_mainwindow.h:22:32: error: phonon/videoplayer.h: No such file or directory
    mainwindow.cpp:3:30: error: Phonon/VideoPlayer: No such file or directory
    mainwindow.cpp:4:30: error: Phonon/MediaObject: No such file or directory
    mainwindow.cpp:5:30: error: Phonon/MediaSource: No such file or directory
    In file included from /usr/include/QtCore/qobject.h:48,
    from /usr/include/QtGui/qwidget.h:46,
    from /usr/include/QtGui/qmainwindow.h:45,
    from /usr/include/QtGui/QMainWindow:1,
    from mainwindow.h:4,
    from mainwindow.cpp:1:
    /usr/include/QtCore/qstring.h:101: note: the mangling of 'va_list' has changed in GCC 4.4
    In file included from mainwindow.cpp:2:
    ui_mainwindow.h:31: error: 'Phonon' has not been declared
    ui_mainwindow.h:31: error: ISO C++ forbids declaration of 'VideoPlayer' with no type
    ui_mainwindow.h:31: error: expected ';' before '' token
    ui_mainwindow.h: In member function 'void Ui_MainWindow::setupUi(QMainWindow
    )':
    ui_mainwindow.h:47: error: 'videoPlayer' was not declared in this scope
    ui_mainwindow.h:47: error: expected type-specifier before 'Phonon'
    ui_mainwindow.h:47: error: expected ';' before 'Phonon'
    mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
    mainwindow.cpp:14: error: 'Phonon' has not been declared
    mainwindow.cpp:14: error: 'media' was not declared in this scope
    mainwindow.cpp:14: error: expected type-specifier before 'Phonon'
    mainwindow.cpp:14: error: expected ';' before 'Phonon'
    mainwindow.cpp:15: error: 'Phonon' has not been declared
    mainwindow.cpp:16: error: 'class Ui::MainWindow' has no member named 'videoPlayer'
    make: *** [mainwindow.o] Error 1

    How can I specified the correct path for my library?

    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