Closed sectortechadmin closed 2 years ago
Hi @sectortechadmin - how are you installing OBS at the moment? I'm testing building the examples using an OBS installed with chocolatey:
It's possible that other versions of the OBS installer don't install the library or install the library to a different place. If you know where it is you can use the LIBOBS_PATH
environment variable to point to the right place: https://github.com/bennetthardwick/rust-obs-plugins/blob/13468fe084f6edc7dd223a56d8a0e7f1b77fb2ca/obs-sys/build_win.rs#L34-L37
Hope that helps, let me know how you go!
@bennetthardwick thank you, I have it installed via choco as well. What's the preferred way to set the env variable? And could it point to the libobs
folder in the obs-sys/obs
git submodule?
@sectortechadmin depends on the shell you're using I suppose but you should be able to do something like LIBOBS_PATH=".." cargo build
.
And could it point to the libobs folder in the obs-sys/obs git submodule?
I'm fair sure it needs to point to the compiled libobs.lib or libobs.dll file (so clue where that is on Windows). The libobs folder in the submodule contains the source files.
@sectortechadmin depends on the shell you're using I suppose but you should be able to do something like
LIBOBS_PATH=".." cargo build
.And could it point to the libobs folder in the obs-sys/obs git submodule?
I'm fair sure it needs to point to the compiled libobs.lib or libobs.dll file (so clue where that is on Windows). The libobs folder in the submodule contains the source files.
Still having trouble. I already do use obs from choco but I'll try building on a fresh machine soon.
Might I be able to get any useful information looking at the Actions logs of this repo? On windows we have 3 different libobs dlls, and I tried using all three with no luck. Maybe I can try and discern where its getting the compiled libraries from in the Actions..
EDIT: it's builds now! thanks. i wound up reinstalling my entire build environment. i was using chocolatey's rust
and rustup
packages to no avail so i did a clean install using this article.
EDIT: it's builds now! thanks. i wound up reinstalling my entire build environment. i was using chocolatey's
rust
andrustup
packages to no avail so i did a clean install using this article
Nice, glad you got it working! Sounds like something very odd was going on.
cargo build --release
in each example plugin folder:Looks like I can't get it to link against lib-obs? Using
rust 1.64.0
andllvm 15.0.3
via Chocolatey for reference.