Skip to content

How to Build With kleisauke/libvips-packaging? #338

Description

@dsimunic

I'm trying to build weserv module on Debian 11 and link it against the pre-built libvips-cpp.so from kleisauke/libvips-packaging.

The build succeeds, but linking fails with

[100%] Linking CXX executable ../../../bin/weserv-cli
/usr/bin/ld: ../../../lib/libweserv.so.5.0.0: undefined reference to `vips::VImage::new_from_buffer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, vips::VOption*)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/tools/CMakeFiles/weserv-cli.dir/build.make:104: ../bin/weserv-cli] Error 1
make[1]: *** [CMakeFiles/Makefile2:182: src/tools/CMakeFiles/weserv-cli.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

A simple example .c file linked against that same libvips setup works, so I presume the library and paths are correct. Building against libvips-dev from apt also works, but that version depends on hundreds of files, not fun to copy around.

I made my own pkg-config for vips and vips-cpp, the files are here: https://gist.github.com/dsimunic/1d4bc350191505595071ebd7cdbc3d74, and the build script is here.

What do I need to change to successfully build weserv nginx module with the packaged libvips?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions