vilkov / phonon-vlc-mplayer

Automatically exported from code.google.com/p/phonon-vlc-mplayer
GNU Lesser General Public License v3.0
2 stars 0 forks source link

Qt4 detection is incorrect #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
On linux with git version 8cf9345579fe0ae0c8f73689fa363d7e7ad2c436, I have
two versions of Qt4 installed, /usr/lib/qt4 and /usr/local/Qt-4.5.0. I
would like to build using the latter. I have QTDIR set to
/usr/local/Qt-4.5.0 and $QTDIR/bin is in my $PATH, however configure
detects the Qt installation at /usr/lib/qt4.

Original issue reported on code.google.com by maken...@gmail.com on 18 Dec 2008 at 11:15

GoogleCodeExporter commented 8 years ago
> On linux with git version

I don't use Git so I guess you are trying to compile the VLC backend right?
Anyway, this is related to FindQt4.cmake that comes with CMake.
I'm not a FinQt4.cmake expert but I can give you some hints :)

Under Linux, FindQt4.cmake is located inside /usr/share/cmake-2.6/Modules/
You can modify it and rerun 'cmake'
I suggest you to look around line 315, you will see:

FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 PATHS
  "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin"
  "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin"

"[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};Instal
lDir]/bin"
  $ENV{QTDIR}/bin
)

To debug and see what is going on you can use this CMake command inside 
FindQt4.cmake:

message("MYMESSAGE=" ${QT_QMAKE_EXECUTABLE})

This will show you what is inside the variable QT_QMAKE_EXECUTABLE

I guess the root of your problem is that qmake from /usr/lib/qt4 is inside your 
path
and the qmake from Qt-4.5.0 is not.

Original comment by tkrotoff on 30 Dec 2008 at 9:59