Skip to content
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

Why can not build on ubantu? Do I lose some package? #199

Closed
mty0716 opened this issue Jul 30, 2021 · 2 comments
Closed

Why can not build on ubantu? Do I lose some package? #199

mty0716 opened this issue Jul 30, 2021 · 2 comments

Comments

@mty0716
Copy link

mty0716 commented Jul 30, 2021

Would you help ? Thank you please.

This is my error issue:

warning: unused import: Serialize
--> src/main.rs:17:13
|
17 | use serde::{Serialize, Deserialize};
| ^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: use of deprecated associated function std::error::Error::description: use the Display impl or to_string()
--> src/main.rs:369:24
|
369 | error!("{}", e.description());
| ^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default

warning: use of deprecated associated function std::error::Error::description: use the Display impl or to_string()
--> src/fun_c.rs:16:40
|
16 | error!("{}", e.description());
| ^^^^^^^^^^^

warning: use of deprecated associated function std::error::Error::description: use the Display impl or to_string()
--> src/fun_c.rs:40:36
|
40 | error!("{}", e.description());
| ^^^^^^^^^^^

warning: use of deprecated associated function std::error::Error::description: use the Display impl or to_string()
--> src/fun_c.rs:45:32
|
45 | error!("{}", e.description());
| ^^^^^^^^^^^

warning: this method call currently resolves to <&[T; N] as IntoIterator>::into_iter (due to autoref coercions), but that might change in the future when IntoIterator impls for arrays are added.
--> src/shape.rs:78:33
|
78 | for &x in [2, 3, 5].into_iter() {
| ^^^^^^^^^ help: use .iter() instead of .into_iter() to avoid ambiguity: iter
|
= note: #[warn(array_into_iter)] on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #66145 rust-lang/rust#66145

error: linking with cc failed: exit status: 1

...
...
...

error: aborting due to previous error; 6 warnings emitted

error: could not compile _3dtile

@mty0716 mty0716 changed the title Why can not build on unbantu? Do I lose some package? Why can not build on ubantu? Do I lose some package? Jul 30, 2021
@mty0716
Copy link
Author

mty0716 commented Jul 30, 2021

And I just want to use the function 'shapefile to 3dtiles', can I only extract this module?

@fanvanzh
Copy link
Owner

A1: your code seem not to be the latest version.

A2: yes, you can compile the shp23dtile.cpp using g++.

@mty0716 mty0716 closed this as completed Aug 9, 2021
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

No branches or pull requests

2 participants