×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Ekos on Mac OS X ?

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Ekos on Mac OS X ?

I am fairly sure either the qt5 from homebrew or the other will work, we just need to figure out the export paths for each.
7 years 5 months ago #11595
The topic has been locked.
  • Posts: 2256
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?


Well, just arrived back from work, straight on the latest emerge document. I shall report when I reach Qt5 and after steps...
7 years 5 months ago #11596
The topic has been locked.
  • Posts: 82
  • Thank you received: 9

Replied by Adam on topic Ekos on Mac OS X ?

I have a compilation error with KStars at the moment:
[  5%] Building CXX object kstars/CMakeFiles/KStarsLib.dir/indi/drivermanager.cpp.o
/Users/adam/Projects/kstars/kstars/indi/drivermanager.cpp:956:17: error: no
      member named 'indiDriversAreInternal' in 'Options'
    if(Options::indiDriversAreInternal())
       ~~~~~~~~~^
1 error generated.
make[2]: *** [kstars/CMakeFiles/KStarsLib.dir/indi/drivermanager.cpp.o] Error 1
make[1]: *** [kstars/CMakeFiles/KStarsLib.dir/all] Error 2
make: *** [all] Error 2
7 years 5 months ago #11597
The topic has been locked.
  • Posts: 211
  • Thank you received: 23

Replied by Jamie Smith on topic Ekos on Mac OS X ?

This seems to have worked for me on the extra-cmake-modules:

GET_TEXT_BIN=$(ls -td $(brew --cellar gettext)/*/bin)
export PATH=$(brew --prefix qt5)/bin:${GET_TEXT_BIN}:$PATH

Now, trying to CMAKE indi -
Should the emerge instructions be completely stand-alone? When I do the cmake in the build/libindi I get:
(...)
CMake Error at /Users/jamie/IndiRoot/indi-stuff/indi/cmake_modules/FindNova.cmake:49 (message):
  libnova not found.  Please install libnova development package.
Call Stack (most recent call first):
  CMakeLists.txt:73 (FIND_PACKAGE)

So I still needed to:
- brew tap polakovic/astronomy
- brew install polakovic/astronomy/libnova

Then the subsequent make failed on (you guessed it) -lgsl - so we still need the update to the other CMake:
sed -i '' 's#target_link_libraries(AlignmentDriver ${GSL_LIBRARIES})#target_link_libraries(AlignmentDriver -L/usr/local/lib ${GSL_LIBRARIES})#'  indi/libindi/libs/indibase/alignment/CMakeLists.txt


So you might want to add that to the emerge instructions.
The following user(s) said Thank You: Gonzothegreat
Last edit: 7 years 5 months ago by Jamie Smith. Reason: gsl, too
7 years 5 months ago #11598
The topic has been locked.
  • Posts: 2256
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?


same here, I guess we have to wait :(
7 years 5 months ago #11599
The topic has been locked.
  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Ekos on Mac OS X ?


Thank you for finding this. Apparently what I did was I edited the wrong file. I added several boolean methods to the Options file to get whether the files are internal or external. But I didn't understand that the Options file is automatically generated from another file, so my boolean methods were not included in the changes I sent to the git. Apparently I need to write them in a different file and make sure it works, then resubmit. I can do that later today.
7 years 5 months ago #11600
The topic has been locked.
  • Posts: 82
  • Thank you received: 9

Replied by Adam on topic Ekos on Mac OS X ?

No problem, I already added the necessary entries to my local file and it works again. Here is my file (as one can only attach .txt files: rename to kstars.kcfg and replace ~/Projects/kstars/kstars/kstars.kcfg), in case others get stuck at compiling kstars before your changes reach the repo.
7 years 5 months ago #11602
Attachments:
The topic has been locked.
  • Posts: 2256
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

patch for CMakeLists.txt in libindi

If like me you're fed-up of editing this file, here's a patch.

File Attachment:

File Name: CMakeLists-patch.txt
File Size:1 KB

rename it to CMakeLists-patch
Stephanes-MacBook-Air:Projects stephanelucas$ patch < CMakeLists-patch 
patching file CMakeLists.txt
Stephanes-MacBook-Air:Projects stephanelucas$ grep -A6 indiclient_SRCS CMakeLists.txt
set (indiclient_SRCS
        ${CMAKE_CURRENT_SOURCE_DIR}/libs/indibase/basedevice.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/libs/indibase/baseclient.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/libs/indibase/indiproperty.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/libs/lilxml.c
	${CMAKE_CURRENT_SOURCE_DIR}/base64.c
    )
--
Last edit: 7 years 5 months ago by Gonzothegreat.
7 years 5 months ago #11604
Attachments:
The topic has been locked.
  • Posts: 211
  • Thank you received: 23

Replied by Jamie Smith on topic Ekos on Mac OS X ?

Using the emerge instructions I can no longer build the 3rdparty drivers subtree of indi.

Are they supposed to be built at the same time or something? First it can't find GSL, then it can't find nova- I see in the CMakeLists.txt files they are LOOKING for some things, but not appending paths. I do not know anything about the way cmake is supposed to work, so debugging this is a mess. Interesting that the indi readme says:

You can build the all the 3rd party drivers at once (not recommended)
7 years 5 months ago #11605
The topic has been locked.
  • Posts: 2256
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

Even before using the emerge way, I wasn't able to build the 3rd party tree, only one by one works. gsl path issue.
7 years 5 months ago #11606
The topic has been locked.
  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Ekos on Mac OS X ?


Yep, that is part of what I need to do to fix it. The other part is in the kstars code to make sure the booleans properly get set, because I originally did not even plan on saving the info, I was just going to use a special string of characters. But since we have to do it this way, I will need to save it.
7 years 5 months ago #11607
The topic has been locked.
  • Posts: 2256
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

this might be useful (or not) set the dmg Qt5 path, I'm building Indi and had the dreaded:
-- The following OPTIONAL packages have not been found:
* Qt5Network


I've fixed it with the following export:
Stephanes-MacBook-Air:libindi stephanelucas$ export Qt5_DIR=/Users/stephanelucas/Qt5.7.0/5.7/clang_64
Stephanes-MacBook-Air:libindi stephanelucas$ export Qt5Network_DIR=$Qt5_DIR


Now I'm getting:
-- The following OPTIONAL packages have been found:
* Qt5Core (required version >= 5.7.0)
* Qt5Network
7 years 5 months ago #11608
The topic has been locked.
Time to create page: 0.823 seconds