mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-23 08:45:31 +00:00
fixed linker
This commit is contained in:
2
Makefile
2
Makefile
@ -15,4 +15,4 @@ libovr-rs-44316370-0.1.so: libovr_wrapper.a lib.rs
|
|||||||
rustc lib.rs -L .
|
rustc lib.rs -L .
|
||||||
|
|
||||||
test: test.rs libovr-rs-44316370-0.1.so
|
test: test.rs libovr-rs-44316370-0.1.so
|
||||||
rustc test.rs -L . --link-args="-lovr -ludev -lstdc++ -lc -lX11 -lm -lpthread -lXinerama"
|
rustc test.rs -L .
|
||||||
|
6
lib.rs
6
lib.rs
@ -11,9 +11,11 @@ use cgmath::quaternion::Quat;
|
|||||||
use cgmath::vector::Vec3;
|
use cgmath::vector::Vec3;
|
||||||
use cgmath::matrix::Mat4;
|
use cgmath::matrix::Mat4;
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[link(name="udev")]
|
||||||
|
#[link(name="stdc++")]
|
||||||
|
#[link(name="Xinerama")]
|
||||||
#[link(name="ovr_wrapper")]
|
#[link(name="ovr_wrapper")]
|
||||||
extern {}
|
|
||||||
|
|
||||||
#[link(name="ovr")]
|
#[link(name="ovr")]
|
||||||
extern {}
|
extern {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user