×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Got no stars is gsc installed error | SOLVED

  • Posts: 14
  • Thank you received: 1
I'm interested in getting the CCD simulator running and was following the steps knro provided.
cake ran without problems, also make installed all the files after compiling.
Still, kstars, especially the indi control panel, shows the same error as before: "Got no stars, is gsc installed with appropriate variables set ??".
Which environment variables do I need to set up?

CS,
Thorsten
10 years 5 days ago #841

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

  • Posts: 8
  • Thank you received: 1
Muir - cd (short for change directory) is a Linux command line command and can only be used within a terminal window. Knro is telling you to change to the directory where you extracted the files to then you can use the following commands (also in a terminal)
cmake -DCMAKE_INSTALL_PREFIX=/usr .
sudo make install

I actually came up with a compiler error at that point so I updated (reinstalled) the compiler went through the cmake and make install commands and then it ran fine. The make and cmake commands may not be installed by default - so if necessary install them.

thb - I used the default environment variables. Sounds as if something else is wrong?
10 years 5 days ago #842

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

  • Posts: 14
  • Thank you received: 1
Since I'm using Ubuntu, I added to my /etc/environment:
GSCDAT=/usr/share/GSC
GSCBIN=/usr/share/GSC/bin

After a restart, those variables are known to "Konsole" and on a text-console login.
Running gsc in console for a known set of RA/DEC coordinates yields a list of stars.
Still, kstars throws the exact same error as above…
Any ideas?
10 years 5 days ago #843

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

You don't typically need to set any environment variables yourself. If you type 'which gsc', do you get /usr/bin/gsc ? It seems as if gsc is not in the $PATH
10 years 5 days ago #845

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

  • Posts: 14
  • Thank you received: 1
/usr/bin is in $PATH, which also finds gsc.
10 years 5 days ago #846

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

Well, you can run the simulator in Konsole and see if that makes any difference
indiserver -v indi_simulator_ccd indi_simulator_telescope

Then connect to it in KStars as a client in the Devices Manager window.
10 years 5 days ago #847

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

  • Posts: 8
  • Thank you received: 1
As I said I didn't change or add anything to environment variables. I'm also using Ubuntu (13.10) I did upgrade from 12.04 LTS because from what I could work out the latest versions of the Indi drivers were not supported by 12.04 even though it is still a current version.
10 years 5 days ago #848

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

  • Posts: 14
  • Thank you received: 1
I tried running the indiserver stuff on the command line, but it did not change the outcome.
For reference, I recorded a short screencast so you can see what I did.
Transcript:
  • 'which gsc' refers to /usr/bin/gsc
  • 'gsc -c 3:53:20 +87:10:23 -m 1 10' lists some stars as output, so gsc finds its data and works
  • 'indiserver -v indi_simulator_ccd indi_simulator_telescope' starts and is listening on localhost:7624
  • KStars is connected to the already running indiserverprocess and the simulator modules
  • An expose is started using the 'CCD Simulator Main Control' tab in the INDI Control Panel
  • Instantaneous, the dreaded warning/error shows up in the log
  • the KStars FITS Viewer shows only noise

Any advice how to continue?

CS,
Thorsten
10 years 5 days ago #849

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

  • Posts: 112
  • Thank you received: 12
Hello,

Exactly the same error for me. The weather is bad in France this week and I just want to practice Ekos and Indi stuff like in the video tutorial find on youtube.
Here is what I tried :

Install gsc with the deb file (found here launchpadlibrarian.net/69960461/gsc_1.0-0ubuntu1_amd64.deb )
Build gsc with the source file
In both case the command which gsc returns /usr/bin/gsc
The command
gsc -c 12 34 -5 6 -r 3
returns
0495401224 188.49149 -05.14840   0.4 15.17 0.40  0 0 02O2 F;   2.95 190
0495400366 188.52469 -05.11609   0.4 12.34 0.40  0 0 02O2 T;   1.76 123
0495400366 188.52466 -05.11606   0.3 12.86 0.40  0 0 024P T;   1.76 123

I guess the problem is not with gsc.

With kstars/indi/ekos, I tried inside kstars like in the tutorial and as a client. Always the same thing. Got no stars. "is gsc installed with appropriate environment variables set ??" The simulate CCD returns a noisy frame.

I activated a debug option with the simulate CCD but no more information in the debug file.

Who will find the right answer to this bug ? :P
Because people wants to recreate what they saw on video tutorial, I think it will be a good idea to integrate the gsc package in the PPA. What do you think ?

Good night.

Sébastien.
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
9 years 11 months ago #911

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

  • Posts: 112
  • Thank you received: 12
Maybe some clues in the readme file of the GSC catalog :

I had this to my /etc/environment file :
GSCDAT=/usr/share/GSC
GSCBIN=/usr/share/GSC/bin

I reboot my computer but it still doesn't work :dry:
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
9 years 11 months ago #912

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

  • Posts: 112
  • Thank you received: 12

You are right. The environment variables are define in the gsc.c file. The solution is somewhere else.
/* ------ Find out the required path variables --------------------------*/
	GSCDAT = getenv("GSCDAT") ;
	if ((!GSCDAT) 
	 && (strcmp(argv[0]+strlen(argv[0])-12, "/usr/bin/gsc") == 0)) {
	    /* When path terminated by .../bin/gsc.exe, use path */
	    GSCDAT = strdup(argv[0]) ;
	    GSCDAT[strlen(argv[0])-12] = 0 ;
	}
	if (!GSCDAT) GSCDAT = "/usr/share/GSC" ;
 
	/* Export the variable for the subroutines */
	ptr = malloc(strlen(GSCDAT)+8) ;
	strcpy(ptr, "GSCDAT=") ; strcat(ptr, GSCDAT) ;
	putenv(ptr) ;
 
	/* Get the GSCBIN environment variable */
	GSCBIN = getenv("GSCBIN");
	if (! GSCBIN) {
	    strcpy(path, GSCDAT);
	    strcat(path, "/bin");
	    GSCBIN = strdup(path);
	}
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
9 years 11 months ago #913

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

  • Posts: 112
  • Thank you received: 12
Eureka. I found the problem. Always the same history with the regional settings. In France, we work with the coma to design numbers. In the ccd_simulator code, the gsc command returns an empty string bcause of the comas.
To avoid this problem, I modified the code. It works for me but I'm sure there is a better way to do this because it will not work with english regional settings.
There is 2 parts. First time, it replaces comas with points before the gsc command call and then it replaces points with comas before parsing.

If somebody can help with a better fix, French people will appreciate :woohoo:
if (ftype==CCDChip::LIGHT_FRAME)
        {
            //sprintf(gsccmd,"gsc -c %8.6f %+8.6f -r 120 -m 0 9.1",rad+PEOffset,decPE);
            sprintf(gsccmd,"gsc -c %8.6f %+8.6f -r %4.1f -m 0 %4.2f -n 3000",rad+PEOffset,cameradec,radius,lookuplimit);
            //fprintf(stderr,"gsccmd %s\n",gsccmd);
 
	    // Start fix part 1
	    //replace ',' with '.'
            for(int x=0; x<=250; x++) {
                    if (gsccmd[x] == ',') {
			 gsccmd[x] = '.';
                    }
            }
	    // End of fix
 
            pp=popen(gsccmd,"r");
            if(pp != NULL) {
                char line[256];
                while(fgets(line,256,pp)!=NULL)
                {
                    //fprintf(stderr,"%s",line);
 
                    //  ok, lets parse this line for specifcs we want
                    char id[20];
                    char plate[6];
                    char ob[6];
                    float mag;
                    float mage;
                    float ra;
                    float dec;
                    float pose;
                    int band;
                    float dist;
                    int dir;
                    int c;
                    int rc;
 
		    //Start fix part 2
		    //replace '.' with ','
		    for(int x=0; x<=250; x++) {
		        if (line[x] == '.') {
			    line[x] = ',';
		        }
                    }
		    //End fix
 
                    rc=sscanf(line,"%10s %f %f %f %f %f %d %d %4s %2s %f %d",
                            id,&ra,&dec,&pose,&mag,&mage,&band,&c,plate,ob,&dist,&dir);
                    //fprintf(stderr,"Parsed %d items\n",rc);
                    if(rc==12) {
                        lines++;
                        //if(c==0) {
                        stars++;
                        //fprintf(stderr,"%s %8.4f %8.4f %5.2f %5.2f %d\n",id,ra,dec,mag,dist,dir);
 
                        //  Convert the ra/dec to standard co-ordinates
                        double sx;   //  standard co-ords
                        double sy;   //
                        double srar;        //  star ra in radians
                        double sdecr;       //  star dec in radians;
                        double ccdx;
                        double ccdy;
 
                        //fprintf(stderr,"line %s",line);
                        //fprintf(stderr,"parsed %6.5f %6.5f\n",ra,dec);
 
                        srar=ra*0.0174532925;
                        sdecr=dec*0.0174532925;
                        //  Handbook of astronomical image processing
                        //  page 253
                        //  equations 9.1 and 9.2
                        //  convert ra/dec to standard co-ordinates
 
                        sx=cos(decr)*sin(srar-rar)/( cos(decr)*cos(sdecr)*cos(srar-rar)+sin(decr)*sin(sdecr) );
                        sy=(sin(decr)*cos(sdecr)*cos(srar-rar)-cos(decr)*sin(sdecr))/( cos(decr)*cos(sdecr)*cos(srar-rar)+sin(decr)*sin(sdecr) );
 
                        //  now convert to microns
                        ccdx=pa*sx+pb*sy+pc;
                        ccdy=pd*sx+pe*sy+pf;
 
 
                        rc=DrawImageStar(targetChip, mag,ccdx,ccdy);
                        drawn+=rc;
                        if(rc==1)
                        {
                            //fprintf(stderr,"star %s scope %6.4f %6.4f star %6.4f %6.4f  ccd %6.2f %6.2f\n",id,rad,decPE,ra,dec,ccdx,ccdy);
                            //fprintf(stderr,"star %s ccd %6.2f %6.2f\n",id,ccdx,ccdy);
                        }
                    }
                }
                pclose(pp);
            } else
            {
                IDMessage(getDeviceName(),"Error looking up stars, is gsc installed with appropriate environment variables set ??");
                //fprintf(stderr,"Error doing gsc lookup\n");
            }
            if(drawn==0)
            {
                IDMessage(getDeviceName(),"Got no stars, is gsc installed with appropriate environment variables set ??");
 
            }
        }
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
The following user(s) said Thank You: Eric
9 years 11 months ago #919

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

Time to create page: 1.472 seconds