cartographer-project / point_cloud_viewer

View billions of points in your browser.
Apache License 2.0
339 stars 98 forks source link

fail to build SDL client #144

Open SeanGuoXuan opened 6 years ago

SeanGuoXuan commented 6 years ago

I fail to build SDL client at step 3: cargo build --release. I got the following error msg:

cargo build --release Compiling point_viewer_grpc_proto_rust v0.1.0 (file:///home/sean/sean/cartographer_ws/point_cloud_viewer-master/point_viewer_grpc_proto_rust) Compiling collision v0.18.0 error: failed to run custom build command for point_viewer_grpc_proto_rust v0.1.0 (file:///home/sean/sean/cartographer_ws/point_cloud_viewer-master/point_viewer_grpc_proto_rust) process didn't exit successfully: /home/sean/sean/cartographer_ws/point_cloud_viewer-master/target/release/build/point_viewer_grpc_proto_rust-d13b2a85d9c9c3b2/build-script-build (exit code: 101) --- stdout cargo:rerun-if-changed=point_viewer_proto_rust/src/proto.proto --- stderr thread 'main' panicked at 'called Option::unwrap() on a None value', libcore/option.rs:335:21 note: Run with RUST_BACKTRACE=1 for a backtrace. warning: build failed, waiting for other jobs to finish... error: build failed

Before building sdl client, I have already installed "rust gRPC protobuf plugin". Under "${HOME}/.cargo/bin", I do see grpc_rust_plugin. Also, PATH variable has "/home/sean/.cargo/bin" section. Can someone give help on my issue?

SeanGuoXuan commented 6 years ago

I think I figure out the resaon: build.rs is looking for '.git' file as a sign of root dir. However, I download the repro so there is no git file.

while !path.join(".git").exists() { path = path.parent().unwrap(); }

SirVer commented 6 years ago

That is the likely reason. Would you provide a fix?

cediy2088 commented 6 years ago

cd point_cloud_viewer

git init .

then recompile