Unable to build latest uniXM on fedora F9:
1. Needed to add /usr/include/kde4 to find phonon headers (in /usr/include/kde4/phonon)
2. Don't know how to fix this:
Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -I/usr/include/kde4 -I. -I. -o main.o main.cpp
In file included from /usr/include/QtCore/QString:2,
from Types.h:12,
from XMconnect.h:2,
from main.cpp:2:
/usr/include/QtCore/qstring.h:794: warning: type qualifiers ignored on function return type
/usr/include/QtCore/qstring.h:795: warning: type qualifiers ignored on function return type
/usr/include/QtCore/qstring.h:796: warning: type qualifiers ignored on function return type
In file included from main.cpp:3:
uniXM.h:65: error: ISO C++ forbids declaration of ‘QFuture’ with no type
uniXM.h:65: error: expected ‘;’ before ‘<’ token
make: *** [main.o] Error 1
Logged In: YES
user_id=1951906
Originator: NO
I was not logged in when the above was submitted, ndbecker2@gmail.com
Logged In: YES
user_id=1690671
Originator: NO
I am building a FC9_64 VM right now to give it a look.
Make sure you have Qt 4.4 installed as it uses the phonon system in Qt and not
the usual KDE4 phonon.
Logged In: YES
user_id=1951906
Originator: NO
Yes, F9 has qt-4.3.4. I don't think I can do anything about this, guess I'll wait till F9 updates to qt-4.4
Logged In: YES
user_id=1690671
Originator: NO
it seems to be puking on the QConcurrent(4.4 only) and NOT phonon.
Let me remove this and see what it does.
I am still building the FC9 VM.
Logged In: YES
user_id=1690671
Originator: NO
the QConcurrent stuff has been removed. Try again with the version in CVS.
my FC9 VM doesn't seem to want to build anything. What did you do to get the
phonon headers working?
Logged In: YES
user_id=1951906
Originator: NO
1. Add INCLUDEPATH += /usr/include/kde4 to uniXM.pro
You did install kdelibs-devel?
2. qmake-qt4
3. make
I get to this:
g++ -m64 -o uniXM main.o uniXM.o XMconnect.o XMplayer.o moc_uniXM.o moc_XMconnect.o moc_XMplayer.o -lQtGui -lQtNetwork -lQtCore -lpthread
XMplayer.o: In function `XM_PLAYER::delayedInit()':
/home/nbecker/unixm/XMplayer.cpp:64: undefined reference to `Phonon::MediaObject::MediaObject(QObject*)'
/home/nbecker/unixm/XMplayer.cpp:65: undefined reference to `Phonon::AudioOutput::AudioOutput(Phonon::Category, QObject*)'
/home/nbecker/unixm/XMplayer.cpp:66: undefined reference to `Phonon::createPath(Phonon::MediaNode*, Phonon::MediaNode*)'
/home/nbecker/unixm/XMplayer.cpp:66: undefined reference to `Phonon::Path::~Path()'
/home/nbecker/unixm/XMplayer.cpp:55: undefined reference to `Phonon::MediaObject::MediaObject(QObject*)'
/home/nbecker/unixm/XMplayer.cpp:56: undefined reference to `Phonon::AudioOutput::AudioOutput(Phonon::Category, QObject*)'
XMplayer.o: In function `XM_PLAYER::play(QString)':
/home/nbecker/unixm/XMplayer.cpp:45: undefined reference to `Phonon::MediaSource::MediaSource(QUrl const&)'
/home/nbecker/unixm/XMplayer.cpp:45: undefined reference to `Phonon::MediaObject::setCurrentSource(Phonon::MediaSource const&)'
/home/nbecker/unixm/XMplayer.cpp:45: undefined reference to `Phonon::MediaSource::~MediaSource()'
/home/nbecker/unixm/XMplayer.cpp:46: undefined reference to `Phonon::AudioOutput::setVolume(double)'
/home/nbecker/unixm/XMplayer.cpp:45: undefined reference to `Phonon::MediaSource::~MediaSource()'
XMplayer.o: In function `XM_PLAYER::mute(bool)':
/home/nbecker/unixm/XMplayer.cpp:89: undefined reference to `Phonon::AudioOutput::setMuted(bool)'
XMplayer.o: In function `XM_PLAYER::setVolume(int)':
/home/nbecker/unixm/XMplayer.cpp:83: undefined reference to `Phonon::AudioOutput::setVolume(double)'
XMplayer.o: In function `XM_PLAYER::stop()':
/home/nbecker/unixm/XMplayer.cpp:73: undefined reference to `Phonon::MediaObject::stop()'
collect2: ld returned 1 exit status
Not sure which lib is missing
Logged In: YES
user_id=1690671
Originator: NO
thats the phonon stuff, just have to wait for 4.4 to go up. Fedora
is usually pretty bleeding edge, so it should come soon.
Logged In: YES
user_id=1951906
Originator: NO
Ah, found it!
Add -lokularcore. Now it links, and it's running!
Logged In: YES
user_id=1951906
Originator: NO
Actually, 2 problems:
1) /usr/lib64/libphonon.so -> libphonon.so.4.0.4 was missing.
2) Instead of adding -lokular, use -lphonon (that makes a lot more sense - I didn't find -lphonon because the link was missing).