GithubHelp home page GithubHelp logo

Comments (5)

axi92 avatar axi92 commented on May 23, 2024

If somebody needs it for a Dockerfile you can use that code as a build stage:

FROM ubuntu:22.04 AS builder

ARG OSSLSIGNCODE_VERSION=2.5

RUN apt update && apt install -y -qq --no-install-recommends build-essential pkg-config libssl-dev libcurl4-openssl-dev clang-15 wget cmake && \
  wget --no-check-certificate https://github.com/mtrojnar/osslsigncode/releases/download/${OSSLSIGNCODE_VERSION}/osslsigncode-${OSSLSIGNCODE_VERSION}.tar.gz && \
  tar -xf osslsigncode-${OSSLSIGNCODE_VERSION}.tar.gz && \
  rm *.tar.gz && \
  cd osslsigncode-${OSSLSIGNCODE_VERSION} && \
  mkdir build && cd build && cmake -S=../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-15 && \
  cmake --build . && \
  cp /osslsigncode-${OSSLSIGNCODE_VERSION}/build/osslsigncode /osslsigncode

And copy it later into your image when you need it:
COPY --from=builder /osslsigncode /usr/local/bin/osslsigncode

from osslsigncode.

mtrojnar avatar mtrojnar commented on May 23, 2024

-DCMAKE_C_COMPILER=clang

Yes, if you force a compiler other than the one installed with build-essential (i.e., gcc), you need to install the compiler first. This is not specific to osslsigncode, and it should not have surprised you.

from osslsigncode.

axi92 avatar axi92 commented on May 23, 2024

My bad I don't work often with C or C++.
I took clang because I followed the readme:

-DCMAKE_C_COMPILER=clang

from osslsigncode.

mtrojnar avatar mtrojnar commented on May 23, 2024

Good point! It's indeed not clear that those are examples of configurable build parameters, and not the required build parameters.
@olszomal could you fix it?

from osslsigncode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.