<div dir="ltr">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.<div><br></div><div>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.</div><div><br></div><div>For example</div><div><br></div><div>kstars/kstars/data/CMakeLists.txt<br></div><div><br></div><div>contains this destination directive for most of the data files</div><div><br></div><div>DESTINATION ${KDE_INSTALL_DATADIR}/kstars<br></div><div><br></div><div><br></div><div>However, this is transformed into a large install block that looks like</div><div><br></div><div><div>if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "kstars")</div><div> file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/kstars" TYPE FILE FILES</div><div> "/Users/seanhoughton/Documents/Code/kstars/kstars/data/kstars.png"</div><div> "/Users/seanhoughton/Documents/Code/kstars/kstars/data/geomap.png"</div><div> "/Users/seanhoughton/Documents/Code/kstars/kstars/data/citydb.sqlite"</div><div> </div></div><div><br></div><div>The problem is that <b>${CMAKE_INSTALL_PREFIX}/share/kstars</b> is not where kstars looks for data. It wants files to be installed in one of the following places without the "share" folder.</div><div><br></div><div>~/Library/Application Support/kstars/*here*</div><div>/Library/Application Support/kstars/*here*<br></div><div><div>/Applications/KDE/kstars.app/*here*<br></div></div><div><br></div><div>I've manually copied the files after the install target places them in the wrong place with<br><br><div>cp -R ~/.kde/share/kstars/* ~/Library/Application\ Support/kstars</div><div>cp ~/.kde/share/config.kcfg/kstars.kcfg ~/Library/Application\ Support/kstars</div><div>cp ~/.kde/share/kxmlgui5/kstars/*.rc ~/Library/Application\ Support/kstars</div><div>cp ~/.kde/share/appdata/org.kde.kstars.appdata.xml ~/Library/Application\ Support/kstars</div></div><div><br></div><div>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.<br><br>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?<br><br>I should mention I'm using the homebrew install of KDE and ECM from <a href="https://github.com/haraldF/homebrew-kf5">https://github.com/haraldF/homebrew-kf5</a></div><div><br></div><div><br></div><div><div>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.</div><div><br></div>-- <br><div class="gmail_signature">-Sean</div>
</div></div>