Skip to content

Building to a specific directory #282

Description

@brandoncc

First off, thank you for this library.

I am attempting to use it in a heroku buildpack, and I'm having trouble building to a specific location.

This is how I build libheif:

ARG HEIF_VERSION=1.10.0
ARG HEIF_URL=https://github.com/strukturag/libheif/releases/download

RUN cd /usr/src \
  && wget ${HEIF_URL}/v${HEIF_VERSION}/libheif-${HEIF_VERSION}.tar.gz \
	&& tar xf libheif-${HEIF_VERSION}.tar.gz \
	&& cd libheif-${HEIF_VERSION} \
	&& ./autogen.sh \
	&& ./configure --prefix=/usr/src/vips --disable-gtk-doc \
	&& make \
	&& make install

I'm attempting to do the equivalent for libde265, so I did this:

ARG DE256_VERSION=1.0.8
ARG DE256_URL=https://github.com/strukturag/libde265/releases/download

RUN cd /usr/src \
  && wget ${DE256_URL}/v${DE256_VERSION}/libde265-${DE256_VERSION}.tar.gz \
	&& tar xf libde265-${DE256_VERSION}.tar.gz \
	&& cd libde265-${DE256_VERSION} \
	&& mkdir -p build \
	&& mkdir -p /usr/src/libde265 \
	&& cd build \
	&& cmake .. \
	&& make \
	&& DESTDIR=/usr/src/libde265 make install \
  && cp -R /usr/src/libde265/usr/local/* /usr/src/vips/

This didn't work as well as I had hoped. John (libvips author) has pointed out that it looks like pkgconfig can't find libde265.

For reference, here is my whole Dockerfile.

Could you please assist me in building the library in a way that will work for my use case? I found this line and these lines, which I think might be part of the solution. I don't know C/C++ though, so I don't know how to utilize them.

Thanks again.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions