Opened 14 years ago
Closed 14 years ago
#26943 closed defect (fixed)
KDE4 apps ceased working after qt4-mac upgrade, and after a while configure would not find cmake and qmake
Reported by: | ygramul.el.multiple@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | sharky@…, nicos_pavlov@…, wanthalf@…, ecbrown (Eric Brown), markus.falb@…, mkae (Marko Käning), michaelld (Michael Dickens), soehn@…, cgilles (HumanDynamo), jgosmann (Jan Gosmann), strassh@…, julien@…, pantxo.diribarne@…, feurer.matthias@…, macports@… | |
Port: | kile-devel |
Description
Hello, I'm running Mac OS X Leopard, version 10.5.8; my Xcode version is 3.1.2
I had several problems today, one after another. Maybe they should constitute different tickets, but I thought it better to tell the whole story first. From the beginning:
1- Today I upgraded several ports, among them qt4-mac from version 4.6.3_6 to 4.7.0_0. Everything was fine.
2- After that I rebooted the system and tried to initiate kile (I had the kile-devel @2.1b4 installed). It failed to initiate, and when called from the terminal, it displayed the following message:
LSOpenFromURLSpec() failed with error -10810.
It was the same with other KDE4 applications, such as okular.
3- I thought that maybe the major version upgrade of qt4 was the cause, and decided to recompile kile-devel and its dependencies. My last install was with the default variant, and this time I selected the +debug variant. Macports spent a while recompiling qt4-mac and other dependencies in that variant. Everything seemed all right.
4- Suddenly, when compiling attica (@0.2.0), an error occured:
CMake Error at /opt/local/share/cmake/modules/FindQt4.cmake:1240 (MESSAGE): Qt qmake not found! Call Stack (most recent call first): lib/CMakeLists.txt:10 (find_package)
It seems not to find qmake, but it is in my path and I can use it. It also complained about phonon, though it had already been successfully compiled and installed:
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: ######################################################
I attach the log file for attica.
5- After that, I decided that I might try to recompile kile-devel without the +debug flag. I uninstalled it and installed it again. It complained again about phonon:
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: ######################################################
and then gave another error:
CMake Error at /opt/local/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE): ERROR: cmake/modules/FindKDE4Internal.cmake not found in Call Stack (most recent call first): CMakeLists.txt:5 (find_package)
cmake is installed and accessible from the shell.
7- With this, the system has found a sort of equilibrium: kile-devel won't install and attica won't install. The currently active qt4-mac and phonon ports are qt4-mac @4.7.0_0+debug+quartz and phonon @4.4.2_1+debug.
That's more or less the whole story. Seems that I did an awfully good mess today. Sorry for the chaotic ticket, but this is my first time... If you think it's better to split it, just tell me.
Thanks,
Al.
Attachments (17)
Change History (118)
Changed 14 years ago by ygramul.el.multiple@…
Attachment: | main.2.log added |
---|
comment:2 Changed 14 years ago by wanthalf@…
And more to come:
kdelibs4:
:info:configure CMake Error at cmake/modules/FindQt4.cmake:1240 (MESSAGE): :info:configure Qt qmake not found! :info:configure Call Stack (most recent call first): :info:configure cmake/modules/FindKDE4Internal.cmake:347 (find_package) :info:configure CMakeLists.txt:36 (find_package) $ qt4_select -l Available versions: current none
comment:4 Changed 14 years ago by jmroot (Joshua Root)
Cc: | snc@… sharky@… nicos_pavlov@… added; ygramul.el.multiple@… removed |
---|
Please remember to cc port maintainers. You don't need to cc yourself when you are the reporter.
comment:5 Changed 14 years ago by nicos_pavlov@…
Without having investigated too much, I think this would be expected, unfortunately. In the new qt 4.7 version, phonon seems to be now installed externally (through an independent port), and a new kde4 group was made at this occasion. The kde suite needs probably to be upgraded to this new compilation way to be functional.
comment:6 Changed 14 years ago by michaelld (Michael Dickens)
Yes, this behavior might happen & isn't unexpected. Phonon is indeed installed separately from Qt now, for various reasons. There are new qt4 1.0 and kde 1.1 portgroups to handle these changes; the goal is to slowly update the KDE4 ports to both use the 1.1 portgroup as well as to be in KDE 4.5.X (from 4.4.Y). So, thank you for being patient during this transition.
comment:10 follow-up: 12 Changed 14 years ago by mkae (Marko Käning)
Well, I was also unable to build phonon!
-- Found Qt-Version 4.7.0 (using /opt/macports-test/bin/qmake) -- Found Threads: TRUE -- Found Automoc4: /opt/macports-test/bin/automoc4 -- checking for module 'libpulse>=0.9.15' -- package 'libpulse>=0.9.15' not found -- checking for module 'libpulse-mainloop-glib' -- package 'libpulse-mainloop-glib' not found -- Could NOT find PulseAudio -- checking for module 'glib-2.0' -- package 'glib-2.0' not found CMake Error at /opt/macports-test/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message): A required package was not found Call Stack (most recent call first): /opt/macports-test/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal) cmake/FindGLIB2.cmake:16 (pkg_check_modules) cmake/MacroOptionalFindPackage.cmake:19 (FIND_PACKAGE) phonon/CMakeLists.txt:14 (macro_optional_find_package) -- Found GLIB2: /opt/local/lib/libglib-2.0.dylib -- ----------------------------------------------------------------------------- -- The following external packages were located on your system. -- This installation will have the extra features provided by these packages. + GLib2 ----------------------------------------------------------------------------- -- The following OPTIONAL packages could NOT be located on your system. -- Consider installing them to enable more features from this software. + PulseAudio: A cross-platform, networked sound server. <http://www.pulseaudio.org> Allows audio playback via the PulseAudio soundserver when it is running ----------------------------------------------------------------------------- -- Configuring incomplete, errors occurred!
comment:12 Changed 14 years ago by mkae (Marko Käning)
Replying to mk@…:
Well, I was also unable to build phonon!
I don't know anymore how it came about, but finally I was able to build and install phonon. Probably after I got attica to work normally thanks to Michael's hint concerning using kde4 portgroup 1.1 instead of the 1.0 still present in current portfile.
comment:14 Changed 14 years ago by mkae (Marko Käning)
Well, it built fine, but port shared-desktop-ontologies complain:
---> Extracting shared-desktop-ontologies 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 shared-desktop-ontologies ---> Building shared-desktop-ontologies ---> Staging shared-desktop-ontologies into destroot ---> Installing shared-desktop-ontologies @0.5_0 ---> Activating shared-desktop-ontologies @0.5_0
But it's probably only a test issue since the port is definitely installed and active.
markos-imac:qt4-mac marko$ sudo /opt/macports-test/bin/port installed phonon Password: The following ports are currently installed: phonon @4.4.2_1 (active) markos-imac:qt4-mac marko$
So, I wonder what can be done to analyze this here.
comment:15 Changed 14 years ago by nerdling (Jeremy Lavergne)
That looks like a message from the KDE PortGroup.
comment:16 Changed 14 years ago by mkae (Marko Käning)
Since installation went on no problem I just ignore this for now and wait for the last ports to finish their building. kdelibs4 is eventually the last in a few minutes. :)
comment:17 Changed 14 years ago by mkae (Marko Käning)
Just noticing that kdelibs4 itself in its current state needs also the change of the PortGroup to 1.1!
comment:18 follow-up: 19 Changed 14 years ago by nerdling (Jeremy Lavergne)
Also needs some configure.args dropped/changed. Still workin' on it.
comment:19 follow-up: 33 Changed 14 years ago by mkae (Marko Käning)
Replying to snc@…:
Also needs some configure.args dropped/changed. Still workin' on it.
So, this is what I got eventually from kdelibs4:
----------------------------------------------------------------------------- -- The following OPTIONAL packages could NOT be located on your system. -- Consider installing them to enable more features from this software. ----------------------------------------------------------------------------- * QCA2 (2.0.0 or higher) <http://delta.affinix.com/qca> Qt Cryptographic Architecture Needed for the plasma remote widgets functionality. * LibACL <ftp://oss.sgi.com/projects/xfs/cmd_tars> Access control list (ACL) support library STRONGLY RECOMMENDED: For manipulating access control lists. * FAM <http://oss.sgi.com/projects/fam> File Alteration Monitor Provides file alteration notification facilities using a separate service. * HSpell <http://ivrix.org.il/projects/spell-checker/> Hebrew spell checker Provides spell checking for Hebrew. ----------------------------------------------------------------------------- -- Configuring incomplete, errors occurred! shell command " cd "/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/work/build" && cmake -DCMAKE_INSTALL_PREFIX=/opt/macports-test -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_NAME_DIR=/opt/macports-test/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/macports-test;/usr" -DCMAKE_MODULE_PATH=/opt/macports-test/share/cmake/modules -Wno-dev -DBUILD_doc=OFF -DBUILD_SHARED_LIBS=ON -DBUNDLE_INSTALL_DIR=/opt/macports-test/Applications/KDE4 -DKDE_DISTRIBUTION_TEXT="MacPorts/Mac OS X" -DQT_QT_INCLUDE_DIR=/opt/macports-test/include -DQT_LIBRARY_DIR=/opt/macports-test/lib -DQT_QMAKE_EXECUTABLE=/opt/macports-test/bin/qmake -DQT_ZLIB_LIBRARY=/opt/macports-test/lib/libz.dylib -DQT_PNG_LIBRARY=/opt/macports-test/lib/libpng.dylib ../kdelibs-4.4.5 -DWITH_ENCHANT=ON -DWITH_Soprano=ON -DWITH_Avahi=ON -DKDE_DEFAULT_HOME=Library/Preferences/KDE -DWITH_HSPELL:BOOL=OFF -DPHONON_INCLUDE_DIR=/opt/macports-test/libexec/qt4-mac/lib/phonon.framework/ -DLIBXSLT_INCLUDE_DIR=/opt/macports-test/include/ -DLIBXSLT_LIBRARIES=/opt/macports-test/lib/libxslt.dylib -DLIBEXSLT_LIBRARIES=/opt/macports-test/lib/libexslt.dylib -DJASPER_INCLUDE_DIR=/opt/macports-test/include -DJASPER_LIBRARY=/opt/macports-test/lib/libjasper.dylib -DPNG_LIBRARY=/opt/macports-test/lib/libpng.dylib -DPNG_PNG_INCLUDE_DIR=/opt/macports-test/include -DQT_PNG_LIBRARY=/opt/macports-test/lib/libpng.dylib -DWITH_FAM=OFF -DCMAKE_OSX_ARCHITECTURES="x86_64" ../kdelibs-4.4.5 " returned error 1 Error: Target org.macports.configure returned: configure failure: shell command failed DEBUG: Backtrace: configure failure: shell command failed while executing "$procedure $targetname" Warning: the following items did not execute (for kdelibs4): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install Log for kdelibs4 is at: /opt/macports-test/var/macports/logs/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/main.log Error: Status 1 encountered during processing.
:-(
comment:20 Changed 14 years ago by michaelld (Michael Dickens)
I'm attaching a diff to the current SVN portfile for kdelibs4 that works for me. I can't (re)verify this port right now because some !@#$ dependency is messed up, but I think the various options were found -- using otool on the installed software shows that at least QCA was found & linked in. Great conversation, btw.
comment:21 Changed 14 years ago by nerdling (Jeremy Lavergne)
michaelld: you might want to check that diff ;-)
comment:22 Changed 14 years ago by mkae (Marko Käning)
You diff doesn't seem to be a diff. ;)
Regarding the conversation: ditto!!! ;)
comment:23 Changed 14 years ago by mkae (Marko Käning)
Anyway, have to call it a day now. It got by far too late for tonight. Thanks so much for your efforts here! Will go on tomorrow. Bye
Changed 14 years ago by michaelld (Michael Dickens)
Attachment: | kdelibs4_Portfile.diff added |
---|
"svn diff" of kdelibs4 Portfile to use kde 1.1 portgroup (try 2)
comment:25 Changed 14 years ago by nerdling (Jeremy Lavergne)
Attaching slight tweak to your diff michael: XML stuff needs added.
Changed 14 years ago by nerdling (Jeremy Lavergne)
Attachment: | kdelibs4.diff added |
---|
comment:26 Changed 14 years ago by nerdling (Jeremy Lavergne)
I'm also curious if you have input on this line:
-DQT_QTGUI_LIBRARY=${prefix}/libexec/qt4-mac/lib/QtGui.framework/QtGui \
comment:28 Changed 14 years ago by michaelld (Michael Dickens)
oh; I see it now. Replace it with ${qt_cmake_defines} for now & see if it works -- it should.
comment:29 Changed 14 years ago by michaelld (Michael Dickens)
ah; you're upgrading to 4.5 as well as moving to kde 1.1 portgroup. nice.
comment:30 Changed 14 years ago by nerdling (Jeremy Lavergne)
I do try :-) All the patches you kept giving me has let me keep up on most things! Sadly, now mpfr is wanting to update. FML.
comment:31 Changed 14 years ago by michaelld (Michael Dickens)
Glad to be of help! I always hope I don't mess things up too much ;) I'm calling it a day too. More fun tomorrow, though not as much as today.
comment:32 Changed 14 years ago by nerdling (Jeremy Lavergne)
At least you weren't also running the regional systems for the ACM contest :p
comment:33 follow-up: 35 Changed 14 years ago by mkae (Marko Käning)
Replying to mk@…:
After the previous two patches kdelibs4 finally builds itself... :)
Regarding my config output's snip-out in comment 19 I just want to hear your opinion about the 4 optional packages. Are they really necessary for a MacPorts port?
comment:34 Changed 14 years ago by mkae (Marko Käning)
It finally installed successfully
markos-imac:kdelibs4 marko$ sudo /opt/macports-test/bin/port installed kdelibs4 Password: The following ports are currently installed: kdelibs4 @4.5.2_0 (active)
Does this mean, that we finally can close this ticket?
Changed 14 years ago by mkae (Marko Käning)
Attachment: | shared-desktop-ontologies.diff added |
---|
Replying to mk@…: Just for the sake of completeness
comment:35 Changed 14 years ago by nerdling (Jeremy Lavergne)
Replying to mk@…:
Regarding my config output's snip-out in comment 19 I just want to hear your opinion about the 4 optional packages. Are they really necessary for a MacPorts port?
MacPorts == kitchensink.
Unless it's a dubious build process for the dependencies, they will be included to provide more apps in KDE. Sadly, the dependency tree is masked: if you don't include something now, KDE_ will not provide some of its applications. A nuisance.
comment:36 Changed 14 years ago by mkae (Marko Käning)
I am thunderstruck!!'''
After I had kdelibs4 already installed today I get this on a new try to install it:
:debug:destroot destroot phase started at Sun Oct 24 20:43:38 CEST 2010 :debug:destroot Executing org.macports.destroot (kdelibs4) :debug:destroot Environment: CPATH='/opt/macports-test/include' CC_PRINT_OPTIONS_FILE='/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/work/.CC_PRINT_OPTIONS' QTDIR='/opt/macports-test' LIBRARY_PATH='/opt/macports-test/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6' INSTALL_ROOT='/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/work/destroot' DESTDIR='/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/work/destroot' MOC='/opt/macports-test/bin/moc' QMAKE='/opt/macports-test/bin/qmake' :debug:destroot Assembled command: 'cd "/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/work/kdelibs-4.5.2" && /usr/bin/make install DESTDIR=/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/work/destroot' :info:destroot make: Nothing to be done for `install'. :debug:destroot Executing portdestroot::destroot_finish :error:destroot No files have been installed in the destroot directory! :error:destroot Please make sure that this software supports 'make install DESTDIR=${destroot}' or implement an alternative destroot mechanism in the Portfile. :error:destroot Files might have been installed directly into your system, check before proceeding. :error:destroot Target org.macports.destroot returned: can't read "portname": no such variable :debug:destroot Backtrace: can't read "portname": no such variable while executing "return -code error "Staging $portname into destroot failed"" (procedure "portdestroot::destroot_finish" line 39) invoked from within "$postrun $targetname" :info:destroot Warning: the following items did not execute (for kdelibs4): org.macports.activate org.macports.destroot org.macports.install :notice:destroot Log for kdelibs4 is at: /opt/macports-test/var/macports/logs/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/main.log
comment:37 Changed 14 years ago by nerdling (Jeremy Lavergne)
Looks like you still have your build directory from the previous build ... notice the "nothing to be done" message?
comment:38 Changed 14 years ago by mkae (Marko Käning)
Look this is the history:
689 sudo /opt/macports-test/bin/port extract 690 sudo /opt/macports-test/bin/port configure 691 sudo /opt/macports-test/bin/port build 692 sudo /opt/macports-test/bin/port destroot 693 sudo /opt/macports-test/bin/port install 694 vi /opt/macports-test/var/macports/logs/_Users_marko_WC_MacPorts_ports_kde_kdelibs4/main.log
I always did this step by step. Why is it suddenly not possible to use the build for the destroot phase?
comment:39 Changed 14 years ago by nerdling (Jeremy Lavergne)
I'll do what you did for kdegames (the one I'm working on presently) and see if I can replicate the behavior. My only guess is that destroot was already done. We'll check and see.
comment:40 Changed 14 years ago by mkae (Marko Käning)
Well, but the same would have happened if I'd have called "port install", you know.
Now, after having "port clean"ed and then "port install"ed kdelibs4, all is FINE AGAIN!!!
It is installed just fine.
Could it be that this has to do with the new KDE port group 1.1?
Please also mind the line
:error:destroot Target org.macports.destroot returned: can't read "portname": no such variable :debug:destroot Backtrace: can't read "portname": no such variable
above!!!
comment:42 Changed 14 years ago by wanthalf@…
Finally I managed to compile attica (a lot of qt4-mac reactivations and strange qt4-select magic), but there is still problem with "qjson": complains about missing qmake and phonon. How did you compile it?
comment:43 Changed 14 years ago by wanthalf@…
I see, qjson was the last one that is not updated yet... Sorry, fixed locally.
comment:44 follow-up: 46 Changed 14 years ago by cgilles (HumanDynamo)
Hi all,
I just installed MacPorts to my new MacBook and try to install kdelibs4 package. I get the same configure problem about qmake.
If i cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_phonon/main.log, it said that qmake cannot be found by FindQt4.cmake script...
Gilles Caulier digiKam project http://www.digikam.org
Changed 14 years ago by cgilles (HumanDynamo)
Attachment: | mactrace.txt added |
---|
fresh kdelibs4 install trace
comment:46 Changed 14 years ago by nerdling (Jeremy Lavergne)
Replying to caulier.gilles@…:
Your issue is with phonon, not KDE ...
comment:47 follow-up: 49 Changed 14 years ago by cgilles (HumanDynamo)
Sure Phonon... but as Phonon is used indeep by KDELibs. This is a problem to compile and install KDELibs...
Gilles Caulier
comment:48 Changed 14 years ago by wanthalf@…
I had the same problems with qt4-mac... I think that qt4_select does not cooperate well anymore. I think the last thing I did was selecting "none" as the selected implementation of Qt and then deactivating and re-activating qt4-mac installation. But I also tried removing some links manually before. I also had to uninstall Qt 4.6.3 completely, but you are not upgrading, but doing a fresh install if I got it right...?
comment:49 Changed 14 years ago by nerdling (Jeremy Lavergne)
Replying to caulier.gilles@…:
Let me know when you get to an error with KDE.
comment:50 Changed 14 years ago by cgilles (HumanDynamo)
To wanthalf : yes, it's a fresh install, done this morning...
Note : my goal is to compile and install digiKam/kipi-plugins to check application and current source code.
Gilles Caulier
comment:51 Changed 14 years ago by ygramul.el.multiple@…
Yes, I also tried yesterday to install kile-devel again and got the same complaint about qmake. This time was qjson who complained :-(
comment:52 Changed 14 years ago by wanthalf@…
Yes. "qjson" still contains "PortGroup kde4 1.0". You can change it manually to 1.1 and it will work. But phonon should be OK, so it is probably problem of the qt4-mac activation and some links that are not correctly created...
comment:53 Changed 14 years ago by nerdling (Jeremy Lavergne)
I talked with Michael of qt4 fame: qt4_select shouldn't do anything with the current qt4-mac.
As for qjson, it was updated over 24 hours ago in r72780. Please do selfupdate.
comment:54 Changed 14 years ago by nicos_pavlov@…
I could install kile-devel today, and it seems to work, provided that slight changes are made to the portfile (see below). However, some problems seem still to be present with kdegraphics4. Okular can't be launched, giving the error:
okular(3935)/kdecore (kdelibs) getBundle: getBundle( "/opt/local/lib/kde4/libexec/drkonqi" , false ) called okular(3935)/kdecore (kdelibs) getBundle: getBundle(): returning "/opt/local/lib/kde4/libexec/drkonqi.app/Contents/MacOS/drkonqi" okular(3935)/kdecore (KLibrary) kde4Factory: The library "/opt/local/lib/kde4/okularpart.so" does not offer a qt_plugin_instance function. okular(3935)/kdecore (KLibrary) kde3Factory: The library "/opt/local/lib/kde4/okularpart.so" does not offer an "init_okularpart" function.
I could not find easily the cause of this issue, but I would assume that some steps during configuration prevent some code to be compiled.
Changed 14 years ago by nicos_pavlov@…
Attachment: | patch-Portfile-kile-devel.diff added |
---|
comment:55 Changed 14 years ago by nicos_pavlov@…
Replying to nicos_pavlov@…:
I could install kile-devel today, and it seems to work, provided that slight changes are made to the portfile (see below). However, some problems seem still to be present with kdegraphics4. Okular can't be launched.
Sorry, this error was irrelevant. It is just that qimageblitz had not yet been upgraded with kde 1.1 portgroup on my system. With this upgrade, I can confirm that kile-devel port is working fine, along with okular.
comment:56 follow-up: 61 Changed 14 years ago by ygramul.el.multiple@…
Hi guys, with the new update, qjson built all right. But kdelibs4 seems not to find it... well, I don't understand completely what it's complaining about. I leave you here the last lines of my terminal output:
(Soprano::PluginManager) found no soprano plugin at "/opt/local/lib/soprano/libsoprano_raptorparser.so" (Soprano::PluginManager) found no soprano plugin at "/opt/local/lib/soprano/libsoprano_nquadparser.so" Could not find parser plugin for encoding trig make[2]: *** [nepomuk/nuao.h] Error 1 make[1]: *** [nepomuk/CMakeFiles/nepomuk.dir/all] Error 2 make: *** [all] Error 2 shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build" && /usr/bin/make all " returned error 2 Error: Target org.macports.build returned: shell command failed DEBUG: Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" Warning: the following items did not execute (for kdelibs4): org.macports.destroot org.macports.build Log for kdelibs4 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/main.log DEBUG: Registry error: qjson not registered as installed & active. while executing "registry::active $portname" Error: Unable to upgrade port: 1 DEBUG: upgrade kdelibs4 failed while executing "macports::_upgrade_mport_deps $mport $target" (procedure "mportexec" line 26) invoked from within "mportexec $workername $target" Error: Unable to execute port: upgrade kdelibs4 failed
and attach the log file for kdelibs4.
Changed 14 years ago by ygramul.el.multiple@…
Attachment: | kdelibs4.log.gz added |
---|
Gzipped log for kdelibs4
comment:57 Changed 14 years ago by mkae (Marko Käning)
Hi, this is what I found and described also in issue #26980 !
I wonder what's causing it.
TRY THIS: sudo port clean; sudo port install kdelibs4
AND I FORESAY: it will build and install fine!!!
Keep us posted!
comment:58 Changed 14 years ago by ygramul.el.multiple@…
Sigh. It seems that id didn't work this time :-( I port-clean'ed kdelibs4 and then asked port to install just kdelibs4, but it failed again:
(Soprano::PluginManager) found no soprano plugin at "/opt/local/lib/soprano/libsoprano_raptorparser.so" (Soprano::PluginManager) found no soprano plugin at "/opt/local/lib/soprano/libsoprano_nquadparser.so" Could not find parser plugin for encoding trig make[2]: *** [nepomuk/nuao.h] Error 1 make[1]: *** [nepomuk/CMakeFiles/nepomuk.dir/all] Error 2 make: *** [all] Error 2 shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build" && /usr/bin/make all " returned error 2 Error: Target org.macports.build returned: shell command failed DEBUG: Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" Warning: the following items did not execute (for kdelibs4): org.macports.activate org.macports.build org.macports.destroot org.macports.install Log for kdelibs4 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/main.log Error: Status 1 encountered during processing.
Remember, though, that I'm trying to compile the +debug variant. Maybe this is related to that. Or should I have clean'ed more ports?
comment:59 Changed 14 years ago by mkae (Marko Käning)
I am sorry, I see only now that the issue #26980 is not related to your problem. Sorry. I didn't have problems with soprano as you seem to have here. Also I didn't try the debug version.
Mind the error message concerning qjson above. It looks like it is not correctly installed on your system.
i guess your qjson is also upgraded to PortGroup 1.1...
comment:60 Changed 14 years ago by ygramul.el.multiple@…
Don't worry, it was worth trying :-) but the thing is... I don't know exactly what happens now, because port says that qjson is installed and active, and so is soprano...
Hmmm, now I notice that qjson was not compiled in the +debug variant. But it should have, because it was installed in a dependency chain for kile-devel+debug... I think I'm going to recompile it and see if then kdelibs4 builds.
I tell you in a while!
comment:61 Changed 14 years ago by nerdling (Jeremy Lavergne)
Replying to ygramul.el.multiple@…:
I'd say let's go with the obvious first: does the file (/opt/local/lib/soprano/libsoprano_raptorparser.so
) exist?
comment:62 Changed 14 years ago by ygramul.el.multiple@…
Yes, it's there. My soprano version, according to port, is soprano @2.5.2_1+debug (active).
By the way, qjson compiled all right in the +debug variant. Let's see if kdelibs4 builds now...
comment:63 follow-up: 64 Changed 14 years ago by nicos_pavlov@…
Replying to ygramul.el.multiple@…:
Sigh. It seems that id didn't work this time :-( I port-clean'ed kdelibs4 and then asked port to install just kdelibs4, but it failed again:
> (Soprano::PluginManager) found no soprano plugin at "/opt/local/lib/soprano/libsoprano_raptorparser.so" > (Soprano::PluginManager) found no soprano plugin at "/opt/local/lib/soprano/libsoprano_nquadparser.so"
I had similar problems. I don't know the reason, but I recompiled raptor and soprano, and then everything went fine. You could perhaps give it a shot.
comment:64 Changed 14 years ago by ygramul.el.multiple@…
Replying to nicos_pavlov@…:
Replying to ygramul.el.multiple@…:
Sigh. It seems that id didn't work this time :-( I port-clean'ed kdelibs4 and then asked port to install just kdelibs4, but it failed again:
> (Soprano::PluginManager) found no soprano plugin at "/opt/local/lib/soprano/libsoprano_raptorparser.so" > (Soprano::PluginManager) found no soprano plugin at "/opt/local/lib/soprano/libsoprano_nquadparser.so"I had similar problems. I don't know the reason, but I recompiled raptor and soprano, and then everything went fine. You could perhaps give it a shot.
Yeah, in fact it didn't work either with the 'new' qjson. I will try recompiling these two...
comment:65 Changed 14 years ago by ygramul.el.multiple@…
Hey guys, something new and something old happened. The new thing is that kdelibs4 built after recompiling soprano; I uninstalled all copies of soprano I had and clean'ed all the build directories and then soprano and kdelibs4 compiled OK.
The old thing is that kile-devel still doesn't build. It complained again about not finding phonon:
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: ######################################################
and about qmake:
CMake Error at /opt/local/share/apps/cmake/modules/FindQt4.cmake:1249 (MESSAGE): Qt qmake not found! Call Stack (most recent call first): /opt/local/share/apps/cmake/modules/FindKDE4Internal.cmake:399 (find_package) /opt/local/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE) CMakeLists.txt:5 (find_package)
Also, okular crashes at the start. The icon appears in the dock and immediately disappears, this time silently; no messages also in the terminal.
So... back at the start?
Changed 14 years ago by cgilles (HumanDynamo)
Attachment: | mactrace2.txt added |
---|
compilation trace of kdelibs + kdeedu
comment:66 Changed 14 years ago by cgilles (HumanDynamo)
I'm back on this file after one day of fight to install KDELibs.
It work now... for KDELibs. Look my trace with all operations done to complete the job. it's instructive for new macports users...
To resume, you need to clean some depency, and update macports repository.
But now, new problem come... i want to install kdebase4 to be able to use kate editor and kdeedu4 to use marble globe viewer, and both won't to install. Look like a qimageblitz failure...
Gilles Caulier
Changed 14 years ago by mark6691@…
Attachment: | main.3.log added |
---|
comment:67 Changed 14 years ago by mark6691@…
The above attachment is mine from yet another attempt at installing kdenllive. This is from a fresh subversion install of MacPorts and going straight to install kdenlive. This time everything came in and ended when it hit "Qt qmake not found!". I tried to deactivate Qt4-mac but:
sudo port deactivate qt4-mac Password: ---> Deactivating qt4-mac @4.7.0_0+quartz ---> Unable to uninstall/deactivate qt4-mac @4.7.0_0+quartz, the following ports depend on it: ---> attica @0.2.0_1 ---> automoc @0.9.88_3 ---> dbusmenu-qt @0.6.2_1 ---> kdebase4-runtime @4.5.2_0 ---> kdelibs4 @4.5.2_0 ---> mlt @0.5.10_0 ---> oxygen-icons @4.5.2_0 ---> phonon @4.4.2_1 ---> qimageblitz @0.0.6_0 ---> qjson @0.7.1_1 ---> shared-desktop-ontologies @0.5_1 ---> soprano @2.5.2_1 Error: Target org.macports.deactivate returned: Please uninstall the ports that depend on qt4-mac first. Log for qt4-mac is at: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_qt4-mac_4.7.0_0+quartz/main.log Warning: Failed to execute portfile from registry for qt4-mac @4.7.0_0+quartz ---> Deactivating qt4-mac ---> Unable to uninstall/deactivate qt4-mac @4.7.0_0+quartz, the following ports depend on it: ---> attica @0.2.0_1 ---> automoc @0.9.88_3 ---> dbusmenu-qt @0.6.2_1 ---> kdebase4-runtime @4.5.2_0 ---> kdelibs4 @4.5.2_0 ---> mlt @0.5.10_0 ---> oxygen-icons @4.5.2_0 ---> phonon @4.4.2_1 ---> qimageblitz @0.0.6_0 ---> qjson @0.7.1_1 ---> shared-desktop-ontologies @0.5_1 ---> soprano @2.5.2_1 Error: port deactivate failed: Please uninstall the ports that depend on qt4-mac first.
So most of the above dependencies are installed, but qmake is the newest stumbling block for me.
Mark Szymanski
comment:68 follow-up: 69 Changed 14 years ago by nerdling (Jeremy Lavergne)
kdenlive likely needs the portgroup updated to 1.1, the configure.args should also drop ../${distname}.
comment:69 Changed 14 years ago by mark6691@…
Replying to snc@…:
kdenlive likely needs the portgroup updated to 1.1, the configure.args should also drop ../${distname}.
Is that something that I should be able to do. If so, how? My knowledge in this area is quite limited.
comment:70 Changed 14 years ago by nerdling (Jeremy Lavergne)
You can give it a spin with sudo port edit kdenlive
. There should be a ticket opened and assigned to the maintainer asking for these changes. At the very least starts the 72 hour counter :-)
comment:71 follow-up: 72 Changed 14 years ago by mkae (Marko Käning)
Or you could learn from the MacPorts Guide how to set up your own local MacPorts tree. There you could edit yourself those Portfiles which you want to update. Then it's only a matter of a little kdenlive/Portfile.diff, which we could supply to you. ;-)
comment:72 Changed 14 years ago by mark6691@…
Replying to mk@…:
Or you could learn from the MacPorts Guide how to set up your own local MacPorts tree. There you could edit yourself those Portfiles which you want to update. Then it's only a matter of a little kdenlive/Portfile.diff, which we could supply to you. ;-)
Sounds like a deal to me. Working... and thanks.
comment:73 follow-up: 74 Changed 14 years ago by mkae (Marko Käning)
Do I understand right that you already have kdelive's Portfile patched, build and installed? (Wow, you're fast!)
Changed 14 years ago by mark6691@…
Changed 14 years ago by mark6691@…
Attachment: | Portfile-kdenlive.diff added |
---|
comment:74 Changed 14 years ago by mark6691@…
Replying to mk@…:
Do I understand right that you already have kdelive's Portfile patched, build and installed? (Wow, you're fast!)
Sheepish, I wish... I meant I was ready to dive right in and have at it, but a complete rookie like me badly needs to learn the language here. Going through the MacPorts Guide confuses the purety hl out of me. I did use the browser to go into the repository, copy the kdenlive portfile, paste it into Textedit, change the PortGroup line to version 1.1, and save it to a temp dir. Then I copied the kdenlive Portfile on my machine to Portfile.orig and copied mine over the original Portfile. Used the diff command to create Portfile-kdenlive.diff. But I don't know if I've made a mess or just spun my wheels, cause I'm not sure just what the heck to do next. I'm attaching my Portfile (and my diff) which Is like the original except for changing one digit.
Please don't laugh too hard...:)
comment:75 Changed 14 years ago by mkae (Marko Käning)
Well, to actually be able to do updates like this on your own system you would need to create your own macports tree following section 4.6 of the Guide. If that is set up correctly on your system you can directly modify your local Portfile, run portindex as described and your "port" command will from now on consider your Portfile version as the one to depend on.
(No, I am not laughing, since I started - like you - also from scratch myself half a year ago.)
comment:76 Changed 14 years ago by nerdling (Jeremy Lavergne)
First and foremost, Portfiles are plaintext documents.
comment:77 Changed 14 years ago by mark6691@…
I see. This will definitely take a little time but it doesn't seem too daunting. I have to take a few hours sabbatical to attend an event before I can really sink my teeth into it, but I'll post back. Thanks, guys, for the pointers. I was not sure what type of document a Portfile was, so that helps to know that. Also, the page describes ${prefix}/etc/macports. I'm guessing that ${prefix} actually references /opt/local, as that is the only place I see /etc/macports containing source.conf.
Will check back later tonight, thanks.
Mark
comment:78 Changed 14 years ago by mkae (Marko Käning)
You are right about the prefix. :) Good luck.
BTW, you should carry this discussion over onto the mailing list to spare this ticket too much unrelated entries.
comment:80 Changed 14 years ago by cgilles (HumanDynamo)
I all,
I'm back with KDE4 installation from macports reporsitory.
I successfully install KDELibs and others KDE4 packages. digiKam compile and install fine. You can see the story there :
https://trac.macports.org/ticket/25176
digiKam and kipi-plugins compile and run fine :
http://www.flickr.com/photos/digikam/5129238658/sizes/o/in/photostream/
But, it still a KDE4 package which refuse to be installed on my Macbook : kdebase4-workspace
I join a trace to hack...
Gilles Caulier
Changed 14 years ago by cgilles (HumanDynamo)
Attachment: | kdebase4-workspace-trace.txt added |
---|
uncomplete kdebase4-workspacevconfigure trace
comment:81 Changed 14 years ago by nerdling (Jeremy Lavergne)
That one's not been updated in a while. I'll check it out today.
comment:82 follow-ups: 83 85 Changed 14 years ago by ygramul.el.multiple@…
I was thinking... about kile-devel, I see it's still in PortGroup 1.0. Is that the cause of the issues with phonon and qmake?
comment:83 Changed 14 years ago by nerdling (Jeremy Lavergne)
Replying to ygramul.el.multiple@…: Likely
comment:84 Changed 14 years ago by nerdling (Jeremy Lavergne)
So it seems kdebase4-workspace makes use of ar, bzr, cvs, git, and hg -- without explicitly having them marked as dependencies. Bleh.
Also, I was unable to (short of giving it the paths for everything) get these packages to be found:
- polkit-qt
- networkmanager
- x11 compositing stuff
- xft2.
I'll disable them and drop them from the dependencies for now.
There's also a series of ports not available that I'll disable as well--speeds up configure time:
- google gadgets
- qedje
- lm sensors
- libxss [screen saver?]
- bluez
comment:85 follow-up: 86 Changed 14 years ago by nerdling (Jeremy Lavergne)
Replying to ygramul.el.multiple@…: kile-devel updated in r72985.
comment:86 Changed 14 years ago by ygramul.el.multiple@…
Replying to snc@…:
Replying to ygramul.el.multiple@…: kile-devel updated in r72985.
Thanks! With this update, kile-devel passes the configure phase :-)
But I now get an error in the build phase:
/bin/sh: line 1: 19787 Segmentation fault /opt/local/bin/meinproc4 --check --cache index.cache.bz2 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_kile-devel/work/kile-2.1b4/doc/index.docbook make[2]: *** [doc/index.cache.bz2] Error 139 make[1]: *** [CMakeFiles/docbooks.dir/all] Error 2 make: *** [all] Error 2
I don't know if this error will be related to the portgroup upgrade... maybe I should file a new ticket for this?
Changed 14 years ago by cgilles (HumanDynamo)
Attachment: | kdegraphics4-trace.txt added |
---|
kdegraphics4 compilation trace with errors
comment:87 follow-up: 89 Changed 14 years ago by cgilles (HumanDynamo)
I continue to test KDE4 packages. New one with a compilation failure is kdegraphics4
See my trace attached for details.
Gilles Caulier
comment:88 Changed 14 years ago by cgilles (HumanDynamo)
Amarok package also won't compile on my computer. See my attached trace for details.
Gilles Caulier
Changed 14 years ago by cgilles (HumanDynamo)
Attachment: | amarok-trace.txt added |
---|
Amarok compilation trace uncomplete due to qtscriptgenerator
comment:89 follow-up: 91 Changed 14 years ago by nerdling (Jeremy Lavergne)
Replying to caulier.gilles@…: Gilles, you might consider rebuilding exiv2 and trying again. It seems it isn't providing things to kdegraphics quite right.
comment:90 Changed 14 years ago by nerdling (Jeremy Lavergne)
Cc: | snc@… removed |
---|---|
Port: | attica removed |
If you get any issues with KDE ports maintained by me, please open a new ticket. This one is more-or-less done except for a few stragglers: they should have tickets opened for them.
comment:91 Changed 14 years ago by cgilles (HumanDynamo)
Replying to snc@…:
Replying to caulier.gilles@…: Gilles, you might consider rebuilding exiv2 and trying again. It seems it isn't providing things to kdegraphics quite right.
You certainly mean libKeXiv2 from kdegraphics libs, not Exiv2 library,
libkexiv2 is a QT4/KDE4 interface for Exiv2. On my computer, i use exiv2 code from svn trunk; as i"m Exiv2 developer too...
Gilles Caulier
comment:92 Changed 14 years ago by cgilles (HumanDynamo)
This morning, i installed macports to a friend macbook, without any trace of macports...
installing kdelibs4, it crying about QT4 :
:info:configure -- Looking for QT_MAC_USE_COCOA - found :info:configure sh: line 1: 77533 Trace/BPT trap 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 -DKDE_DISTRIBUTION_TEXT="MacPorts/Mac OS X" -DQT_QT_INCLUDE_DIR=/opt/local/include -DQT_LIBRARY_DIR=/opt/local/lib -DQT_QMAKE_EXECUTABLE=/opt/local/bin/qmake -DQT_ZLIB_LIBRARY=/opt/local/lib/libz.dylib -DQT_PNG_LIBRARY=/opt/local/lib/libpng.dylib -DCMAKE_OSX_ARCHITECTURES="x86_64" ../automoc4-0.9.88 :info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_automoc/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 -DKDE_DISTRIBUTION_TEXT="MacPorts/Mac OS X" -DQT_QT_INCLUDE_DIR=/opt/local/include -DQT_LIBRARY_DIR=/opt/local/lib -DQT_QMAKE_EXECUTABLE=/opt/local/bin/qmake -DQT_ZLIB_LIBRARY=/opt/local/lib/libz.dylib -DQT_PNG_LIBRARY=/opt/local/lib/libpng.dylib -DCMAKE_OSX_ARCHITECTURES="x86_64" ../automoc4-0.9.88 " returned error 133 :error:configure Target org.macports.configure returned: configure failure: shell command failed :debug:configure Backtrace: configure failure: shell command failed
while executing
"$procedure $targetname"
It sound a new version of qt4-mac package have been created.
On my macbook, trying again to install kdegraphics4, i see Qt4-mac is updated. kdegraphics4 crying with the same error when Qt4 is detected.
So, something is broken with macports Qt4 package. Right ?
Gilles Caulier
comment:99 Changed 14 years ago by michaelld (Michael Dickens)
Are the various ports mentioned in this ticket working for everyone yet? I know we've recently checked in fixes for kdelibs4, kdegraphics4, amarok, attica, and kile-devel. kdenlive is being addressed in another ticket.
comment:100 Changed 14 years ago by ygramul.el.multiple@…
For me the original problem seems to be solved. At least no one complains about cmake, phonon or attica today. kdelibs4 still do not compile, but that's being discussed in another ticket (#27198).
comment:101 Changed 14 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Very good; closing as fixed.
Log for kile-devel