This is a simple GTK application that uses osmgpsmap
to display maps and tracks the current location of the ISS using the Open Notify API.
Before you can compile and run this application, you need to have the following software installed:
- GCC (GNU Compiler Collection)
- pkg-config
- GLib 2.0 development files
- GTK+ 3.0 development files
- libosmgpsmap development files
- cURL
- json-c
You can install all the necessary packages using apt
:
sudo apt update
sudo apt install gcc pkg-config libglib2.0-dev libgtk-3-dev libosmgpsmap-1.0-dev libcurl4-openssl-dev libjson-c-dev
You can compile the application using the following command:
gcc -o main main.c $(pkg-config --cflags --libs glib-2.0 gtk+-3.0 osmgpsmap-1.0) -lcurl -ljson-c
This will create an executable file that can be opened with
./main