Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Trying to build this MacOs #5

Open
mstraa opened this issue Feb 25, 2022 · 5 comments
Open

[FEATURE] Trying to build this MacOs #5

mstraa opened this issue Feb 25, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@mstraa
Copy link

mstraa commented Feb 25, 2022

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 mstraa added the enhancement New feature or request label Feb 25, 2022
@progweb
Copy link
Owner

progweb commented Feb 26, 2022

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
Copy link

bfosberry commented Jun 8, 2023

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
Copy link
Owner

progweb commented Jun 8, 2023

Right, but it’s a Linux binary finally.

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

@bfosberry
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants