View Full Version : The error: /usr/bin/ld: cannot find -lphonon

8th September 2008, 08:18
I installed QT4.4 with phonon option.

But when I compiled the example musicplayer from phonon. It always says:
/usr/bin/ld: cannot find -lphonon

How can I set the path?

1st October 2008, 23:12
I had the same problem and fixed adding some symbolic links into the lib and include paths.

You can do something like that:

ln -s /usr/lib/kde4/lib/libphonon.so /usr/lib/libphonon.so

Theres others phonon modules at usr/lib, but for me worked only linking this one.

I also had to link the include dir that is under "/usr/lib/kde4/include/phonon" with "/usr/include/phonon" to be able compile my sources.