Opened 14 years ago

Closed 14 years ago

#27248 closed defect (fixed)

amarok - Qt qmake not found!

Reported by: strassh@… Owned by: illogic-al@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: michaelld (Michael Dickens), crashed@…, peter@…, l.laspada@…, estrai@…
Port: amarok

Description

I tried to install Amarok today (after somebody solved my problem with liblastfm).

It stop at configuration state with the message : Qt qmake not found!

See attached the full log file.

Attachments (3)

main.log (192.4 KB) - added by strassh@… 14 years ago.
main.2.log (193.8 KB) - added by dick.lam.1@… 14 years ago.
My error log - Fresh install of OS X 1.6.5 with a fresh install of macports
main3.log (197.6 KB) - added by l.laspada@… 14 years ago.

Download all attachments as: .zip

Change History (38)

Changed 14 years ago by strassh@…

Attachment: main.log added

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Cc: michaelld@… added
Owner: changed from macports-tickets@… to illogic-al@…

comment:2 Changed 14 years ago by crashed@…

Cc: crashed@… added

Cc Me!

comment:3 Changed 14 years ago by crashed@…

I'm facing the same issue, any news on that?

comment:4 Changed 14 years ago by michaelld (Michael Dickens)

Can folks on this ticket try the patch in ticket #27383 & see that helps Amarok (and other ports) find Qt4 correctly?

comment:5 Changed 14 years ago by crashed@…

patch didn't work for me. Here's what I did:

cd $(port dir cmake)
sudo patch -p0 < cmake-svn.diff
sudo port install cmake
sudo port clean amarok
sudo port -v install amarok

Here's the output of last operation:

# sudo port -v install amarok
--->  Computing dependencies for amarok.
--->  Fetching amarok
--->  Verifying checksum(s) for amarok
--->  Checksumming amarok-2.3.1.tar.bz2
--->  Extracting amarok
--->  Extracting amarok-2.3.1.tar.bz2
Error: ######################################################
Error: A copy of phonon could not be found. Please install  
Error: qt4-mac to provide this. If you have already done this 
Error: your Qt installation is missing the phonon backend.  
Error: Please reinstall Qt4 with phonon support.            
Error: ######################################################
--->  Configuring amarok
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc-4.2
-- Check for working C compiler: /usr/bin/gcc-4.2 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/g++-4.2
-- Check for working CXX compiler: /usr/bin/g++-4.2 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Taglib found: -L/opt/local/lib -ltag
-- Performing Test TAGLIB_ASF_FOUND
-- Performing Test TAGLIB_ASF_FOUND - Success
-- Performing Test TAGLIB_MP4_FOUND
-- Performing Test TAGLIB_MP4_FOUND - Success
-- Taglib-Extras found: -L/opt/local/lib -ltag-extras
-- Performing Test COMPLEX_TAGLIB_FILENAME
-- Performing Test COMPLEX_TAGLIB_FILENAME - Failed
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt-Version 4.7.1 (using /opt/local/libexec/qt4-mac/bin/qmake)
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found OpenSSL: /opt/local/lib/libssl.dylib
-- Found Automoc4: /opt/local/bin/automoc4 
-- Found Perl: /opt/local/bin/perl 
CMake Error at /opt/local/share/cmake/modules/FindPhonon.cmake:19 (file):
  file Internal CMake error when trying to open file:
  /opt/local/libexec/qt4-mac/include/phonon/phononnamespace.h for reading.
Call Stack (most recent call first):
  /opt/local/share/cmake/modules/FindPhonon.cmake:47 (_phonon_find_version)
  /opt/local/share/apps/cmake/modules/FindKDE4Internal.cmake:672 (find_package)
  /opt/local/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:73 (find_package)


-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
   used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
CMake Error at /opt/local/share/apps/cmake/modules/FindKDE4Internal.cmake:1271 (message):
  Qt compiled without support for -fvisibility=hidden.  This will break
  plugins and linking of some applications.  Please fix your Qt installation.
Call Stack (most recent call first):
  /opt/local/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:73 (find_package)


-- Configuring incomplete, errors occurred!
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/build" && cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules -Wno-dev -DBUILD_doc=OFF -DBUILD_SHARED_LIBS=ON -DBUNDLE_INSTALL_DIR=/Applications/MacPorts/KDE4 -DPHONON_INCLUDE_DIR=/opt/local/libexec/qt4-mac/include -DPHONON_LIBRARY=/opt/local/libexec/qt4-mac/lib/phonon.framework/phonon -DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4-mac/bin/qmake -DKDE_DISTRIBUTION_TEXT="MacPorts/Mac OS X" ../amarok-2.3.1 -DCMAKE_OSX_ARCHITECTURES="x86_64" " returned error 1
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Warning: the following items did not execute (for amarok): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for amarok is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

comment:6 Changed 14 years ago by michaelld (Michael Dickens)

@crashed: A few thoughts:

(1) This is progress! Qt was indeed found; it's Phonon that is an issue since the FindPhonon.cmake file seems to be requiring Phonon to be in the same install ${prefix} as Qt -- which for your install apparently it is not & hence is not found.

(2) qt4-mac 4.7.1, by default, will install Qt (without phonon) into the usual ${prefix}, not ${prefix}/libexec/qt4-mac. So I don't know what's going on with your MacPorts install but it is non-standard since 4.7.1 is indeed the latest version.

(3) The error message right after doing extract comes from the KDE 1.0 portgroup, while the latest Portfile for Amarok uses the KDE 1.1 portgroup. So, again, something odd is going on with your MacPorts install.

I would recommend doing a "sudo port selfupdate", then "sudo port clean amarok", and then trying again. In the mean time, I will look at the Phonon cmake script to see what's going on -- there is no reason phonon and Qt have to be installed into the same ${prefix} ...

comment:7 Changed 14 years ago by michaelld (Michael Dickens)

Another thought: I bet that phonon isn't even installed right now on your system, if you're using the stock qt4-mac but changed the QTDIR in the qt4 portgroup file. I think this, because the KDE 1.0 portgroup does not require phonon while the 1.1 version does. So, after the selfupdate and installing phonon I think you'll have more success.

comment:8 in reply to:  7 Changed 14 years ago by crashed@…

Replying to michaelld@…: phonon had been installed on my system - since at least kdelibs depends on it.

I did all the steps you mentioned: did selfupdate + upgrade outdated, reinstalled cmake with patch from ticket #27383, port clean amarok, port install amarok and got the same result as my previous comment.

Do you need any additional info from my side?

comment:9 Changed 14 years ago by michaelld (Michael Dickens)

Just getting started :) Is qmake still located at "/opt/local/libexec/qt4-mac/bin/qmake"? If so, what is the result of "/opt/local/libexec/qt4-mac/bin/qmake -v"? If you look in the qt4-1.0 PortGroup file (in "dports/_resources/port1.0/group/qt4-1.0.tcl"), what is "qt_dir" set to? If you look in the Amarok Portfile, what version of the KDE PortGroup is specified? That's a start; I'm sure answers to those will lead to more questions. Thanks for being so responsive; we'll figure it out.

comment:10 in reply to:  9 Changed 14 years ago by crashed@…

Replying to michaelld@…:

Let's get it started :)

Just getting started :) Is qmake still located at "/opt/local/libexec/qt4-mac/bin/qmake"?

yes

If so, what is the result of "/opt/local/libexec/qt4-mac/bin/qmake -v"?

$ /opt/local/libexec/qt4-mac/bin/qmake -v
QMake version 2.01a
Using Qt version 4.7.1 in /opt/local/lib

If you look in the qt4-1.0 PortGroup file (in "dports/_resources/port1.0/group/qt4-1.0.tcl"), what is "qt_dir" set to?

$ cat ./qt4-1.0.tcl | grep qt_dir
global qt_dir
set qt_dir              ${prefix}
set qt_docs_dir         ${qt_dir}/share/doc/${qt_name}
set qt_plugins_dir      ${qt_dir}/share/${qt_name}/plugins
set qt_mkspecs_dir      ${qt_dir}/share/${qt_name}/mkspecs
set qt_imports_dir      ${qt_dir}/share/${qt_name}/imports
set qt_includes_dir     ${qt_dir}/include
set qt_libs_dir         ${qt_dir}/lib
set qt_bins_dir         ${qt_dir}/bin
set qt_data_dir         ${qt_dir}/share/${qt_name}
set qt_translations_dir ${qt_dir}/share/${qt_name}/translations
set qt_sysconf_dir      ${qt_dir}/etc/${qt_name}
set qt_examples_dir     ${qt_dir}/share/${qt_name}/examples
set qt_demos_dir        ${qt_dir}/share/${qt_name}/demos
set qt_cmake_module_dir ${qt_dir}/share/cmake/modules
set qt_qmake_cmd        ${qt_dir}/bin/qmake
set qt_moc_cmd          ${qt_dir}/bin/moc
set qt_uic_cmd          ${qt_dir}/bin/uic
set qt_lrelease_cmd     ${qt_dir}/bin/lrelease
configure.env-append    QTDIR=${qt_dir} \
if {${qt_dir} != ${prefix}} {
    configure.env-append PATH=${qt_dir}/bin:$env(PATH)
build.env-append        QTDIR=${qt_dir} \
if {${qt_dir} != ${prefix}} {
    build.env-append    PATH=${qt_dir}/bin:$env(PATH)
destroot.env-append     QTDIR=${qt_dir} \
if {${qt_dir} != ${prefix}} {
    destroot.env-append PATH=${qt_dir}/bin:$env(PATH)
set qt_pkg_config_path ${qt_dir}/lib/pkgconfig
if {${qt_dir} != ${prefix}} {

If you look in the Amarok Portfile, what version of the KDE PortGroup is specified?

$ cat ./Portfile | grep -i portgroup
PortGroup           kde4    1.0

That's a start; I'm sure answers to those will lead to more questions. Thanks for being so responsive; we'll figure it out.

sure we'll do :)

comment:11 Changed 14 years ago by michaelld (Michael Dickens)

Interesting setup; do you know how it got like this? Qt thinks it is installed into ${prefix} while it is actually in ${prefix}/libexec/qt4-mac/ -- or, maybe just links instead of actually installed? What does "ls -lAF /opt/local/libexec/qt4-mac/bin" return? What does "port installed qt4-mac" return? What does "port installed phonon" return?

comment:12 in reply to:  11 Changed 14 years ago by crashed@…

Replying to michaelld@…:

$ ls -lAF /opt/local/libexec/qt4-mac/
total 8
drwxr-xr-x  3 root  admin  102 17 ліс 22:39 bin/
lrwxr-xr-x  1 root  admin   25 17 ліс 22:50 include@ -> /opt/local/include/phonon
drwxr-xr-x  3 root  admin  102 17 ліс 22:50 lib/

$ ls -lAF /opt/local/libexec/qt4-mac/bin/
total 8
lrwxr-xr-x  1 root  admin  20 17 ліс 22:39 qmake@ -> /opt/local/bin/qmake

$ port installed qt4-mac
The following ports are currently installed:
  qt4-mac @4.7.1_0+quartz (active)

$ port installed phonon
The following ports are currently installed:
  phonon @4.4.2_3 (active)

comment:13 in reply to:  11 ; Changed 14 years ago by crashed@…

Replying to michaelld@…:

Interesting setup; do you know how it got like this?

what I did after purchasing macbook - installed macports on a clean system (since I'm switcher from Linux) and run sudo port install amarok - nothing else.

comment:14 Changed 14 years ago by michaelld (Michael Dickens)

Interesting; what does "port provides /opt/local/libexec/qt4-mac/bin/qmake" return? What about "ls -lAF /opt/local/libexec/qt4-mac/lib"? "ls -lAF /opt/local/var/macports/software/phonon/4.4.2_3/opt/local" & "ls -lAF /opt/local/var/macports/software/qt4-mac/4.7.1_0+quartz/opt/local"?

comment:15 in reply to:  14 Changed 14 years ago by crashed@…

Replying to michaelld@…:

$ port provides /opt/local/libexec/qt4-mac/bin/qmake
/opt/local/libexec/qt4-mac/bin/qmake is not provided by a MacPorts port.

$ ls -lAF /opt/local/libexec/qt4-mac/lib
total 0
drwxr-xr-x  2 root  admin  68 17 ліс 22:50 phonon.framework/

$ ls -lAF /opt/local/var/macports/software/phonon/4.4.2_3/opt/local
total 0
drwxr-xr-x  3 root  admin  102 16 ліс 13:16 include/
drwxr-xr-x  9 root  admin  306 16 ліс 13:16 lib/
drwxr-xr-x  4 root  admin  136 16 ліс 13:16 share/

$ ls -lAF /opt/local/var/macports/software/qt4-mac/4.7.1_0+quartz/opt/local
total 0
drwxr-xr-x   20 root  admin   680 16 ліс 13:01 bin/
drwxr-xr-x   21 root  admin   714 16 ліс 13:01 include/
drwxr-xr-x  126 root  admin  4284 16 ліс 13:01 lib/
drwxr-xr-x    5 root  admin   170 16 ліс 13:01 share/

comment:16 Changed 14 years ago by michaelld (Michael Dickens)

ls -lAF /opt/local/include/phonon/phonondefs.h
ls -lAF /opt/local/include/QtCore/qglobal.h
ls -lAF /opt/local/lib/libphonon*
ls -lAF /opt/local/lib/libCore*

And

ls -lAF /opt/local/libexec/qt4-mac/lib/phonon.framework

which if "phonon" is listed, do:

port provides /opt/local/libexec/qt4-mac/lib/phonon.framework/phonon

I think we're almost there ...

comment:17 in reply to:  16 Changed 14 years ago by crashed@…

Replying to michaelld@…:

ls -lAF /opt/local/include/phonon/phonondefs.h

-rw-r--r--  2 root  admin  4136 16 ліс 13:16 /opt/local/include/phonon/phonondefs.h

ls -lAF /opt/local/include/QtCore/qglobal.h

-rw-r--r--  2 root  admin  86233 16 ліс 13:00 /opt/local/include/QtCore/qglobal.h

ls -lAF /opt/local/lib/libphonon*

-rwxr-xr-x  2 root  admin  439568 16 ліс 13:16 /opt/local/lib/libphonon.4.4.2.dylib*
lrwxr-xr-x  1 root  admin      21 16 ліс 13:16 /opt/local/lib/libphonon.4.4.dylib@ -> libphonon.4.4.2.dylib
lrwxr-xr-x  1 root  admin      21 16 ліс 13:16 /opt/local/lib/libphonon.4.dylib@ -> libphonon.4.4.2.dylib
lrwxr-xr-x  1 root  admin      21 16 ліс 13:16 /opt/local/lib/libphonon.dylib@ -> libphonon.4.4.2.dylib
-rw-r--r--  2 root  admin     707 16 ліс 13:16 /opt/local/lib/libphonon.la
-rw-r--r--  2 root  admin     897 16 ліс 13:16 /opt/local/lib/libphonon.prl

ls -lAF /opt/local/lib/libCore*

ls: /opt/local/lib/libCore*: No such file or directory

And
ls -lAF /opt/local/libexec/qt4-mac/lib/phonon.framework

empty list

which if "phonon" is listed, do:
port provides /opt/local/libexec/qt4-mac/lib/phonon.framework/phonon

I think we're almost there ...

hopefully...

comment:18 Changed 14 years ago by michaelld (Michael Dickens)

Somehow the old qt4-mac install has some legacy stuff around; really no idea why. Given how little is there, I think it's safe to do:

sudo rm -rf /opt/local/libexec/qt4-mac

and then clean Amarok and try again. I also realized that my copy of Amarok's Portfile is different than the SVN master's since I was getting ready to upgrade it to 2.3.2 & KDE 4.5.X via the KDE 1.1 portgroup. So, if the above doesn't work then give me a couple days to get everything checked in. I've got a couple other items to work through before I get to Amarok, which Amarok depends on so I can't just jump over them.

comment:19 in reply to:  13 ; Changed 14 years ago by peter@…

Replying to crashed@…:

Replying to michaelld@…:

Interesting setup; do you know how it got like this?

what I did after purchasing macbook - installed macports on a clean system (since I'm switcher from Linux) and run sudo port install amarok - nothing else.

Any progress on this? I did exactly the same on a new MacBook Air. For my new clean install /opt/local/libexec/qt4-mac does not exist.

The same configuration problem affect other ports as well. I have e.g. tried to install the kdesvn port.

kdebase4 installs fine and I can run Dolphin and KWrite.

comment:20 Changed 14 years ago by peter@…

Cc: peter@… added

Cc Me!

comment:21 in reply to:  19 Changed 14 years ago by peter@…

Replying to peter@…:

The same configuration problem affect other ports as well. I have e.g. tried to install the kdesvn port.

For cross-reference I created a ticket for kdesvn at #27543 as the issue seems to be identical.

comment:22 Changed 14 years ago by l.laspada@…

Cc: l.laspada@… added

Cc Me!

Changed 14 years ago by dick.lam.1@…

Attachment: main.2.log added

My error log - Fresh install of OS X 1.6.5 with a fresh install of macports

comment:23 in reply to:  description Changed 14 years ago by dick.lam.1@…

I also have this error, I have uploaded my main.log file also. I hope a second log file will help with the issue!

Changed 14 years ago by l.laspada@…

Attachment: main3.log added

comment:24 Changed 14 years ago by l.laspada@…

Same here, tried to install amarok on a MBP 10.6.5

I have attached the log as well, hope it might be usefull to finding a solution.

comment:25 Changed 14 years ago by michaelld (Michael Dickens)

I'm testing changes right now that should fix this ticket. Hopefully be checked in by tonight.

comment:26 Changed 14 years ago by estrai@…

Cc: estrai@… added

Cc Me!

comment:27 Changed 14 years ago by michaelld (Michael Dickens)

I just checked in r74240, which should solve this issue. Please do :

sudo port clean amarok
sudo port selfupdate
sudo port install amarok

and see if that works for you. I'm leaving this ticket open until hearing back at least one positive response.

comment:28 Changed 14 years ago by peter@…

It works for me. Compiles and runs. Thank you. Can the same changes be made to the kdesvn port (https://trac.macports.org/ticket/27543)?

Since the last update of kdelibs and kdebase a few days ago I get this error for all KDE programs: Could not start process Cannot talk to klauncher: The name org.kde.klauncher was not provided by any .service files. Any ideas? I have checked permissions in /Library/Preferences/KDE (https://trac.macports.org/ticket/25178).

comment:29 Changed 14 years ago by l.laspada@…

amarok compiles fine but I can't make it run...

I should have miss something???

How did you launch it?

comment:30 Changed 14 years ago by l.laspada@…

I mean it bounce in the dock then disapear.

comment:31 in reply to:  29 ; Changed 14 years ago by peter@…

Replying to l.laspada@…:

amarok compiles fine but I can't make it run...

I should have miss something???

How did you launch it?

I just clicked on the icon i /Applications/MacPorts/KDE4. I know, not much help for troubleshooting.

comment:32 in reply to:  31 Changed 14 years ago by l.laspada@…

I just clicked on the icon i /Applications/MacPorts/KDE4. I know, not much help for troubleshooting.

Thank you for reply.

In my case, I can see the amarok icon bouncing in the dock for around 5 seconds, then it disappear.

'sudo port install amarok' worked, dependencies seems to be installed as well.

Why is amarok not launching? Hope someone can help.

comment:33 Changed 14 years ago by michaelld (Michael Dickens)

Use a terminal window and execute "/Applications/MacPorts/KDE4/Amarok.app/Contents/MacOS/Amarok" or whatever the actual name is. I don't have Amarok.app installed right now to say exactly, but hopefully you get the idea. When you execute in the terminal, it will print out all sorts of stuff. Hopefully those messages will provide an obvious answer to your issue.

comment:34 in reply to:  28 Changed 14 years ago by michaelld (Michael Dickens)

Replying to peter@…:

It works for me. Compiles and runs. Thank you. Can the same changes be made to the kdesvn port (https://trac.macports.org/ticket/27543)?

Working on it. Having issues with subversion upgrade from x86_64 to universal. Fixing kdesvn looks straight forward once subversion is done.

Since the last update of kdelibs and kdebase a few days ago I get this error for all KDE programs: Could not start process Cannot talk to klauncher: The name org.kde.klauncher was not provided by any .service files. Any ideas? I have checked permissions in /Library/Preferences/KDE (https://trac.macports.org/ticket/25178).

Maybe try setting the permission in ~/Library/... as well?

comment:35 Changed 14 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

I'm closing this ticket as fixed; please reopen if the original issue isn't fixed for you. If Amarok (or other KDE apps) do not work for you, join in on another ticket for those issues or create a new one.

Note: See TracTickets for help on using tickets.