Open ChefDeLaSauce opened 4 years ago
I was able to compile the mojoshader library. Fnaify runs and sets up the exe! However, when I try to run I get this error that I did not expect to see:
`SDL2 was not found! Do you have fnalibs?
21:01:27 | Error | System.TypeInitializationException: The type initializer for 'Microsoft.Xna.Framework.FNAPlatform' threw an exception. ---> System.DllNotFoundException: libs/lib64/libSDL2-2.0.so
at Microsoft.Xna.Framework.SDL2_FNAPlatform.ProgramInit (Microsoft.Xna.Framework.LaunchParameters args) [0x0001b] in
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Microsoft.Xna.Framework.FNAPlatform' threw an exception. ---> System.DllNotFoundException: libs/lib64/libSDL2-2.0.so
at Microsoft.Xna.Framework.SDL2_FNAPlatform.ProgramInit (Microsoft.Xna.Framework.LaunchParameters args) [0x0001b] in
Why is it having trouble finding SDL2? I most certainly have it installed.
you may want to look at OpenBSD port for mojoshader for inspiration https://github.com/openbsd/ports/tree/master/graphics/mojoshader
It looks like your program is looking for SDL2 in a subdirectory: libs/lib64/libSDL2-2.0.so
You could try the following:
OK, that worked, but now I am getting an error with my libmojoshader.so.
To fix the SDL issue, I created a sym link in the libs/lib64 folder as libSDL2-2.0.so -> /usr/local/lib/libSDL2.so
In the libs/lib64 folder I have my compiled libmojoshader.so file.
In the launcher, I added a library path to be explicit, although this might be unnecessary.
LD_LIBRARY_PATH=/usr/local/lib:/home/brian/games/classicuo/libs/lib64
When I try to launch now, I get:
| Error | System.DllNotFoundException: libs/lib64/libmojoshader.so
at (wrapper managed-to-native) MojoShader.INTERNAL_glBestProfile(MojoShader/MOJOSHADER_glGetProcAddress,intptr,MojoShader/MOJOSHADER_malloc,MojoShader/MOJOSHADER_free,intptr)
at MojoShader.MOJOSHADER_glBestProfile (MojoShader+MOJOSHADER_glGetProcAddress lookup, System.IntPtr lookup_d, MojoShader+MOJOSHADER_malloc m, MojoShader+MOJOSHADER_free f, System.IntPtr malloc_d) [0x00000] in
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libs/lib64/libmojoshader.so
at (wrapper managed-to-native) MojoShader.INTERNAL_glBestProfile(MojoShader/MOJOSHADER_glGetProcAddress,intptr,MojoShader/MOJOSHADER_malloc,MojoShader/MOJOSHADER_free,intptr)
at MojoShader.MOJOSHADER_glBestProfile (MojoShader+MOJOSHADER_glGetProcAddress lookup, System.IntPtr lookup_d, MojoShader+MOJOSHADER_malloc m, MojoShader+MOJOSHADER_free f, System.IntPtr malloc_d) [0x00000] in
System.DllNotFoundException: libs/lib64/libmojoshader.so is confusing me, because it has been placed directly where it should be found.
Is there any *.config
file in the game's directory? Try removing those and see what happens.
Trying to run a program that supposedly is an XNA app, the ClassicUO launcher (Ultima Online). I was able to nab all the dependencies, but it requires the mojoshader library, and unfortunately I am having trouble finding this library on FreeBSD 12.1. I tried compiling the library from source, but I can't get past an objc missing library.
Curious if anyone has solved mojoshader related problems on FreeBSD. I see that OpenBSD has a port, so I was hoping to maybe... port over the port :D.