While trying to build on OpenBSD the build fails because the linker can't find libmpv. by default, OpenBSD's linker only searches /usr/lib, not /usr/local/lib, so we need to tell it where to look for libmpv. Solution is to set RUSTFLAGS=-L/usr/local/lib.
It should be possible to configure Cargo so it builds ytui-music without needing this environment variable set. I tried the following in Cargo.toml:
Can someone who knows a bit more about rust toolchain advise?
Also, building openssl-sys fails on recent OpenBSD because only old LibreSSL versions are supported. The quick solution is to install openssl-1.1.1wv0 and set OPENSSL_LIB_DIR=/usr/local/lib/eopenssl11 OPENSSL_INCLUDE_DIR=/usr/local/include/eopenssl11. Of course, this is an upstream problem, but I mention it in case anyone else is trying to build under OpenBSD or you want to mention it in the build instructions.
After setting these three env variables, ytui-music builds and runs with no problems.
While trying to build on OpenBSD the build fails because the linker can't find libmpv. by default, OpenBSD's linker only searches
/usr/lib
, not/usr/local/lib
, so we need to tell it where to look for libmpv. Solution is to setRUSTFLAGS=-L/usr/local/lib
.It should be possible to configure Cargo so it builds ytui-music without needing this environment variable set. I tried the following in
Cargo.toml
:... but it didn't work :(
Can someone who knows a bit more about rust toolchain advise?
Also, building
openssl-sys
fails on recent OpenBSD because only old LibreSSL versions are supported. The quick solution is to installopenssl-1.1.1wv0
and setOPENSSL_LIB_DIR=/usr/local/lib/eopenssl11 OPENSSL_INCLUDE_DIR=/usr/local/include/eopenssl11
. Of course, this is an upstream problem, but I mention it in case anyone else is trying to build under OpenBSD or you want to mention it in the build instructions.After setting these three env variables, ytui-music builds and runs with no problems.