Skip to content

[vcpkg baseline] [gdal] Fix build errors on linux and osx#14866

Merged
strega-nil merged 1 commit intomicrosoft:masterfrom
PhoebeHui:dev/Phoebe/gdal
Dec 1, 2020
Merged

[vcpkg baseline] [gdal] Fix build errors on linux and osx#14866
strega-nil merged 1 commit intomicrosoft:masterfrom
PhoebeHui:dev/Phoebe/gdal

Conversation

@PhoebeHui
Copy link
Contributor

Related to #14785 (comment)

Building gdal --without-jasper
When installing jasper before gdal, gdal will fail on linux and osx, this is source issue OSGeo/gdal#2981, and jasper has updaged to 2.0.20 in vcpkg, this issue still exist.

jpeg2000dataset.cpp: In member function ‘int JPEG2000Dataset::DecodeImage()’:
jpeg2000dataset.cpp:516:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (poBand->iDepth != jas_image_cmptprec( psImage, iBand ) ||
                                ^
jpeg2000_vsil_io.cpp:154:1: error: invalid conversion from ‘int (*)(jas_stream_obj_t*, char*, unsigned int) {aka int (*)(void*, char*, unsigned int)}’ to ‘int (*)(jas_stream_obj_t*, const char*, unsigned int) {aka int (*)(void*, const char*, unsigned int)}’ [-fpermissive]
 };
 ^
make[2]: *** [../o/jpeg2000_vsil_io.lo] Error 1
make[1]: *** [jpeg2000-install-obj] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [frmts-target] Error 2

It doesn't need to test features.

@PhoebeHui PhoebeHui added category:port-bug The issue is with a library, which is something the port should already support info:internal labels Dec 1, 2020
@strega-nil strega-nil merged commit 46e6bad into microsoft:master Dec 1, 2020
@PhoebeHui PhoebeHui deleted the dev/Phoebe/gdal branch June 17, 2021 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants