Skip to content

[gdal] linux build does not get dependencies from vcpkg #8943

@pwm1234

Description

@pwm1234

Is your feature request related to a problem? Please describe.
The linux vcpkg build of gdal does not get its dependencies from vcpkg. The configure command needs to refer to the vcpkg install path so it finds its dependencies there. For example, xerces-c or tiff. They are found in /usr not in the vcpkg install path.

I am not sure how to change to portfile, but here is how I built gdal using the vcpkg install directory as $vcpkg

LDFLAGS=-L$vcpkg/lib \
    CFLAGS=-I$vcpkg/include \
    ./configure \
        --prefix=$pkg \
        --disable-shared \
        --enable-static \
        --with-pic \
        --with-curl=$vcpkg \
        --with-expat=$vcpkg \
        --with-geos=yes \
        --with-geotiff=$vcpkg \
        --with-hdf5=$vcpkg \
        --with-libkml=$vcpkg \
        --with-liblzma=yes \
        --with-libtiff=$vcpkg\
        --with-libz=$vcpkg\
        --with-openjpeg=$vcpkg \
        --with-png=$vcpkg \
        --with-proj=$vcpkg \
        --with-proj=$vcpkg \
        --with-spatialite=$vcpkg \
        --with-sqlite3=$vcpkg \
        --with-webp=$vcpkg \
        --with-xerces=$vcpkg \
        --with-xml2=$vcpkg 

(I am not sure if the gdal build is using the vcpkg geos -- there is some strange behavior regarding the [missing] geos config file.)

Metadata

Metadata

Assignees

Labels

category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t exist

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions