[make error] Compile Gpredict with an external library

Hi all,

I am working on Gpredict software with the following development environments:

  • Linux Ubuntu: 18.04
  • Gpredict: 2.2.1
  • Glib: 2.56.4
  • Gio: 2.56.4
  • Gthread: 2.56.4
  • Gdk: 3.22.30
  • Gtk+: 3.22.30
  • GooCanvas: 2.0.4
  • Libcurl: 7.58.0

I would love to add a simple feature and I am trying to edit the pass-to-txt.c file (to save a TXT file that contains the results of the coordinate conversion from the given satellite’s future pass and lat/ lon/ alt.)

Regarding the coordinate conversion (for example from LLA (Lat/ Lon/ Alt) to ECEF (Earth-Centered Earth Fixed), I would like to use the GeoStars library. So, I put the GeoStars sources to the Gpredict source directory (~/gpredict-2.2.1/src/) as follows.

And the GeoStars sources (located at ~/gpredict-2.2.1/src/geostarslib/src/lib/) looks like this:

In pass-to-txt.c file, I added some lines as follows:

In the directory (~/gpredict-2.2.1/), after the make command, I faced this error:

Could anyone please help me to compile the Gpredict software with the external library?


You have to update the build files (configure.ac and Makefile.am) with either the sources or link to an external library. Putting the files in the source tree is not enough.

Thank you for your reply. :blush:

Yes-! Finally, I managed to this problem.
Here is what I did.

  • updated the configure.ac at the ~/gpredict-2.2.1/ directory

  • created and filled in the Makefile.am(s) in each source folder of the external library.

  • And then,
    $ aclocal
    $ autoconf
    $ autoheader
    $ automake
    $ sudo make
    $ sudo make install
    $ cd ~/
    $ gpredict

  • Please refer to this diagram.