GithubHelp home page GithubHelp logo

Comments (2)

allenlu2008 avatar allenlu2008 commented on September 22, 2024

and on linux:

= note: /usr/lib64/libgdal.so: undefined reference to PQcmdStatus@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQfname@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQsetNoticeProcessor@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQftable@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQstatus@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQftablecol@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQconnectdb@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQescapeStringConn@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to lo_close@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQputCopyEnd@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQgetvalue@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQgetisnull@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQftype@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQfmod@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to lo_creat@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQresultStatus@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to lo_read@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQexec@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQsetClientEncoding@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQgetlength@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQputCopyData@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQgetResult@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to lo_write@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQfinish@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQclear@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQerrorMessage@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQnfields@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to lo_open@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to PQexecParams@RHPG_9.6' /usr/lib64/libgdal.so: undefined reference to PQntuples@RHPG_9.6'
/usr/lib64/libgdal.so: undefined reference to `PQresultErrorMessage@RHPG_9.6'
collect2: error: ld returned 1 exit status

= note: some extern functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the -l flag to specify native libraries to link
= note: use the cargo:rustc-link-lib directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile geo2png (bin "geo2png") due to previous error

from gdal.

Quietly-20201113 avatar Quietly-20201113 commented on September 22, 2024

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\rasterband.rs:44:24
|
44 | NearestNeighbour = GDALRIOResampleAlg::GRIORA_NearestNeighbour,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\rasterband.rs:46:16
|
46 | Bilinear = GDALRIOResampleAlg::GRIORA_Bilinear,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\rasterband.rs:48:13
|
48 | Cubic = GDALRIOResampleAlg::GRIORA_Cubic,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\rasterband.rs:50:19
|
50 | CubicSpline = GDALRIOResampleAlg::GRIORA_CubicSpline,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\rasterband.rs:52:15
|
52 | Lanczos = GDALRIOResampleAlg::GRIORA_Lanczos,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\rasterband.rs:54:15
|
54 | Average = GDALRIOResampleAlg::GRIORA_Average,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\rasterband.rs:56:12
|
56 | Mode = GDALRIOResampleAlg::GRIORA_Mode,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\rasterband.rs:58:13
|
58 | Gauss = GDALRIOResampleAlg::GRIORA_Gauss,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:29:15
|
29 | Unknown = GDALDataType::GDT_Unknown,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:31:13
|
31 | UInt8 = GDALDataType::GDT_Byte,
| ^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:34:12
|
34 | Int8 = GDALDataType::GDT_Int8,
| ^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:36:14
|
36 | UInt16 = GDALDataType::GDT_UInt16,
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:38:13
|
38 | Int16 = GDALDataType::GDT_Int16,
| ^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:40:14
|
40 | UInt32 = GDALDataType::GDT_UInt32,
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:42:13
|
42 | Int32 = GDALDataType::GDT_Int32,
| ^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:45:14
|
45 | UInt64 = GDALDataType::GDT_UInt64,
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:48:13
|
48 | Int64 = GDALDataType::GDT_Int64,
| ^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:50:15
|
50 | Float32 = GDALDataType::GDT_Float32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

error[E0308]: mismatched types
--> C:\Users\dell.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-0.16.0\src\raster\types.rs:52:15
|
52 | Float64 = GDALDataType::GDT_Float64,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32

For more information about this error, try rustc --explain E0308.
error: could not compile gdal (lib) due to 19 previous errors

本地安装gdal 3.8.4 rust插件0.16.0

from gdal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.