×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Ekos on Mac OS X ?

4 years 11 months ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Ekos on Mac OS X ? #2581
Hi guys,

happy new year.
I'm trying to compile Kstars/Ekos on my Mac using macports and I'm getting the following error, would anyone know how to fix this please?
Stephanes-MacBook-Air:kstars stephanelucas$ pwd
/Users/stephanelucas/Astro/Projects/build/kstars
Stephanes-MacBook-Air:kstars stephanelucas$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../../../Projects/kstars
CMake Error at CMakeLists.txt:15 (find_package):
  Could not find a package configuration file provided by "ECM" (requested
  version 1.3.0) with any of the following names:

    ECMConfig.cmake
    ecm-config.cmake

  Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
  to a directory containing one of the above files.  If "ECM" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/Users/stephanelucas/Astro/Projects/build/kstars/CMakeFiles/CMakeOutput.log".
Stephanes-MacBook-Air:kstars stephanelucas$

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+
The topic has been locked.
4 years 11 months ago
pauledd
Platinum Boarder
Platinum Boarder
Posts: 346
Karma: 3
More
Ekos on Mac OS X ? #2582
I have no idea how to fix this on mac but this looks similar to linux and I would...

search for those two .cmake files on the disk and if they exist execute cmake like:
CMAKE_PREFIX_PATH=/dir/to/cmakefile cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../../../Projects/kstars

if those files do not exist you should check if "ECM" (version 1.3.0) is installed.

--= human, without Windows™ =--
pls excuse my bad english! :)
The topic has been locked.
4 years 11 months ago
knro
Administrator
Administrator
Posts: 7405
Karma: 51
Ekos on Mac OS X ? #2583
You need to install extra-cmake-modules package from KF5 if that's available.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The topic has been locked.
4 years 11 months ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Ekos on Mac OS X ? #2584
Looks like I'm out of luck :(
Stephanes-MacBook-Air:kstars stephanelucas$ sudo port search cmake
cmake @3.0.2_1 (devel)
    Cross-platform make

gccmakedep @1.0.3 (x11, devel)
    Create dependencies in makefiles using 'gcc -M'

icmake @7.21.01_1 (devel)
    The Icmake program maintenance utility

Found 3 ports.
Stephanes-MacBook-Air:kstars stephanelucas$ sudo port search KF5
No match for KF5 found
Stephanes-MacBook-Air:kstars stephanelucas$ sudo port search kf5
No match for kf5 found
Stephanes-MacBook-Air:kstars stephanelucas$

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+
The topic has been locked.
4 years 11 months ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Ekos on Mac OS X ? #2585
I have the EKOS VM running on my Mac mini, wanted to get away from it on my Macbook air.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+
The topic has been locked.
4 years 9 months ago
janakact
Fresh Boarder
Fresh Boarder
Posts: 2
More
Ekos on Mac OS X ? #3443
Tried to compile with QtCreator, I got the same problem. :( ?

-- Configuring incomplete, errors occurred!
See also "/home/janaka/kstars/CMakeFiles/CMakeOutput.log".
CMake Error at CMakeLists.txt:15 (find_package):
Could not find a package configuration file provided by "ECM" (requested
version 1.3.0) with any of the following names:

ECMConfig.cmake
ecm-config.cmake

Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
to a directory containing one of the above files. If "ECM" provides a
separate development package or SDK, be sure it has been installed.

Can't figure it out. :( ?
The topic has been locked.
4 years 3 months ago
seanhoughton
Junior Boarder
Junior Boarder
Posts: 25
More
Ekos on Mac OS X ? #4928
You need to tell cmake where to find the ECM installation. I'm using Homebrew, but you should find a similar folder in the macports location. I still don't have kstars cmake completing yet, but this will get you a bit further.
kstars-build$ export ECM_DIR=/usr/local/Cellar/kf5-extra-cmake-modules
kstars-build$ export Qt5_DIR=/usr/local/Cellar/qt5/5.5.0
kstars-build$ cmake ../kstars -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=~/kde/usr 
The topic has been locked.
4 years 3 months ago
seanhoughton
Junior Boarder
Junior Boarder
Posts: 25
More
Ekos on Mac OS X ? #4932
I've managed to get kstars to compile and run on OSX. You'll need to apply the patches in my github repo, then set the environment variables mentioned in my previous post before running cmake. Make sure you run the "install" target, you can't run it out of the build folder. Also, I had to copy a bunch of resource files from the install output folder into my ~/Library/Application Support/kstars folder - I'm still missing all the icons and I think this isn't the right way to set it up but that's for another day to figure out.

Here's what I had to change to get it to compile on OSX:

github.com/seanhoughton/kstars/commit/5d...60e654c1098c4becea96
The topic has been locked.
4 years 3 months ago
knro
Administrator
Administrator
Posts: 7405
Karma: 51
Ekos on Mac OS X ? #4933
Can you send me a patch? The changes are fine.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The topic has been locked.
4 years 3 months ago 4 years 3 months ago by seanhoughton. Reason: Adding note about git clone
seanhoughton
Junior Boarder
Junior Boarder
Posts: 25
More
Ekos on Mac OS X ? #4945
A patch is in flight for kstars build errors now. Also, I put together a gist with what I had to do to get it to run on OSX. I'm still trying to figure out how to get the icons working - the install target puts all the data files in the wrong place for OSX and I'm still learning how KDE apps expect their data to be arranged. I can't figure out how cmake is transforming what seems to be correct CMake config files into odd paths with "shared" in them.

gist.github.com/seanhoughton/1b2649a2a0ef904d79f9

Note: the git clone can be replaced with the normal svn sync once the patch is live.

<code>

# Install the KDE libraries

brew tap haraldf/kf5
brew install d-bus
brew install eigen
brew install qt5 --with-d-bus
brew install haraldf/kf5/kf5-karchive
brew install haraldf/kf5/kf5-kate
brew install haraldf/kf5/kf5-kplotting

# Grab kstars source

git clone git@github.com:seanhoughton/kstars.git

# Generate makefiles

mkdir kstars-build
cd kstars-build
export Qt5_DIR=/usr/local/Cellar/qt/5.5.0
export Qt5DBus_DIR=/usr/local/Cellar/qt/5.5.0
export ECM_DIR=/usr/local/Cellar/kf5-extra-cmake-modules/5.10.0/share/ECM
cmake ../kstars -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=~/kde/usr

# Build

make install

# Fixup content

mkdir ~/Library/Application\ Support/kstars
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

</code>
The topic has been locked.
3 years 8 months ago 3 years 8 months ago by Rushwind. Reason: bold around relevant bits
Rushwind
Fresh Boarder
Fresh Boarder
Posts: 10
More
Ekos on Mac OS X ? #7321
I am having a rough time getting kstars-bleeding running on my Mac. I am running 10.10.5, and have Xcode 7.2.1 installed.
I am following seanhoughton's instructions, and got as far as this line:

brew install haraldf/kf5/kf5-karchive

before I ran into what looks like a dependency loop?

$ brew install haraldf/kf5/kf5-karchive
==> Installing kf5-karchive from haraldf/kf5
==> Installing dependencies for haraldf/kf5/kf5-karchive: haraldf/kf5/kf5-extra-cmake-modules
==> Installing haraldf/kf5/kf5-karchive dependency: haraldf/kf5/kf5-extra-cmake-modules
==> Downloading download.kde.org/stable/frameworks/5.16/...odules-5.16.0.tar.xz
Already downloaded: /Library/Caches/Homebrew/kf5-extra-cmake-modules-5.16.0.tar.xz
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/kf5-extra-cmake-modules/5.16.0 -DCMAKE_BUIL
==> make install
Error: No such file or directory - (/usr/local/share/kxmlgui5, /private/tmp/kf5-extra-cmake-modules20160317-7933-9a6kzu/extra-cmake-modules-5.16.0/.brew_home/Library/Application Support/kxmlgui5)

(It's looking for kxmlgui5), so

$ brew install haraldf/kf5/kf5-kxmlgui
==> Installing kf5-kxmlgui from haraldf/kf5
==> Installing dependencies for haraldf/kf5/kf5-kxmlgui: haraldf/kf5/kf5-extra-cmake-modules, haraldf/kf5/kf5-kconfig, gettext, libffi, glib, shared-mime-inf
==> Installing haraldf/kf5/kf5-kxmlgui dependency: haraldf/kf5/kf5-extra-cmake-modules
==> Downloading download.kde.org/stable/frameworks/5.16/...odules-5.16.0.tar.xz
Already downloaded: /Library/Caches/Homebrew/kf5-extra-cmake-modules-5.16.0.tar.xz
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/kf5-extra-cmake-modules/5.16.0 -DCMAKE_BUIL
==> make install
Error: No such file or directory - (/usr/local/share/kxmlgui5, /private/tmp/kf5-extra-cmake-modules20160317-8047-1vyebhq/extra-cmake-modules-5.16.0/.brew_home/Library/Application Support/kxmlgui5)

(kmlgui depends upon extra-cmake-modules, which in turn depends upon kxmlgui)

Any ideas? After about 3 or 4 days of dealing with dependencies, I got Fink to install kstars, but it did not include INDI or Ekos, so I spent another few days getting -bleeding to compile, only to run into a very nasty part-Brew, part-Fink mess that was causing runtime library problems. So I removed Brew and Fink (and all the stuff they installed) completely, and am starting from scratch with this recipe...

Best,
Jimbo
The topic has been locked.
3 years 8 months ago
Rushwind
Fresh Boarder
Fresh Boarder
Posts: 10
More
Ekos on Mac OS X ? #7323
Update:

I had to install extra-cmake-modules (ECM) manually:

brew install haraldf/kf5/kf5-extra-cmake-modules 2>&1 | tee /tmp/install.log
cd /tmp
tar zxvf /Library/Caches/Homebrew/kf5-extra-cmake-modules-5.16.0.tar.xz
mkdir build
cd build
cmake ../extra-cmake-modules-5.16.0 -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/kf5-extra-cmake-modules/5.16.0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.5.1_2/lib/cmake
make
make install

I got the cmake parameters out of the "install.log" file that brew created. I had to add the CMAKE_PREFIX_PATH myself, after running it the first time and having it fail to find Qt5 properly on its own.

Once I got the proper version of ECM installed, brew counted it as a fulfilled dependency, and I was able to go on to:

brew install haraldf/kf5/kf5-karchive

and am continuing through the list from there.
The topic has been locked.
Time to create page: 0.458 seconds