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?

 

Thanks all

 

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to