-
Notifications
You must be signed in to change notification settings - Fork 96
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
Error reported when cross compiling on Windows #524
Comments
and on linux: = note: /usr/lib64/libgdal.so: undefined reference to = note: some error: could not compile |
error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types For more information about this error, try 本地安装gdal 3.8.4 rust插件0.16.0 |
I need to cross-compile the Linux environment on Windows. Run the command as follows:
cargo build --release --target=x86_64-unknown-linux-musl
output:
Compiling gdal-sys v0.9.1
Compiling nalgebra v0.30.1
Compiling itertools v0.10.5
Compiling log v0.4.20
Compiling float_next_after v1.0.0
Compiling bitflags v2.4.2
Compiling rand v0.8.5
Compiling lazy_static v1.4.0
Compiling dotenv v0.15.0
Compiling gdal v0.16.0
Compiling geo v0.28.0
error: could not find native static library
gdal_i
, perhaps an -L flag is missing?error: could not compile
gdal-sys
(lib) due to 1 previous errorwarning: build failed, waiting for other jobs to finish...
but cargo build --release
complie success。
why?
The text was updated successfully, but these errors were encountered: