[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.10149296 [View]
File: 692 KB, 2320x1600, cat enjoying perfect dark.jpg [View same] [iqdb] [saucenao] [google]
10149296

>>10149274
I use msys2 which has mingw32 packages so it should be the same software but comes with the pacman package manager.
https://github.com/fgsfdsfgs/perfect_dark/issues/2
gives the package names so I just did
`pacman -S mingw-w64-i686-toolchain mingw-w64-i686-SDL2 mingw-w64-i686-zlib`
Then ran `make -f Makefile.port`. It's possible there's other dependencies hat I already had installed but since the dev wrote that it's probably all it needs.

After that just follow the readme. Make a directory named "data" next to the build binary and put the rom in it with the name it wants. Then you should be able to launch it.
I noticed the binary looks for the rom relative to your current working directory so if you're launching it from the shell, make sure you're in the directory with the binary first. I.e. you can't be in the repo directory and run `./build/pd` you have to be inside of "build" and run `./pd`, or just double click the exe on Windows.

>Both these environments are 64-bit, do I really need to setup a 32-bit Windows environment to compile this?
You need to set up a 32bit toolchain, the OS you're on doesn't have to be 32bit or Windows, you just need a compiler that produces a 32bit binary (for either Windows or whatever your target OS is).
That's what "mingw-w64-i686-toolchain" is. It's a compiler for a 64 bit system, that produces a binary for 32 bit systems.

Navigation
View posts[+24][+48][+96]