×

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

Bi-monthly release with minor bug fixes and improvements

GSC catalog for simulations

  • Posts: 30
  • Thank you received: 2
Hi, I was going to ask a general question about simulations but have managed to get a profile in Ekos up and running.

However I don’t know how to get the GSC Catalog installed on a Gentoo system.

Would a flatpak work (never done it) or is there another way?

Thanks
1 year 9 months ago #83657

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

  • Posts: 1309
  • Thank you received: 226

Replied by Andrew on topic GSC catalog for simulations

You should be able to compile it locally once you setup a few things.
1 year 9 months ago #83659

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

  • Posts: 30
  • Thank you received: 2

Replied by Bill on topic GSC catalog for simulations

It seems that the .deb installer just places files.
Following that I have the data files with the two regions.xxx files in a bin subdirectory.
Also, decode and gsc executables are in /usr/bin.
From here I can only surmise that I need GSCDAT and GSCBIN environment variables for this to work.
Am I correct or is there some other “configuration “ of Ekos needed?

Thanks
1 year 9 months ago #83699

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

  • Posts: 111
  • Thank you received: 40
Hello Bill,

the two GSC Ubuntu DEB packages (e.g. version 22.04) can be downloaded from here:
gsc Global Star Catalog
and
gsc-data Global Star Catalog

By inspecting the content of the Debian package (here version 20.04.1) one can see:
$ dpkg -c ./gsc_1.3_ubuntu20.04.1_amd64.deb 
drwxr-xr-x root/root         0 2019-10-30 08:55 ./
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/bin/
-rwxr-xr-x root/root     27368 2019-10-30 08:55 ./usr/bin/decode
-rwxr-xr-x root/root     38984 2019-10-30 08:55 ./usr/bin/gsc
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/share/
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/share/doc/
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/share/doc/gsc/
-rw-r--r-- root/root       277 2019-10-30 08:55 ./usr/share/doc/gsc/changelog.gz
-rw-r--r-- root/root      1733 2019-10-30 08:55 ./usr/share/doc/gsc/copyright

and
$ dpkg -c ./gsc-data_1.3_ubuntu20.04.1_all.deb | head -n 25
drwxr-xr-x root/root         0 2019-10-30 08:55 ./
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/share/
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/share/GSC/
drwxr-xr-x root/root         0 2019-10-30 08:55 ./usr/share/GSC/N0000/
-rw-r--r-- root/root     31404 2019-10-30 08:55 ./usr/share/GSC/N0000/0001.GSC
-rw-r--r-- root/root     38640 2019-10-30 08:55 ./usr/share/GSC/N0000/0002.GSC
-rw-r--r-- root/root     31044 2019-10-30 08:55 ./usr/share/GSC/N0000/0003.GSC
-rw-r--r-- root/root     37356 2019-10-30 08:55 ./usr/share/GSC/N0000/0004.GSC
-rw-r--r-- root/root     35296 2019-10-30 08:55 ./usr/share/GSC/N0000/0005.GSC
-rw-r--r-- root/root     33436 2019-10-30 08:55 ./usr/share/GSC/N0000/0006.GSC
-rw-r--r-- root/root     31740 2019-10-30 08:55 ./usr/share/GSC/N0000/0007.GSC
-rw-r--r-- root/root     28248 2019-10-30 08:55 ./usr/share/GSC/N0000/0008.GSC
-rw-r--r-- root/root     30504 2019-10-30 08:55 ./usr/share/GSC/N0000/0009.GSC
-rw-r--r-- root/root     40092 2019-10-30 08:55 ./usr/share/GSC/N0000/0010.GSC
-rw-r--r-- root/root     26088 2019-10-30 08:55 ./usr/share/GSC/N0000/0011.GSC
-rw-r--r-- root/root     33784 2019-10-30 08:55 ./usr/share/GSC/N0000/0012.GSC
-rw-r--r-- root/root     36988 2019-10-30 08:55 ./usr/share/GSC/N0000/0013.GSC
-rw-r--r-- root/root     28360 2019-10-30 08:55 ./usr/share/GSC/N0000/0014.GSC
-rw-r--r-- root/root     31576 2019-10-30 08:55 ./usr/share/GSC/N0000/0015.GSC
-rw-r--r-- root/root     29664 2019-10-30 08:55 ./usr/share/GSC/N0000/0016.GSC
-rw-r--r-- root/root     29964 2019-10-30 08:55 ./usr/share/GSC/N0000/0017.GSC
-rw-r--r-- root/root     26832 2019-10-30 08:55 ./usr/share/GSC/N0000/0018.GSC
-rw-r--r-- root/root     30888 2019-10-30 08:55 ./usr/share/GSC/N0000/0019.GSC
-rw-r--r-- root/root     35608 2019-10-30 08:55 ./usr/share/GSC/N0000/0020.GSC

For installing that on Gentoo probably the most simple ansatz is to checkout it out from git and compile & install it.
$ git clone https://git.launchpad.net/gsc
Cloning into 'gsc'...
remote: Enumerating objects: 9636, done.
remote: Counting objects: 100% (9636/9636), done.
remote: Compressing objects: 100% (9603/9603), done.
remote: Total 9636 (delta 5), reused 9623 (delta 4)
Receiving objects: 100% (9636/9636), 234.35 MiB | 3.95 MiB/s, done.
Resolving deltas: 100% (5/5), done.
Updating files: 100% (9628/9628), done.

Cheers
Thomas
The following user(s) said Thank You: Bill
1 year 9 months ago #83709

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

  • Posts: 30
  • Thank you received: 2

Replied by Bill on topic GSC catalog for simulations

I tried to get this going but I think the toolchain in Gentoo wont compile the source. It fails looking for the correct software to do so.
I will either just use my Astroberry Pi or spin up an Ubuntu docker image at some point.
Thanks
1 year 9 months ago #83746

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

  • Posts: 1009
  • Thank you received: 133
How did you (try to) compile?
After cloning the repo and changing to that directory, just
mkdir build
cd build
cmake ..
make
You should only need a C compiler and cmake.
1 year 9 months ago #83761

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

  • Posts: 30
  • Thank you received: 2

Replied by Bill on topic GSC catalog for simulations

Hey thanks for the help. I have not used cmake much.
I tried your instructions, cmake with -S <src directory>.
However, I cannot find where to insert the install directory this error is calling for:

"CMake Error at CMakeLists.txt:39 (install):
install FILES given no DESTINATION!"

I had not seen `pwd` /.. as a means to change to root but figured that out and added GSC for /GSC which exists already.
I also tried with no change to the MakeFile but the above error still comes up.

Thanks for the help
1 year 9 months ago #83855

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

  • Posts: 1009
  • Thank you received: 133
I didn't use make install, TBH, but did that manually.
In general, you would just call
make install DESTDIR=<installpath>
So you can install using /usr/local as DESTDIR. But then GSC data would be in /usr/local/share/GSC, where gsc would not find it unless you have GSCDATA set. Or, easier, make a link /usr/share/GSC -> /usr/local/share/GSC
Or just install with DESTDIR=/usr (But I prefer to keep self compiled stuff out of the 'official' system directories handled by the package manager)
1 year 9 months ago #83859

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

  • Posts: 30
  • Thank you received: 2

Replied by Bill on topic GSC catalog for simulations

Well I finally got this installed, and it seems the LESS I did is what made it work.
It all came down to trying to specify a src directory and an installation directory. When I did neither and used just "cmake .." it worked and installed with make install just fine.
Sometimes I have two guns to shoot my own foot!

thanks again
1 year 8 months ago #84092

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

Time to create page: 0.989 seconds