Open akh64bit opened 2 years ago
We are updating our build system to create pre-built binaries for different platforms. The brew installation will be updated to support installing those binaries once that is ready. In the mean time we have removed brew install from our documentation
you can use:
cargo install c2patool
to build a new c2patool on your platform.
You should make sure is is in your path with something like this:
export PATH=$PATH:/root/.cargo/bin
Hmm. Just doing a simple cargo install c2patool
inside a ubuntu:20.04 base image still didn't work for us. After a little messing around with packages, I found this config, which does appear to build and run in docker:
FROM ubuntu:20.04 as c2pa_builder
SHELL ["/bin/bash", "-c"]
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y clang curl build-essential git libssl-dev && \
curl https://sh.rustup.rs -sSf | bash -s -- -y && \
source "$HOME/.cargo/env" && \
cargo install c2patool
I'm not entirely sure if all those apt packages are necessary on ubuntu, but I was seeing some strange gcc errors before I switched to clang.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/CAI-3363 is successfully created for this GitHub issue.
Hello Team,
@sven2718 and I (Both are adobe employees akhikuma@adobe.com & ols20486@adobe.com) have been trying to build the c2patool on linux (as a docker image) using brew and it has recently started failing. It used to work well before. We suspect that recent change in the linuxbrew might be causing this failure.
You should be able to reproduce the error by trying to build the tool on ubuntu:20.04 by doing
brew install c2patool
Here are the full logs.
` ERROR [stage-2 27/31] RUN brew install c2patool 22.2s
Please let me and Sven know how to proceed. Please let us know if you need more details from us.