Help with compiling QT app minitube

If none of the more specific forums is the right place to ask

Help with compiling QT app minitube

Postby oswaldkelso » 2009-11-03 21:02

Hi all
I'm trying to compile "minitube" http://flavio.tordini.org/minitube for my Debian testing install running on PPC.

After running qmake which seem to be fine. I ran make but I got one error in that "phonon" is not found. According to the install notes. It should be in...

/usr/local/phonon

but on Debian it's in

/usr/share/kde4/apps/phonon

I've seen several threads with the problem as each distro seems to use phonon differently. The Author says

The strict dependencies are Qt4 and Phonon. Each Phonon backend has different dependencies.


How do I compile it so it looks for phonon in /usr/share/kde4/apps/phonon or add's it to /usr/local/phonon without doing anything silly. I can't find where or what I should do to change the path at compile time. If that's what I need to do.

Thanks.
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1079
Joined: 2005-07-26 23:20
Location: UK

Re: Help with compiling QT app minitube

Postby peter_irich » 2009-11-04 09:38

Try write pro-file, from which qmake builds Makefile.
In pro-file it is possible set different variables controlling qmake's working, DESTDIR too.
See documentation about qmake and examples - qt3-doc, qt4-doc[-html], qt3-examples.

Peter.
peter_irich
 
Posts: 1195
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Help with compiling QT app minitube

Postby oswaldkelso » 2009-11-04 14:01

Thanks for the reply.

I'd tried adding the path to the minitube.pro file with
Code: Select all
INCLUDEPATH += /usr/share/kde4/apps/phonon

and it does show up in the make file.

Code: Select all
ok@debian800:~/downloads/sources/minitube$ make
g++ -c -pipe -O2 -fno-optimize-sibling-calls -Wall -W -D_REENTRANT -DDATADIR=\"/usr/local/share\" -DPKGDATADIR=\"/usr/local/share/minitube\" -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/phonon -I/usr/include/qt4 -I/usr/include/phonon -I/usr/share/kde4/apps/phonon -Isrc/qtsingleapplication -Isrc/thlibrary -Ilocale -I/usr/include/qt4/phonon_compat/phonon -I/usr/include/qt4/phonon_compat -I/usr/include/qt4/phonon/Phonon -Ibuild/moc -o build/obj/main.o src/main.cpp
In file included from src/main.cpp:4:
src/MainWindow.h:7:32: error: phonon/audiooutput.h: No such file or directory
src/MainWindow.h:8:33: error: phonon/volumeslider.h: No such file or directory
src/MainWindow.h:9:32: error: phonon/mediaobject.h: No such file or directory
src/MainWindow.h:10:31: error: phonon/seekslider.h: No such file or directory
In file included from src/MainWindow.h:13,
                 from src/main.cpp:4:
src/MediaView.h:7:32: error: phonon/videowidget.h: No such file or directory
In file included from src/MainWindow.h:13,
                 from src/main.cpp:4:
src/MediaView.h:36: error: ‘Phonon’ has not been declared
src/MediaView.h:36: error: expected ‘,’ or ‘...’ before ‘*’ token
src/MediaView.h:60: error: ‘Phonon’ has not been declared
src/MediaView.h:60: error: expected ‘,’ or ‘...’ before ‘newState’
src/MediaView.h:62: error: expected ‘,’ or ‘...’ before ‘::’ token
src/MediaView.h:62: error: ISO C++ forbids declaration of ‘Phonon’ with no type
src/MediaView.h:88: error: ‘Phonon’ has not been declared
src/MediaView.h:88: error: ISO C++ forbids declaration of ‘MediaObject’ with no type
src/MediaView.h:88: error: expected ‘;’ before ‘*’ token
src/MediaView.h:89: error: ‘Phonon’ has not been declared
src/MediaView.h:89: error: ISO C++ forbids declaration of ‘VideoWidget’ with no type
src/MediaView.h:89: error: expected ‘;’ before ‘*’ token
In file included from src/main.cpp:4:
src/MainWindow.h:50: error: ‘Phonon’ has not been declared
src/MainWindow.h:50: error: expected ‘,’ or ‘...’ before ‘newState’
src/MainWindow.h:134: error: ‘Phonon’ has not been declared
src/MainWindow.h:134: error: ISO C++ forbids declaration of ‘SeekSlider’ with no type
src/MainWindow.h:134: error: expected ‘;’ before ‘*’ token
src/MainWindow.h:135: error: ‘Phonon’ has not been declared
src/MainWindow.h:135: error: ISO C++ forbids declaration of ‘VolumeSlider’ with no type
src/MainWindow.h:135: error: expected ‘;’ before ‘*’ token
src/MainWindow.h:136: error: ‘Phonon’ has not been declared
src/MainWindow.h:136: error: ISO C++ forbids declaration of ‘MediaObject’ with no type
src/MainWindow.h:136: error: expected ‘;’ before ‘*’ token
src/MainWindow.h:137: error: ‘Phonon’ has not been declared
src/MainWindow.h:137: error: ISO C++ forbids declaration of ‘AudioOutput’ with no type
src/MainWindow.h:137: error: expected ‘;’ before ‘*’ token
src/Constants.h:12: warning: ‘Constants::EMAIL’ defined but not used
make: *** [build/obj/main.o] Error 1


I tried with both paths and just one but neither worked. I'll have a go a little later to see what I can find.

This seems the best/most hopeful so far, but I've not managed to get it working yet.

http://www.qtforum.org/post/96133/phono ... #post96133

Ultimately it would be nice to create a PPC minitube.deb as flash/youtube is the major bug bear on PPC especially for new users.
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1079
Joined: 2005-07-26 23:20
Location: UK

Re: Help with compiling QT app minitube

Postby peter_irich » 2009-11-04 17:56

I can't say anything, I'm not see your *.c and *.h, and where your application finds headers.
Perhaps, it is needed in *.h set absolute names this headers in "", or make symlinks
to directory with its (phonon) in /usr/include. This cases are happened.

Peter.
peter_irich
 
Posts: 1195
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Help with compiling QT app minitube

Postby brain » 2009-11-04 20:51

You're missing the "libphonon-dev" package
User avatar
brain
 
Posts: 253
Joined: 2006-04-25 17:15

Re: [partially solved] Help with compiling QT app minitube

Postby oswaldkelso » 2009-11-05 11:41

Thanks for all the help. I compile about one app a year so it's greatly appreciated. I added libphonon-dev (4:4.5.3-4) and it compiled. It didn't work 100% but as fare as compiling it's solved. It does everything but play the damn things :) Whether it's a PPC thing, youtube or what ever we'll see.
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1079
Joined: 2005-07-26 23:20
Location: UK


Return to General Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable