Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Help with compiling QT app minitube

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1490
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 58 times

Help with compiling QT app minitube

#1 Post by oswaldkelso »

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.
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Help with compiling QT app minitube

#2 Post by peter_irich »

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.

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1490
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 58 times

Re: Help with compiling QT app minitube

#3 Post by oswaldkelso »

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.
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Help with compiling QT app minitube

#4 Post by peter_irich »

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.

User avatar
brain
Posts: 253
Joined: 2006-04-25 17:15

Re: Help with compiling QT app minitube

#5 Post by brain »

You're missing the "libphonon-dev" package

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1490
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 58 times

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

#6 Post by oswaldkelso »

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.
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

Post Reply