[Kstars-devel] KStars data on OSX

Sean Houghton sean.houghton at gmail.com
Sat Sep 5 03:18:00 UTC 2015


I'm recently started using KStars for it's great Ekos toolset. I've
recently been working on getting it 100% functional on OSX so I don't have
to run it in a Kubuntu VM.

I've got it compiling and running, but it required some manual moving of
the data files. I'd like to update the CMake configuration files so that
the data goes in the correct place, but I'm having trouble understanding
how the existing CMake config files get transformed with ECM into the final
structure.

For example

kstars/kstars/data/CMakeLists.txt

contains this destination directive for most of the data files

DESTINATION  ${KDE_INSTALL_DATADIR}/kstars


However, this is transformed into a large install block that looks like

if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL
"kstars")
  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/kstars" TYPE FILE
FILES
    "/Users/seanhoughton/Documents/Code/kstars/kstars/data/kstars.png"
    "/Users/seanhoughton/Documents/Code/kstars/kstars/data/geomap.png"
    "/Users/seanhoughton/Documents/Code/kstars/kstars/data/citydb.sqlite"


The problem is that *${CMAKE_INSTALL_PREFIX}/share/kstars* is not where
kstars looks for data. It wants files to be installed in one of the
following places without the "share" folder.

~/Library/Application Support/kstars/*here*
/Library/Application Support/kstars/*here*
/Applications/KDE/kstars.app/*here*

I've manually copied the files after the install target places them in the
wrong place with

cp -R ~/.kde/share/kstars/* ~/Library/Application\ Support/kstars
cp ~/.kde/share/config.kcfg/kstars.kcfg ~/Library/Application\
Support/kstars
cp ~/.kde/share/kxmlgui5/kstars/*.rc  ~/Library/Application\ Support/kstars
cp ~/.kde/share/appdata/org.kde.kstars.appdata.xml  ~/Library/Application\
Support/kstars

This works, but should be part of the "make install" target. Also, it
doesn't work for icons, which don't show up for me at all.

Am I missing a critical step or configuration? Is there a clear place to
update the cmake configuration to install these data files in the correct
place for OSX?

I should mention I'm using the homebrew install of KDE and ECM from
https://github.com/haraldF/homebrew-kf5


Thanks for any tips on getting this to work. I'm willing to do the work and
testing, but I'm having trouble with the cmake/ECM setup.

-- 
-Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20150904/ef042e1c/attachment.html>


More information about the Kstars-devel mailing list