git clone --recurse-submodules -j8 https://github.com/joshinils/baproj
cd baproj
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j "$(nproc)" baproject
cd ..
(cmake needs a C++ compiler)
build/baproject
for example this one: https://www.vbb.de/unsere-themen/vbbdigital/api-entwicklerinfos/datensaetze
this then has to be extracted into a folder named (explicitly, for now) BVG_VBB_bereichsscharf
.
i.e. the folder structure is:
baproj
├── [various source files, including main.cpp]
├── build
│ ├── baproject [the executable]
│ ├── [CMake files]
│ └── Makefile
├── BVG_VBB_bereichsscharf
│ ├── agency.txt
│ ├── calendar_dates.txt
│ ├── calendar.txt
│ ├── frequencies.txt
│ ├── pathways.txt
│ ├── routes.txt
│ ├── shapes.txt
│ ├── stops.txt
│ ├── stop_times.txt
│ ├── transfers.txt
│ └── trips.txt
│ or more, or less, this is an example
│
├── graph
│ ├── [submodule files]
├── idea
│ ├── skizze_1.jpg
│ └── skizze_2.jpg
├── README.md
├── .git
├── .gitignore
└── .gitmodules
install opengl:
sudo apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev -y
png.h
missing or another library:
sudo apt install libpng-dev libxinerama-dev libxrandr-dev libxi-dev libxcursor-dev libxxf86vm-dev -y