tomm / fab-agon-emulator

Agon Light, Agon Light 2, Agon Console8 Emulator for Linux, Windows, any system with libSDL
GNU General Public License v3.0
87 stars 19 forks source link

Error during compilaton x86 #54

Open DimastyK opened 6 months ago

DimastyK commented 6 months ago

fab-agon-emulator.exe said: thread 'main' panicked at src\vdp_interface.rs:59:77: called Result::unwrap() on an Err value: LoadLibraryExW { source: Os { code: 193, kind: Uncategorized, message: "%1 не является приложением Win32." } } note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

maxgerhardt commented 4 months ago

CC @tomm it seems like when I build the emulator in MSys2 per instructions, it hard compiles in some paths within the MSys2 filesystem which od not exist, resulting in LoadLibraryExW not finding the file.

C:\Users\Max\Downloads\fab-agon-2>fab-agon-emulator.exe --verbose
VDP firmware: "C:/msys64/home/Max/work/fab-agon-emulator\\share\\fab-agon-emulator\\vdp_console8.so"
thread 'main' panicked at src\vdp_interface.rs:59:77:
called `Result::unwrap()` on an `Err` value: LoadLibraryExW { source: Os { code: 126, kind: Uncategorized, message: "Das angegebene Modul wurde nicht gefunden." } }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Can the emulator be made to serach in just the relative firmware directory instead of searching for compile-time generated paths?

maxgerhardt commented 4 months ago

Nevermind, I did a make clean and make -j8 again and the binary fixed itself up. Might have to do with running PREFIX=/home/Max/work/fab-agon-emulator make beforehand.

DimastyK commented 4 months ago

Nevermind, I did a make clean and make -j8 again and the binary fixed itself up. Might have to do with running PREFIX=/home/Max/work/fab-agon-emulator make beforehand.

well, I managed issue, compiled .exe requires some library from mingw32: libstdc++-6.dll libgcc_s_dw2-1.dll libwinpthread-1.dll SDL2.dll

btw. emulator crashes if plot routine outside of screen.