AZO234 / NP2kai

Neko Project II kai
http://domisan.sakura.ne.jp/article/np2kai/np2kai.html
MIT License
254 stars 62 forks source link

Compilation under Windows 7 MinGW64/32 fails. #62

Closed Art10001 closed 5 years ago

Art10001 commented 5 years ago

After a lot of tries, I finally got NP2Kai to almost compile. First, it complained that -lmingw32 was not found. I realized that the resulting executable would be 32 bits, so I installed the 32 bits toolchain version that you specify on the README.

However, I get the following issue:

"../sdl2/win32/main.o: file not recognized: File format not recognized collect2.exe: error: ld returned 1 exit status make: *** [Makefile21.win:67: np21kai] Error 1"

This is the text of sdl2/win32/main.c:

"/**

include "compiler.h"

include "np2.h"

include "..\fontmng.h"

pragma comment(lib, "SDL2.lib")

pragma comment(lib, "SDL2main.lib")

pragma comment(lib, "zlib.lib")

if !defined(RESOURCE_US)

pragma comment(lib, "SDL2_ttf.lib")

endif

/**

What could be the issue?

Also, it's worth menctioning that during compilation, an error was obtained: in the sdl2/dosio.c file, in the 193th line, there's a bug, as mkdir() only accepts one instruction. You can fix this by transforming it into _mkdir.

Thank you for your help!

AZO234 commented 5 years ago

I tuned SDL2 build on Windows(MSYS2 64bit's 32bit console).

It needs installing 'mingw-w64-i686-SDL2' etc and 'mingw-w64-i686-gcc' packages. I fixed README.

Sorry to your inconvenience.

Art10001 commented 5 years ago

After many months, I realized that I had forgotten to comment here.

Well, I had compiled NP2Kai, and it worked, but I dislike the SDL2 GUI and find it lacking in features the X11 port has.

Sorry for leaving this issue open for so long!