I’m gonna make a wild guess that you should add a backslash to the end of the phonon line. The backslash effectively cancels out the line break, so all those lines are actually part of the QT += xml line…apparently just split up for easier reading and editing. Just make sure the backslash is the last character on the line, no spaces after it.
The one at the end (after svg) is not needed, and might actually cause a problem if the following line isn’t blank.
The lines written with the correct backslashes would be the equivalent of this:
QT += xml phonon /usr/share/phonon core gui xmlpatterns svg
I’m not certain /usr/share/phonon is appropriate for this, but that’s an even wilder guess.
Well thank you for the help. But unfortunaly it didn’t solve the problem.
So i redownloaded source code. Recompiled pencil2D but i get the same errors over and over again.
As long as i don’t add the path to phonon i get a “no such file or directory”. And when i add the path i get a" /home/otto/pencil-feature-zipped-file-format/pencil.pro:28: Parse Error (‘core gui xmlpatterns svg’)" error.
Kinda enoying!
It’s probably not here that i should enter the path to phonon. But Where then… Shouldn’t it find out on it’s own?
Well if any of you has a clue, i would bee glad to here about it.
The include is important when building…if you don’t have the phonon dev files as well as the runtime files, programs that use phonon can’t be compiled (the binaries can be run without dev files, but not built). If you do have the dev files installed, maybe it’s a case where you have to do something special in Slackware to tell make where the headers are. It’s been years since i’ve been on Slackware, but i seem to recall sometimes having to manually configure some aspects of the build system.
Unfortunately i don’t have a clue how the qmake thing works, so i can’t make any useful suggestions for a fix.
I also have a /usr/share/phonon directory. But not a file…
I don’t know what to do either… The big deal is had too pull out all orphan binaries for a update a few weeks ago and pencil was one. So i’m left wis no pencil, and no source code i can build…
Well i replaced the #include<phonon> by #include <phonon/MediaObject> and #include <phonon/AudioOutput>
In the layersoun.h
but i get a
/home/otto/pencil-master/src/external/linux/linux.cpp:44: erreur : no member named 'BackendCapabilities' in namespace 'Phonon'
QStringList mimeTypes = Phonon::BackendCapabilities::availableMimeTypes();
~~~~~~~~^
Well Well Welle!
Things got a bit better.
Some Archlinux.fr pal got a AUR working for mee.
This meens i can use pencil2D. Does not meen i can compile from source code in QTcreator.
Does it meen i was wrong from the start wanting to use Qt???