Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phonon libraries can't be found on Arch Linux #26

Closed
mraspberry opened this issue Nov 23, 2014 · 6 comments
Closed

Phonon libraries can't be found on Arch Linux #26

mraspberry opened this issue Nov 23, 2014 · 6 comments

Comments

@mraspberry
Copy link

I received the following error trying to build Lumina on Arch Linux.

g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_PHONON_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/phonon -I/usr/include/qt4 -I../libLumina -I/usr/local/include -I/usr/include/qt4/phonon_compat -I. -I. -o main.o main.cpp
In file included from main.cpp:19:0:
LSession.h:21:30: fatal error: Phonon/MediaObject: No such file or directory
#include <Phonon/MediaObject>
^
compilation terminated.
Makefile:639: recipe for target 'main.o' failed
make: *** [main.o] Error 1

The reason is that the path on Arch is /usr/include/qt4/phonon, not /usr/include/qt4/Phonon. To work around the issue I created a symlink, but that doesn't seem like the ideal solution. I haven't checked this on other Linux distros to see if the issue exists there

@q5sys
Copy link
Member

q5sys commented Nov 23, 2014

This issue does exist on other Linux distros like Slackware, Fedora etc. I
have had this problem with every compile I've done, except when I tried the
most recent update that I tried while at OLF, I've talked with Ken about
this at OLF, and when he made a few updates then and we were working
through bugs at OLF, the issue didnt present itself then on a fresh install
of Fedora with the latest source from github... we assumed it had been
corrected. Have you tried the latest source package from github? If so, i
wonder how this issue was reintroduced. Or what causes the issue to be
resolve on my systems for that window of time.

On Sat, Nov 22, 2014 at 7:02 PM, Matthew Raspberry <notifications@github.com

wrote:

I received the following error trying to build Lumina on Arch Linux.

g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_PHONON_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/phonon -I/usr/include/qt4 -I../libLumina
-I/usr/local/include -I/usr/include/qt4/phonon_compat -I. -I. -o main.o
main.cpp
In file included from main.cpp:19:0:
LSession.h:21:30: fatal error: Phonon/MediaObject: No such file or
directory
#include
^
compilation terminated.
Makefile:639: recipe for target 'main.o' failed
make: *** [main.o] Error 1

The reason is that the path on Arch is /usr/include/qt4/phonon, not
/usr/include/qt4/Phonon. To work around the issue I created a symlink, but
that doesn't seem like the ideal solution. I haven't checked this on other
Linux distros to see if the issue exists there


Reply to this email directly or view it on GitHub
#26.

@mraspberry
Copy link
Author

I cloned the repository from github yesterday. HEAD is at rev d9d958c

@beanpole135
Copy link
Collaborator

That sounds like the Makefile created by qmake is not properly detecting the include path for the phonon module. If necessary, just modify the "INCLUDEPATH +=" line in the *.pro file and add the proper path to the end:
"$$PREFIX/include/qt4/Phonon"

That should force it to also use that include directory when searching for the files.

FYI: I am in the middle of converting Lumina to Qt5, and phonon does not exist in Qt5 anymore. Instead there is a new QMultimedia framework built-in to Qt5 instead of relying on an external module like Phonon - so this issue should just disappear here soon.

@rezso
Copy link
Contributor

rezso commented Dec 9, 2014

FYI, I have phonon includes under /usr/include/phonon, and /usr/include/KDE/Phonon.
The /usr/include/Phonon not exists.

@ryanpcmcquen
Copy link

Here is the fix I used for the SlackBuild:

sed -i 's@#include\ <Phonon@#include\ <phonon@g' lumina-desktop/LSession.cpp
sed -i 's@#include\ <Phonon@#include\ <phonon@g' lumina-desktop/LSession.h
sed -i 's@#include\ <Phonon@#include\ <phonon@g' lumina-fm/MainUI.h
sed -i 's@#include\ <Phonon@#include\ <phonon@g' lumina-fm/BackgroundWorker.cpp

http://slackbuilds.org/cgit/slackbuilds/tree/desktop/lumina/lumina.SlackBuild?id=e06670b2dcd55e237a21da841da193cc9f82fb91

@beanpole135
Copy link
Collaborator

FYI: The current version of the source tree is Qt5 based now and does not have/use phonon anymore.

The Qt4 tree is being preserved in the (static) qt4/0.7.2 branch of the repository for legacy purposes, but you might want to look into updating your build script to function with the Qt5 sources (the master branch), since that is the only branch getting updates.

The first official release of the Qt5 version (0.8.0) will probably be happening soon, I just have a couple last XCB/WM bugs I want to fix first (mostly regarding reserved screen space for panels).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants