agent59 / geosteiner-rs-template Goto Github PK
View Code? Open in Web Editor NEWA template for working with the geosteiner C library in Rust
A template for working with the geosteiner C library in Rust
I don't understand rust very well.
When I tried to runnig I encountered the following problems. I don't understand what went wrong? Need your help
XXX@XXX:/home/XXX/test/geosteiner-rs-template# cargo build
warning: fields `p1` and `p2` are never read
--> src/geosteiner.rs:18:5
|
17 | pub struct Edge {
| ---- fields in this struct
18 | p1: i32, // number of point 1
| ^^
19 | p2: i32, // number of point 2
| ^^
|
= note: `Edge` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
warning: `geosteiner-rs-template` (lib) generated 1 warning
Compiling geosteiner-rs-template v0.1.0 (/home/pan/test/geosteiner-rs-template)
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcgBi8SB/symbols.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.1g3ba6kf09fska78.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.2ilpc5wwpqehbpy7.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.3bl4iwj58idpbll1.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.3qz1nnqnwod0bol.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.3wx1zrzgnon9xhvt.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.41pleo7a66zhtsnt.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.473wzdkye83em5kh.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.48689ywvp8bywmmc.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.4aqbbhamosycmzhm.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.4s3zjxrpbzw3ol2c.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.5gbvjkazt5zp6n5g.rcgu.o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064.2jgc1fu9p30hw2to.rcgu.o" "-Wl,--as-needed" "-L" "/home/pan/test/geosteiner-rs-template/target/debug/deps" "-L" "src/geosteiner" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/pan/test/geosteiner-rs-template/target/debug/deps/libgeosteiner_rs_template-ab7d8c8882fd771d.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8f88c761e33f2651.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-f9018f9cee1cc5ff.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-919f89587cbed68d.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-c6624cb4360306cd.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-4930b3dc482158f7.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-65bea4bb6af40828.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bc6864da821ce9a2.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-1bccb7a942e1b311.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-356231f77d1e268a.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-80ed5799bf463787.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-9c3df673b2797081.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c6afbee8d1102512.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-682387162b570769.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-05a2cedbb78c1d4f.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-f002c8f83a289c4b.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-649be05783c8912e.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-13da980d6c74fec5.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-46a989d0e2cef827.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b114db70ea0690b1.rlib" "-Wl,-Bdynamic" "-lrs_geosteiner" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/pan/test/geosteiner-rs-template/target/debug/deps/geosteiner_rs_template-978b7efc25bd4064" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /usr/bin/ld: cannot find -lrs_geosteiner
collect2: error: ld returned 1 exit status
error: could not compile `geosteiner-rs-template` (bin "geosteiner-rs-template") due to previous error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.