[MacPorts] #27128: kdelibs4 fails to build with older external qt
#27128: kdelibs4 fails to build with older external qt -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- I have Qt installed for macports and separately in /Library/Frameworks. kdelibs4 incorrectly tries to use the /Library/Frameworks version instead of the macports version. Any non-macports version should be ignored. For the most recent kdelibs4 (4.5.2) I had Qt 4.5 installed in /Library/Frameworks and Qt 4.7 in macports. kdelibs4 failed to build because it was using the Qt 4.5 from /Library/Frameworks. -- Ticket URL: <https://trac.macports.org/ticket/27128> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Changes (by jmr@…): * cc: sharky@… (added) * owner: macports-tickets@… => snc@… Comment: Please remember to cc the maintainers. -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Changes (by snc@…): * status: new => assigned Comment: Can you post your `port dir kdelibs4`/work/build/CMakeCache.txt file? I can use it quickly find the variables that need set. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Changes (by snc@…): * cc: emaguarino@… (added) Comment: Has duplicate: #27153 -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Changes (by snc@…): * cc: strassh@… (added) Comment: Has duplicate: #27133 -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Comment(by strassh@…): Ok, I uninstalled my Qt installation and the build of kdelibs4 succeeded. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Comment(by macports@…): Even after uninstalling the external Qt, building kdelibs4 failed for me because it tries to link against "/Library/Frameworks/phonon" (which does not exist). My workaround was to replace all occurrences of "-framework phonon" with "/opt/local/lib/libphonon.dylib" in all link.txt files. {{{ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/ grep -rl "framework phonon" * | xargs sed -i '' 's/ -framework phonon//' }}} this will change: interfaces/kmediaplayer/kfileaudiopreview/CMakeFiles/kfileaudiopreview.dir/link.txt, khtml/CMakeFiles/khtml.dir/link.txt, knotify/config/CMakeFiles/knotifyconfig.dir/link.txt and plasma/CMakeFiles/plasma.dir/link.txt I'm using qt4-mac@4.7.1 together with phonon@4.4.2 which does not seem to create a framework of phonon any longer (as imho older Qt versions did). At least I was able to compile kdelibs4 successfully, not yet tested if this will work, though. -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Comment(by macports@…): To successfully replace framework with libphonon.dylib the above command must be: {{{ grep -rl "framework phonon" * | xargs sed -i '' 's/ -framework phonon/ \/opt\/local\/lib\/libphonon.dylib/' }}} Sorry. -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Comment(by snc@…): Some changes were pushed in r74224 to address this, which worked for michaelld. Can you verify that they work for you as well? -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Comment(by macports@…): I can confirm that compiling kdelibs4 works for me, now (no Qt installed in /Library/Frameworks) -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Comment(by michaelld@…): Replying to [comment:11 macports@…]:
I can confirm that compiling kdelibs4 works for me, now (no Qt installed in /Library/Frameworks)
And, with no other hackery on your part -- just the current Portfiles of the various projects and dependencies? I have Nokia's Qt installed into /Library/Frameworks, as well as a few other projects that are known to compete for resouces -- intentionally to figure out ways around using them -- and all of the KDE ports that we've worked on in the last few days work for me w/o using those Frameworks (libraries / headers / resources). So, hopefully the same will hold for others. Can anyone else verify that kdelibs4 now work for them (in the sense of this ticket's issue -- finds MacPorts' qt4-mac instead of Nokia's or Fink's)? -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks -------------------------------+-------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: kdelibs4 -------------------------------+-------------------------------------------- Comment(by macports@…): Replying to [comment:12 michaelld@…]:
And, with no other hackery on your part -- just the current Portfiles of the various projects and dependencies? Yes, no hackery on my part (unfortunately kdeinit4 from kdelibs4 4.5.4 fails to start so I switched back to 4.5.3, see #21973)
-- Ticket URL: <https://trac.macports.org/ticket/27128#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27128: kdelibs4 fails to build with older qt in /Library/Frameworks --------------------------------+------------------------------------------- Reporter: nerdrew@… | Owner: snc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: kdelibs4 | --------------------------------+------------------------------------------- Changes (by michaelld@…): * status: assigned => closed * resolution: => fixed Comment: OK; so the issue of this ticket has been fixed so I'm closing this ticket. Let's hope the related issue in ticket #21973 can now be resolved easily / quickly. -- Ticket URL: <https://trac.macports.org/ticket/27128#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts