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

fail to build SDL client #144

Open
SeanGuoXuan opened this issue Jul 18, 2018 · 3 comments
Open

fail to build SDL client #144

SeanGuoXuan opened this issue Jul 18, 2018 · 3 comments

Comments

@SeanGuoXuan
Copy link

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
Copy link
Author

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
Copy link
Contributor

SirVer commented Jul 19, 2018

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

@cediy2088
Copy link

#cd point_cloud_viewer
#git init .
then recompile

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

3 participants