diff --git a/Cargo.toml b/Cargo.toml index 8ced1f8..2103c0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Luca Barbato "] license = "MIT" description = "NVIDIA Video Codec bindings" repository = "https://github.com/rust-av/nvidia-video-codec-rs" -readme = "../README.md" +readme = "README.md" keywords = ["NVIDIA", "cuvid", "nvenc"] [dependencies] diff --git a/README.md b/README.md index cf757f4..decc15b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ It is a simple [binding][1] and safe abstraction over the [nvidia video codec sd The bindings are generated using the headers and libraries that ought to be present in the system. -By default the headers are looked up on `/opt/cuda/include` and `/opt/nvidia-video-codec` and the libraries are assumed to be present in the default path (and provided by the driver). +By default the headers are looked up on `/opt/cuda/include` and `/opt/nvidia-video-codec/include` and the libraries are assumed to be present in the default path (and provided by the driver). It is possible to override the search paths for the headers by setting the environment variables `CUDA_INCLUDE_PATH` and `NVIDIA_VIDEO_CODEC_INCLUDE_PATH`. diff --git a/nvidia-video-codec-sys/build.rs b/nvidia-video-codec-sys/build.rs index dbe33d8..893a946 100644 --- a/nvidia-video-codec-sys/build.rs +++ b/nvidia-video-codec-sys/build.rs @@ -39,7 +39,7 @@ fn find_dir(default: &'static str, env_key: &'static str) -> PathBuf { fn main() { let cuda_include = find_dir("/opt/cuda/include", "CUDA_INCLUDE_PATH"); - let nvc_include = find_dir("/opt/nvidia-video-codec/", + let nvc_include = find_dir("/opt/nvidia-video-codec/include", "NVIDIA_VIDEO_CODEC_INCLUDE_PATH"); // TODO support windows