progweb / gpx2video

Creating video with telemetry overlay from GPX data
GNU General Public License v3.0
186 stars 10 forks source link

[BUILD] Unable to find cairo.h and libevent pkgconfig #15

Closed benfulton closed 1 year ago

benfulton commented 1 year ago

Attempting to build on Ubuntu 22.04 I saw these two errors. To successfully build I ran the following two commands:

export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/
export CPLUS_INCLUDE_PATH=/usr/include/cairo/

And the build succeeded.

progweb commented 1 year ago

You shouldn't run these commands.

I don't have the time to commit Dockerfile and add job/pipeline in github. But you can try:

docker pull ubuntu:22.04
docker run --rm -t -i -v `pwd`/../:/data --workdir=/data/ --name=gpx2video ubuntu:22.04 /bin/bash
cd gpx2video
mkdir build.ubuntu
cd build.ubuntu
apt-get update
apt-get dist-upgrade
apt-get install build-essential cmake pkg-config libevent-dev libssl-dev libcurl4-gnutls-dev libavutil-dev libavformat-dev libavcodec-dev libavfilter-dev libswresample-dev libswscale-dev libopenexr-dev libopenimageio-dev libgeographic-dev libcairo2-dev
cmake ..
make

gpx2video builds without issue.

progweb commented 1 year ago

Can’t be produced