progweb / gpx2video

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

[FEATURE] Trying to build this MacOs #5

Open mstraa opened 2 years ago

mstraa commented 2 years ago

Hi ! I'm trying to build it for MacOs (intel). Any tips ?

I will report back here if it's working. If not I will use docker and share it :)

progweb commented 2 years ago

Hi,

I think that you should be able to build the application on MacOS.

I don't know how to do it from Linux. If you can provide a mac docker so as I can test and work with it. Or a virtualbox image.

Regards,

bfosberry commented 1 year ago

I used this Dockerfile

FROM ubuntu
RUN apt-get update && \
    apt-get install -y cmake g++ libevent-dev libssl-dev libcurl4-gnutls-dev \
    libavutil-dev libavformat-dev libavcodec-dev libavfilter-dev \
    libswresample-dev libswscale-dev libopenimageio-dev libgeographic-dev \
    libcairo2-dev libopenexr-dev
WORKDIR /usr/local/src/gpx2video
ADD . .
RUN rm CMakeCache.txt
RUN cmake .
RUN make
RUN ./gpx2video -h

and then I was able to build and run it with

docker build -t gpx . && docker run -v $PWD:/share -it gpx ./gpx2video -v -m /share/video.mp4  -g /share/route.gpx -o /share/output.mp4 -l /share/layout.xml video
progweb commented 1 year ago

Right, but it’s a Linux binary finally.

I thank that you try to build for Mac in natif.

bfosberry commented 1 year ago

I had issues building native in osx, I just used docker wrapping the linux bin to get by, with the container and volumes it acts like a native CLI anyway :P

hughsaunders commented 6 months ago

Updated the dockerfile provided by @bfosberry

FROM ubuntu
RUN apt-get update && \
    apt-get install -y cmake g++ libevent-dev libssl-dev libcurl4-gnutls-dev \
    libavutil-dev libavformat-dev libavcodec-dev libavfilter-dev \
    libswresample-dev libswscale-dev libopenimageio-dev libgeographiclib-dev \
    libcairo2-dev libopenexr-dev
WORKDIR /usr/local/src/gpx2video
ADD . .
RUN rm -f CMakeCache.txt
RUN cmake .
RUN make
RUN ./gpx2video -h