Skip to content

Fix build when the webpsave feature is disabled #3107

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

Closed
wants to merge 1 commit into from

Conversation

dloebl
Copy link
Contributor

@dloebl dloebl commented Oct 20, 2022

Before:

$ meson setup build -Dwebp=disabled
$ meson compile -C build

[..]
../libvips/foreign/webpsave.c:1254:21: error: unknown type name 'VipsImage'
vips_webpsave_mime( VipsImage *in, ... )
                    ^
../libvips/foreign/webpsave.c:1260:11: error: implicit declaration of function 'vips_call_split' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        result = vips_call_split( "webpsave_mime", ap, in );
                 ^
../libvips/foreign/webpsave.c:1295:23: error: unknown type name 'VipsImage'
vips_webpsave_target( VipsImage *in, VipsTarget *target, ... )
                      ^
../libvips/foreign/webpsave.c:1295:38: error: unknown type name 'VipsTarget'
vips_webpsave_target( VipsImage *in, VipsTarget *target, ... )
                                     ^
../libvips/foreign/webpsave.c:1301:11: error: implicit declaration of function 'vips_call_split' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        result = vips_call_split( "webpsave_target", ap, in, target );
                 ^
1 warning and 19 errors generated.
[69/505] Compiling C object libvips/deprecated/libdeprecated.a.p/freq_dispatch.c.o
ninja: build stopped: subcommand failed.

After:

$ meson setup build -Dwebp=disabled
$ meson compile -C build

[..]
[505/505] Linking target cplusplus/libvips-cpp.42.dylib

@dloebl dloebl closed this Oct 20, 2022
@dloebl dloebl deleted the fix-disabled-webpsave-build branch October 21, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant