Trouble with Phonon
-
Hello friends I'm new here.
I'm trying to do a video player with raspberry pi2 + qt4 + phonon, but when I install phonon, the widgets do not appear. Can anybody help me please?
-
@cesarrmalaver How did you install phonon?
Which widgets do not appear?
Where do they not appear? -
Hi and welcome to devnet,
What do you mean by "do not appear" ? Do you get any error message ?
Note that for new project you really should move to Qt 5. Qt 4 has seen its last release with 4.8.7 and won't have any other.
-
@jsulm My friend, I did the following:
1 Install Raspian Jessie in the SD card.
2 Install QT4 like this: In terminalsudo apt-get update sudo apt-get upgrade sudo apt-get install g++ sudo apt-get install qt4-dev-tools sudo apt-get install qtcreator
- Install Phonon like this:
sudo apt-get install phonon sudo apt-get install phonon-backend-vlc sudo apt-get install phonon-backend-vlc-dbg sudo apt-get install phonon-backend-gstreamer-dbg sudo apt-get install phonon-backend-gstreamer sudo apt-get install libphonon4 sudo apt-get install libphonon-dev
- Next I open QTCreator and I donĀ“t can see the widgets .
[Tuturial result]http://i67.tinypic.com/ohs3nr.png[/IMG]
I can not see the widgets that appear in the image below is the result of the tutorial I followed
[My result]http://i65.tinypic.com/2drchav.png[/IMG]
-
Which of Qt Creator are you using ?
Using Qt 5 isn't different from using Qt 4. You should really migrate to for new projects.
-
That's what QtMultimedia is for or the if you insist on phonon then there's the phonon4Qt5 project.
-
@SGaist friend, I do not really know how to include these tools in my application in QT, I need to include widgets in a gui but do not show me those of QVideo nor Phonon, I really think I need to set something in qt. You understand me?
-
An idea should be to follow a tutorial from Qt official site, then import an example and use it, look the code, learn from there.
After migrate to Qt5, and after follow the tutorial for read video, after look at the example, you should be able to construct a little application for just read video with QMultimedia. (don't forget to incule multimdeiawidgets in the pro file also...).
there is also some example on youtube you can trust and follow for that.
After, do more than just read/record a simple video will ask more implication and maybe will be limited with just Qt without plugins.
But just for read video, you doesn't need phonon at all. Do it simple and easy first.