root
hecs //crate
fmod-sys //crate(also contains duplicates libfmodL.so and etc)
src
libfmodL.so.12.11
fmod.dll //windows only dlls
...etc
it links fine on windows though... all the lib files are in the root of the project..... idk why it cant find it... when it can on windows. On this note, the FMOD sound library comes with .libs and .dlls while the linux ones comes with only .so.12.11 files and .so being a symbolic link to those so i just renamed the .so.12.11 ones.
Alright I removed them and it still couldn't find it. I tried uncommenting:
let dir = env::var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-search={}", dir);
and now it's saying:
target/debug/fmod_linking_test: error while loading shared libraries: libfmodstudioL.so.12: cannot open shared object file: No such file or directory
I don't know why but fmod included these as symbolic links
lrwxrwxrwx 16 a 8 Aug 18:06 libfmod.so -> libfmod.so.12.11
lrwxrwxrwx 16 a 8 Aug 18:06 libfmod.so.12 -> libfmod.so.12.11
.rwxrwxrwx 1.6M a 8 Aug 9:31 libfmod.so.12.11
.rwxrwxrwx 1.9M a 8 Aug 9:31 libfmodL.so.12
lrwxrwxrwx 22 a 8 Aug 18:06 libfmodstudio.so -> libfmodstudio.so.12.11
lrwxrwxrwx 22 a 8 Aug 18:06 libfmodstudio.so.12 -> libfmodstudio.so.12.11
.rwxrwxrwx 1.6M a 8 Aug 9:31 libfmodstudio.so.12.11
lrwxrwxrwx 23 a 8 Aug 18:06 libfmodstudioL.so -> libfmodstudioL.so.12.11
lrwxrwxrwx 23 a 8 Aug 18:06 libfmodstudioL.so.12 -> libfmodstudioL.so.12.11
.rwxrwxrwx 2.4M a 8 Aug 9:31 libfmodstudioL.so.12.11
I tried getting rid of the symbolic link files and just renaming the files it points to, to the said thing but it still no luck..