Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: Optec TCF focuser under OSX

Optec TCF focuser under OSX 2 months 3 weeks ago #24691

  • deisenlord
  • deisenlord's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 3
  • Thank you received: 12
Hi, I'm thinking this is a OSX dmg build issue but maybe not. Under OSX an Optec TCF focuser fails to find it's skeleton file. It's looking by default in /Applications/KStars.App, this without INDIPREFIX defined which should be the default. This location must be the definition of DATA_INSTALL_DIR under an OSX build?
Actually I don't know why DATA_INSTALL_DIR isn't /usr/local/share/indi. Anyway.
[2018-03-30T08:02:58.180 CDT DEBG ][           org.kde.kstars.indi] - INDI Server:  "2018-03-30T13:02:58: Driver indi_tcfs3_focus: Using prefix /Applications/KStars.app/indi_tcfs_sk.xml"
[2018-03-30T08:02:58.180 CDT DEBG ][           org.kde.kstars.indi] - INDI Server:  "2018-03-30T13:02:58: Driver indi_tcfs3_focus: Unable to build skeleton. Error loading file /Applications/KStars.app/indi_tcfs_sk.xml: No such file or directory"
If I move the skeleton file to this location all is fine. This is the fragment of related code from basedevice.cpp. Happy to fix although would like some guidance as this seems a fundamental indi functionality.
            const char *indiprefix = getenv("INDIPREFIX");
            if (indiprefix)
            {
#if defined(OSX_EMBEDED_MODE)
                snprintf(pathname, MAXRBUF - 1, "%s/Contents/Resources/%s", indiprefix, filename);
#elif defined(__APPLE__)
                snprintf(pathname, MAXRBUF - 1, "%s/%s", indiprefix, filename);
#else
                snprintf(pathname, MAXRBUF - 1, "%s/share/indi/%s", indiprefix, filename);
#endif
            }
            else
            {
                snprintf(pathname, MAXRBUF - 1, "%s/%s", DATA_INSTALL_DIR, filename);
            }

Best David

Please Log in or Create an account to join the conversation.

Last Edit: by deisenlord.

Optec TCF focuser under OSX 2 months 3 weeks ago #24704

Yes, this issue is the same one that was mentioned in the EQMod post a couple of days ago. A temporary fix would be to copy the skeleton xml file to the app folder, but we will have a more permanent solution shortly when the next version is released next week.

Please Log in or Create an account to join the conversation.

Optec TCF focuser under OSX 2 months 3 weeks ago #24705

The issue really is that INDIPrefix used to point to the location of the xml files, but we had to change that for compatibility with the INDIServer app for the Apogee, DSI, and QHY cameras due to the fact that they have many many files. The problem was that the Skeleton file location needed to be updated when the INDIPrefix was changed. We will fix this very soon.

Please Log in or Create an account to join the conversation.

Optec TCF focuser under OSX 2 months 3 weeks ago #24709

  • deisenlord
  • deisenlord's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 3
  • Thank you received: 12
Thanks Robert, knew you guys would be on top of it.
Thanks,
David

Please Log in or Create an account to join the conversation.

Last Edit: by deisenlord.
  • Page:
  • 1
Time to create page: 0.116 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica