[MacPorts] #34545: Can't install kdevplatform

MacPorts noreply at macports.org
Wed Jun 6 12:07:46 PDT 2012


#34545: Can't install kdevplatform
-------------------------------+--------------------------------------------
 Reporter:  dave@…             |       Owner:  nicos@…           
     Type:  defect             |      Status:  new               
 Priority:  Normal             |   Milestone:                    
Component:  ports              |     Version:  2.1.1             
 Keywords:                     |        Port:  kdevplatform      
-------------------------------+--------------------------------------------

Comment(by dragan.glumac@…):

 Hi dave and nicos[[BR]]
 [[BR]]
 Well I've done it, yay! I've had to do two things to get it to go:[[BR]]
 [[BR]]
 1) I commented out the snippet that forces llvm-gcc-4.2 in Portfile[[BR]]
 2) I've added an entry for COMPILER_CXX_FLAGS to include -std=c++11
 -stdlib=libc++ , so dave you were half-way there. It wouldn't link because
 unordered_map object code wasn't in libstdc++ which is used by
 default.[[BR]]
 [[BR]]
 I am attaching the Portfile and CMakeCXXCompiler.cmake file with my
 modification.[[BR]]
 [[BR]]
 But before I launch into steps that got this working I have to say that
 this is probably a dirty hack and I am not sure that all will hang
 together. I am assuming that the port is intended to be built using GCC
 since that's what you had in earlier versions nicos. From running make
 manually with default configuration I noticed that '''libsublime.dylib'''
 does not actually get built into the lib folder when running with GCC, and
 I suspect consequently the examples can't be linked since there are no
 object files to link them against and the build fails. If you use Clang
 however, the dylib gets built and placed in the lib folder, so the
 examples build correctly.[[BR]]
 [[BR]]
 Nicos, perhaps you can look into why the dylib doesn't get built - perhaps
 some dependencies in the generated Makefiles are off (i.e. maybe example1
 and example2 don't depend on libsublime)?[[BR]]
 [[BR]]
 Now the steps to install kdevplatform manually on Lion with Xcode
 4.3.x[[BR]]
 [[BR]]
 1) sudo port clean kdevplatform[[BR]][[BR]]

 2) sudo port fetch kdevplatform[[BR]][[BR]]

 3) sudo port extract kdevplatform[[BR]][[BR]]

 4) Modify
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/kde/kdevplatform/Portfile
 by commenting out (precede with #) the lines[[BR]]

 {{{
 if {${configure.compiler} == "clang"} {
     configure.compiler llvm-gcc-4.2
 }
 }}}

 See attached file for details.[[BR]]
 [[BR]]

 5) sudo port configure kdevplatform[[BR]][[BR]]

 6) Modify
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/kde/kdevplatform/work/build/CMakeFiles/CMakeCXXCompiler.cmake
 by adding the following line[[BR]]

 {{{
 SET(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")
 }}}

 I had it at line 11, after setting CMAKE_COMPILER_IS_GNUCXX to empty
 string (see attached file).[[BR]]
 [[BR]]

 7) sudo port build kdevplatform[[BR]][[BR]]

 8) sudo port install kdevplatform[[BR]]
 This will fail because one of the ports already has a certain file (built
 earlier possibly by GCC?) installed, so port tool will suggest you force
 the activation. And that's the last step.[[BR]][[BR]]

 9) sudo port -f activate kdevplatform[[BR]]

-- 
Ticket URL: <https://trac.macports.org/ticket/34545#comment:10>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list