×

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

Bi-monthly release with minor bug fixes and improvements

Optec TCF focuser under OSX

  • Posts: 57
  • 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
Last edit: 6 years 2 weeks ago by DAVID J EISENLORD.
6 years 2 weeks ago #24691

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

  • Posts: 2877
  • Thank you received: 812
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.
6 years 2 weeks ago #24704

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

  • Posts: 2877
  • Thank you received: 812
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.
6 years 2 weeks ago #24705

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

  • Posts: 57
  • Thank you received: 12
Thanks Robert, knew you guys would be on top of it.
Thanks,
David
Last edit: 6 years 2 weeks ago by DAVID J EISENLORD.
6 years 2 weeks ago #24709

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

Time to create page: 0.215 seconds