gpx2video icon indicating copy to clipboard operation
gpx2video copied to clipboard

[FEATURE] Trying to build this MacOs

Open mstraa opened this issue 3 years ago • 5 comments

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 :)

mstraa avatar Feb 25 '22 13:02 mstraa

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,

progweb avatar Feb 26 '22 09:02 progweb

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

bfosberry avatar Jun 08 '23 17:06 bfosberry

Right, but it’s a Linux binary finally.

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

progweb avatar Jun 08 '23 20:06 progweb

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

bfosberry avatar Jun 08 '23 20:06 bfosberry

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

hughsaunders avatar May 16 '24 21:05 hughsaunders

Docker build integrated

progweb avatar Dec 23 '24 14:12 progweb