title: Using Phonon in Qt5 - a simple video player
body: <p>So what I'm trying to do is stream an ip camera using phonon (vlc backend) in qt5.</p>
  
  <p>I know phonon needs some changes in order to work in qt5 and I've made them, the libraries which used  weren't writable, I made them writable, edited them but I'm still getting lots of errors.
  Then I assumed there might be something wrong with phonon! so I downloaded phonon for qt 5. but the result was the same.</p>
  
  <p>even creating an object gives me errors, after Googling my error, I found out there is linking problem but I don't know how to fix it.</p>
  
  <p>.pro file:</p>
  
  <pre><code>   Qt       += phonon4qt5    
  </code></pre>
  
  <p>header file:</p>
  
  <pre><code>    #include &lt;phonon4qt5/phonon/VideoPlayer&gt;
  .
  .
  .
      Phonon::VideoPlayer *videoPlayer;
  </code></pre>
  
  <p>cpp file:</p>
  
  <pre><code>videoPlayer=new Phonon::VideoPlayer(Phonon::VideoCategory,this);
  </code></pre>
  
  <p>I get these errors:</p>
  
  <pre><code>/home/user/Projects/VideoPlayer-Phonon2/mainwindow.cpp:9: error: undefined reference to `Phonon::VideoPlayer::VideoPlayer(Phonon::Category, QWidget*)'
  :-1: error: collect2: error: ld returned 1 exit status
  </code></pre>