Opened 14 years ago

Closed 14 years ago

#23716 closed defect (fixed)

Amarok fails to build because it cannot find qtbindings

Reported by: mark.gaylard@… Owned by: illogic-al@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: ray.j@…, thomas.weiss@…, a.vincelli@…, bgdotmail+macports@…, michaelld (Michael Dickens)
Port: amarok

Description

Amarok is failing to compile with the following message

-----------------------------------------------------------------------------
-- The following REQUIRED packages could NOT be located on your system.
-- You must install these packages before continuing.
-----------------------------------------------------------------------------
   * qtscript-qt  <http://code.google.com/p/qtscriptgenerator/>
     QtScript Qt Bindings

qtscriptgenerator is installed. The output says to run

cd cmake/modules/bindingstest; mkdir build; cd build; cmake ..; make; ./bindingstest; echo $?

which I have done and it returns 0, so I think it is happy.

I've attached the output from sudo port -dv install amarok

I have also tried uninstalling and cleaning the the kde and qt ports and getting amarok to install them as its deps.

Attachments (1)

output.txt (233.7 KB) - added by mark.gaylard@… 14 years ago.

Download all attachments as: .zip

Change History (16)

Changed 14 years ago by mark.gaylard@…

Attachment: output.txt added

comment:1 Changed 14 years ago by jmroot (Joshua Root)

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

Please remember to cc the maintainer.

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

Cc: ray.j@… added

Cc reporter of duplicate #23722.

comment:3 Changed 14 years ago by mark.gaylard@…

If I run port -dv install amarok (no sudo) then amarok compiles but can't install. Running it again with sudo gives the original error.

comment:4 Changed 14 years ago by thomas.weiss@…

Cc: thomas.weiss@… added

Cc Me!

comment:5 Changed 14 years ago by pavlos@…

Hi Mark,

You said you have run the "cd cmake/modules/bindingstest; mkdir build; cd build; cmake ..; make; ./bindingstest; echo $?" commands and got 0. Have you run them under root? Probably not. If this is the case, I think I have found the problem.

I had the same issue. It looks like dbus needs to be running for root during the installation. Probably you had started dbus for your user and this is why everything worked for him. Try to run "launchctl load /Library/LaunchAgents/org.freedesktop.dbus-session.plist" as root before you build amarok it should work (worked for me). You might need to edit the org.freedesktop.dbus-session.plist file and set the "Dissabled" key to "<false/>" before that. After build you can probably stop dbus running under root and revert the plist file.

I got several messages during the installation of the dependencies for amarok, stating the following: ########################################################## # Don't forget that dbus needs to be started as the local # user (not with sudo) before any KDE programs will launch # To start it run the following command: # launchctl load /Library/LaunchAgents/org.freedesktop.dbus-session.plist ##########################################################

I guess dbus should indeed be running as local user, but then this message is confusing.

comment:6 Changed 14 years ago by a.vincelli@…

Cc: a.vincelli@… added

Cc Me!

comment:7 Changed 14 years ago by bgdotmail+macports@…

Cc: bgdotmail+macports@… added

Cc Me!

comment:8 in reply to:  description Changed 14 years ago by hile@…

Note that after starting dbus as root, as described above, the compilation still fails: the wrong test result has been cached by cmake and it does not check it again.

To compile successfully, you should remove the file CMakeCache.txt in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/build and then start normal build, this worked for me at least.

comment:9 Changed 14 years ago by davehbenson@…

Hmm... I've started dbus as root (using sudo) and deleted CMakeCache.txt, but I'm still getting an error:


---> Computing dependencies for amarok ---> Staging amarok into destroot Error: Target org.macports.destroot returned: shell command "mv /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/destroot/opt/local/bin/amarok.app/Contents/Resources/* /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/destroot/Applications/MacPorts/KDE4/Amarok.app/Contents/Resources/" returned error 1 Command output: mv: rename /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/destroot/opt/local/bin/amarok.app/Contents/Resources/* to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/destroot/Applications/MacPorts/KDE4/Amarok.app/Contents/Resources/*: No such file or directory

Error: Status 1 encountered during processing.


Any ideas?

comment:10 Changed 14 years ago by payam.minoofar@…

I encountered the exact same error detailed in the original bug report today after receiving and compiling all of the latest packages that came through selfupdate.

comment:11 Changed 14 years ago by payam.minoofar@…

I should add that I'm building amarok as a universal binary on an iMac running 10.6.3.

comment:12 Changed 14 years ago by payam.minoofar@…

Could the problem be with automoc4 or drkonqi.app?

comment:13 Changed 14 years ago by root42

Also getting the bug with the failed mv command:

---> Staging amarok into destroot Error: Target org.macports.destroot returned: shell command "mv /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/destroot/opt/local/bin/amarok.app/Contents/Resources/* /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/destroot/Applications/MacPorts/KDE4/Amarok.app/Contents/Resources/" returned error 1 Command output: mv: rename /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/destroot/opt/local/bin/amarok.app/Contents/Resources/* to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/destroot/Applications/MacPorts/KDE4/Amarok.app/Contents/Resources/*: No such file or directory

Error: Status 1 encountered during processing.

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

Cc: michaelld@… added

Cc Me!

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

Resolution: fixed
Status: newclosed

As of r69497, Amarok is at version 2.3.1; please see ticket #25489 for more info. I don't think this ticket is relevant any longer, so I'm closing it; please verify and reopen if the original topic is still and issue.

Note: See TracTickets for help on using tickets.