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

[bug] FFMPEG fails to build ( Openssl error) #17384

Open
SOLDATO2 opened this issue Nov 27, 2024 · 4 comments
Open

[bug] FFMPEG fails to build ( Openssl error) #17384

SOLDATO2 opened this issue Nov 27, 2024 · 4 comments
Assignees

Comments

@SOLDATO2
Copy link

SOLDATO2 commented Nov 27, 2024

Describe the bug

I am able to sucessfully build the same project on windows with msvc, however I'm currently getting a build error in an arch based linux system.

Here's a complete log

OS specs:

Conan version: 2.7.1
Linux: Linux 6.10.13-3-MANJARO
OS: Manjaro Linux x86_64

GCC: gcc (GCC) 14.2.1 20240910

Here's the project I'm trying to build on linux.

How to reproduce it

conan install . --build=missing

@memsharded memsharded self-assigned this Nov 27, 2024
@memsharded
Copy link
Member

Hi @SOLDATO2

Thanks for your report I am having a look.

The package that is failing to build is ffmpeg/4.4.4, not opencv. I am trying to reproduce on my ubuntu with:

conan install --requires=ffmpeg/4.4.4 --build=missing -o libalsa*:shared=True

I needed to use the libalsa*:shared=True, otherwise I was getting an invalid configuration exception. This seems something recent, probably some update in ConanCenter recipes, we are having a look too.

But overall, it seems it worked. It would be great to have some docker image in which we could reproduce the issue, it seems it could be something specific to the distro.

@SOLDATO2
Copy link
Author

SOLDATO2 commented Nov 27, 2024

here's a docker imanaged to get working, It's getting the same error.

FROM archlinux:latest

RUN pacman -Syu --noconfirm && \
    pacman -S --noconfirm base-devel git sudo cmake


RUN rm -fr /etc/pacman.d/gnupg && \
    pacman-key --init && \
    pacman-key --populate archlinux


RUN useradd -m builder && \
    echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers


USER builder
WORKDIR /home/builder

RUN git clone https://aur.archlinux.org/yay.git && \
    cd yay && \
    makepkg --noconfirm -si && \
    cd .. && \
    rm -rf yay

RUN yay -S --noconfirm conan

WORKDIR /home/builder/project

COPY --chown=builder:builder . /home/builder/project

RUN conan profile detect --force && \
    echo "[conf]" >> ~/.conan2/profiles/default && \
    echo "tools.system.package_manager:mode=install" >> ~/.conan2/profiles/default && \
    echo "tools.system.package_manager:sudo=True" >> ~/.conan2/profiles/default

RUN conan install . --build=missing

RUN mkdir build && cd build && \
    cmake .. && \
    make

CMD ["./build/CustomDoorIcons"]

@SOLDATO2 SOLDATO2 changed the title [bug] OpenCV fails to build ( Openssl error) [bug] FFMPEG fails to build ( Openssl error) Nov 27, 2024
@memsharded
Copy link
Member

Hi @SOLDATO2

Thanks for your docker file, that will help.

I am trying to reproduce with it, but I am finding some network blocking:

1.639 fatal: unable to access 'https://aur.archlinux.org/yay.git/': SSL peer certificate or SSH remote key was not OK

likely corporate firewall, I'll try to workaround it.

@memsharded
Copy link
Member

I have been able to reproduce, just some minor modifications to the dockerfile to make it work:

USER builder
WORKDIR /home/builder

RUN sudo pacman -S python-pip --noconfirm
ENV VIRTUAL_ENV=.env
RUN python -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install conan
RUN conan version


RUN conan profile detect --force && \
    echo "[conf]" >> ~/.conan2/profiles/default && \
    echo "tools.system.package_manager:mode=install" >> ~/.conan2/profiles/default && \
    echo "tools.system.package_manager:sudo=True" >> ~/.conan2/profiles/default

# RUN conan install --requires=ffmpeg/4.4.4 --build=missing 

The last line is commented so I can test it inside the container and check things, but it reproduces the error.
I have no idea what could be happening. This is working in many other Linux distro, there is something different in how ArchLinux works that I don't know, and I don't have any idea yet what it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants