×

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: 2885
  • Thank you received: 819

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


Correction, I was wrong. Apparently it really is not a problem. The issue was that I needed to update libindi. There was a revision and it broke my non-emerge kstars installation. But now that I updated libindi using Jamie's script, I was able to build successfully.

So if you get the error that I posted about, update libindi.
7 years 5 months ago #12073
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

BREAKING NEWS !!!!: I have cracked the libusb path issue :woohoo: :woohoo:



install_name_tool -change @rpath/libusb-1.0.0.dylib /Library/Frameworks/kstars.app.framework/libusb-1.0.0.dylib /Applications/kstars.app/Contents/Frameworks/libindidriver.1.dylib 
install_name_tool -change @executable_path/../Frameworks/libnova-0.15.0.dylib /Library/Frameworks/kstars.app.framework/libnova-0.15.0.dylib /Applications/kstars.app/Contents/Frameworks/libindidriver.1.dylib
install_name_tool -change @executable_path/../Frameworks/libcfitsio.5.dylib /Library/Frameworks/kstars.app.framework/libcfitsio.5.dylib /Applications/kstars.app/Contents/Frameworks/libindidriver.1.dylib


I had to copy over the content of the Frameworks folder to: /Library/Frameworks
MK5AE7DV33:Frameworks stephane.lucas$ ls -ld kstars.app.framework/
drwxr-xr-x 55 root wheel 1870 15 Nov 13:58 kstars.app.framework/
MK5AE7DV33:Frameworks stephane.lucas$

Now before we get all excited, and modify the install scripts, let me see if I can get the above in the Users's home folder.

stay tuned....

EDIT:
and there are no crash report at all being generated so far.
The following user(s) said Thank You: Jamie Smith
Last edit: 7 years 5 months ago by Gonzothegreat.
7 years 5 months ago #12087
Attachments:
The topic has been locked.
  • Posts: 211
  • Thank you received: 23

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

Anyone seen this error:
LSOpenURLsWithRole() failed with error -10810 for the file /Users/jamie/IndiRoot/kstars-stuff/Applications/KDE/kstars.app.

I am trying to make the build work either emerge or cmake. While working with the cmake version, if I try to open the app from Applications/KDE/kstars.app I get that error, but it works from ./kstars-build/kstars/kstars.app

After doing some dir comparisons, it appears that the kstars executable, KSTARS_APP_SRCS.icns, and the Info.plist were not copied over to their respective locations under the Applications path. I can obviously do that manually, but I swore this worked last time.
7 years 5 months ago #12088
The topic has been locked.
  • Posts: 2885
  • Thank you received: 819

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

Sounds great!!! I will stay tuned! Remember to also test astrometry.net and xplanet on the user's computer.
7 years 5 months ago #12089
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

Yes I will do more testing this evening, as in astrometry.net and xplanet.
I'm quite happy to have found a way to fix this libusb issue. Found the solution from that link:
stackoverflow.com/questions/26988094/osx...e-library-not-loaded

Go to folder /Library/Frameworks/ in finder and paste CoreFactoryTestStation.framework, run your app. That should resolve the loader error. If you dont find the Frameworks folder, do create one and paste your CoreFactoryTestStation.framework in that.
7 years 5 months ago #12090
The topic has been locked.
  • Posts: 211
  • Thank you received: 23

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

I will be out of town for a few days, so will likely only be lurking if even that.

Please keep track of things that you need done to the script - right now it seems that it is only the new libusb fix once verified, and the other libraries.

I changed the build script - which also prompted a name change to build-kstars.sh (because emerge-install was no longer accurate since it does both).

Long story short:

So, to build a complete emerge you would do:
build-kstars.sh -3aei

So, to build a complete cmake build you would do:
build-kstars.sh -3aci


Change options, allow either emerge or cmake build.
This is a pretty big change - it breaks the command line sort of.
Now you call out what you want it to do.  Usage is:
options:
    -3 Also build third party stuff
    -a Announce stuff as you go
    -c Build kstars via cmake (ONLY one of -c or -e can be used)
    -d Dry run only (just show what you are going to do)
    -e Build kstars via emerge
    -i Build libindi
    -s Skip brew (only use this if you know you already have them)
 
So, to build a complete emerge you would do:
    build-kstars.sh -3aei
 
So, to build a complete cmake build you would do:
    build-kstars.sh -3aci
 
If you add a -s it skips the brew steps - saves a few seconds
The following user(s) said Thank You: Gonzothegreat
Last edit: 7 years 5 months ago by Jamie Smith.
7 years 5 months ago #12091
The topic has been locked.
  • Posts: 211
  • Thank you received: 23

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

Ok, last post before I head to the airport. Emerge works again, whatever was broken with the docbook stuff resolved itself.

After the emerge, I run the app - seems to work fine (opens up, no warnings, etc, can start ekos and load the simulator and take a pic)

I run the fix-libraries script, it works as expected (which may or may not be correct!). When that is done I end up with these files in the Frameworks dir, which looks right:
-rw-r--r--  1 jamie  staff  1198304 Nov 15 11:08 libcfitsio.5.dylib
-rw-r--r--  1 jamie  staff   125128 Nov 15 11:08 libgphoto2.6.dylib
-rw-r--r--  1 jamie  staff    39340 Nov 15 11:08 libgphoto2_port.12.dylib
-rw-r--r--  1 jamie  staff  1981316 Nov 15 11:08 libgsl.19.dylib
-rw-r--r--  1 jamie  staff   223876 Nov 15 11:08 libgslcblas.0.dylib
-rwxr-xr-x  1 jamie  staff   199544 Nov 15 11:08 libindi.1.dylib*
-rwxr-xr-x  1 jamie  staff   253744 Nov 15 11:08 libindiAlignmentDriver.1.dylib*
-rwxr-xr-x  1 jamie  staff   816396 Nov 15 11:08 libindidriver.1.dylib*
-rw-r--r--  1 jamie  staff   202952 Nov 15 11:08 libjpeg.8.dylib
-rw-r--r--  1 jamie  staff  3633192 Nov 15 11:08 libnova-0.15.0.dylib
-rw-r--r--  1 jamie  staff   851384 Nov 15 11:08 libraw.15.dylib
-rw-r--r--  1 jamie  staff    85160 Nov 15 11:08 libusb-1.0.0.dylib

After the fix libraries - I can still run the app - same rudimentary tests. so try to make the dmg.
cd ${KSTARS_DIR}/Applications/KDE/
${Qt5_DIR}/bin/macdeployqt kstars.app -dmg
Which gives me two errors;
ERROR: Cannot resolve rpath "../Frameworks/libindi.1.dylib"
ERROR:  using QSet("/usr/local/lib", "/usr/local/Cellar/qt5/5.7.0/lib", "/Users/jamie/IndiRoot/kstars-stuff/lib")
but as you see above, that file is in the frameworks.

If I mount the dmg, then try to open the app, it chokes (Segv). And I can no longer open the app from the build dir - the process of building the dmg updates pretty much every file in the app subdirectories.
7 years 5 months ago #12092
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

Back home, tried quite a few back and forth on creating the DMG file and here's the fix to the libusb issue:

First you do need to copy the following libraries in the following folder before you create the DMG file:

Then you must set the following executable paths as follow:
This is done with "install_name_tool -change" and verify with "otool -L"

libindidriver.1.dylib:
indi_simulator_telescope:
indi_simulator_ccd:

I have only done indi_simulator_ccd and indi_simulator_telescope as I didn't want to modify too many files at once.
I do believe you can use the "install_name_tool -change" command on multiple files.



With the above done, I have tested it on the MBP (i.e.: wife's laptop...) and it's working correctly, you can start Indi.
I have yet to test Astrometry and Xplanet.

Here's the link to the newly created dmg file, please download and test with only the above two Indi_simulator drivers.
drive.google.com/file/d/0B77Cf3GuOpYTeWp...eFU/view?usp=sharing
7 years 5 months ago #12093
The topic has been locked.
  • Posts: 2885
  • Thank you received: 819

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

I just tried Stephane's new dmg on my wife's laptop. It did start up ok and KStars was working great. And INDIServer did start with those two devices. But hitting connect for those devices did not work, and I could not take an image or slew the scope.

But good progress, now it at least starts the indiserver.
7 years 5 months ago #12096
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?



That's interesting, I am able to connect etc...










7 years 5 months ago #12097
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

Just tried to take an image, and it crashed... :sick:

File Attachment:

File Name: kstars_201...-Pro.txt
File Size:65 KB
7 years 5 months ago #12098
Attachments:
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

I've installed my newest dmg on my dev laptop, I could connect and also take a picture.


so I guess there is probably something missing in the dmg and it doesn't run correctly on the MBP, as on the dev laptop (MBA) I have everything it obviously going to work.
Need more work, no sure yet how to troubleshoot the crash report I've previously posted
7 years 5 months ago #12100
Attachments:
The topic has been locked.
Time to create page: 0.829 seconds