Open tunecrew opened 3 years ago
I do not have a mac accessible... it might be possible that the libavcodec, format etc. are generated in a different location or with a different name? It should be ./libav-12.3/libavformat/libaviformat.a
The Mac part should not matter as this is a Docker build - the error doesn't seem to be to do with not finding files, rather it is those undefined reference
errors.
Is it possible some other dependency of either untrunc
or libav
has updated and is causing this? Can you pin the versions in the dockerfile?
I did just successfully complete a build on this on a windows machine. So I do not think it is any dependency issues of the packages.
E:\Untrunc\untrunc>docker build -t untrunc . [+] Building 319.9s (17/17) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.43kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/ubuntu:bionic 2.1s => [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s => [internal] load build context 0.1s => => transferring context: 588.70kB 0.0s => [build 1/9] FROM docker.io/library/ubuntu:bionic@sha256:3b8692dc4474d4f6043fae285676699361792ce1828e22b1b5736 2.3s => => resolve docker.io/library/ubuntu:bionic@sha256:3b8692dc4474d4f6043fae285676699361792ce1828e22b1b57367b5c05 0.0s => => sha256:3b8692dc4474d4f6043fae285676699361792ce1828e22b1b57367b5c05457e3 1.41kB / 1.41kB 0.0s => => sha256:c404618e908391e50953e1ead94fe05dbbddbf532bd5c89b935ef34a9ca130d3 529B / 529B 0.0s => => sha256:fbf60236a8e3dd08a08966064a8ac9f3943ecbffa6ae2ad9bc455974b956412c 1.46kB / 1.46kB 0.0s => => sha256:e7ae86ffe2df0787131a4c49ace1b018fd38d62929b007d86bdd1f825e56a852 26.71MB / 26.71MB 1.1s => => extracting sha256:e7ae86ffe2df0787131a4c49ace1b018fd38d62929b007d86bdd1f825e56a852 1.0s => [build 2/9] RUN apt-get update && apt-get -y install libavformat-dev libavcodec-dev libavut 248.1s => [build 3/9] WORKDIR /untrunc 0.1s => [build 4/9] RUN wget https://github.com/libav/libav/archive/v12.3.zip && unzip v12.3.zip && rm v12.3. 3.3s => [build 5/9] WORKDIR /untrunc/libav-12.3/ 0.1s => [build 6/9] RUN ./configure && make -j8 54.8s => [build 7/9] WORKDIR /untrunc 0.1s => [build 8/9] ADD . . 0.1s => [build 9/9] RUN /usr/bin/g++ -o untrunc main.cpp atom.cpp mp4.cpp file.cpp track.cpp 8.0s => [stage-1 2/3] COPY --from=build /untrunc/untrunc /untrunc 0.2s => [stage-1 3/3] RUN useradd untrunc 0.4s => exporting to image 0.3s => => exporting layers 0.3s => => writing image sha256:db720db0379454f212dd33ca1dd6c1a15a80dd07792efa7b8a61f01aee451050 0.0s => => naming to docker.io/library/untrunc 0.0s
Tried this on both an Intel and M1 Mac, running latest Docker Desktop (3.5.2).
Tried
docker build
,docker buildx build
, anddocker buildx build --platform linux/amd64
.Tried the suggestions in https://github.com/ponchio/untrunc/issues/211.
This is the output no matter what platform/command/dockerfile variation is used: