Package Details: np2kai-git 0.86.rev.22.145.g606fafa-1

Git Clone URL: https://aur.archlinux.org/np2kai-git.git (read-only, click to copy)
Package Base: np2kai-git
Description: Neko Project II Kai, a PC-9801 emulator. (GIT version)
Upstream URL: http://domisan.sakura.ne.jp/article/np2kai/np2kai.html
Licenses: MIT
Conflicts: np2kai
Provides: np2kai
Submitter: sl1pkn07
Maintainer: sl1pkn07
Last Packager: sl1pkn07
Votes: 2
Popularity: 0.000000
First Submitted: 2018-06-30 02:56 (UTC)
Last Updated: 2022-11-24 23:28 (UTC)

Latest Comments

heyrict commented on 2023-10-20 03:46 (UTC)

@navidmafi This seems a bug introduced in recent revisions since rev81 (c2af9e8) rather than a packaging issue, and you may want to report to the author in github instead of here. Previous versions compiles without issues.

A quick fix is to append git checkout 30d4b69 in prepare() {...}.

navidmafi commented on 2022-06-15 15:43 (UTC) (edited on 2022-06-15 15:43 (UTC) by navidmafi)

The build fails with

[ 28%] Building C object CMakeFiles/sdlnp21kai_HAXM.dir/i386hax/haxcore.c.o
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘make_vm_str’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:75:9: warning: implicit declaration of function ‘_stprintf’; did you mean ‘vswprintf’? [-Wimplicit-function-declaration]
   75 |         _stprintf(buf, OEMTEXT("\\\\.\\hax_vm%02d"), vm_id);
      |         ^~~~~~~~~
      |         vswprintf
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_check’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:104:32: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  104 |                 np2hax.hDevice = NULL;
      |                                ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:153:9: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
  153 |         close(np2hax.hDevice);
      |         ^~~~~
      |         pclose
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:155:24: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  155 |         np2hax.hDevice = NULL;
      |                        ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:172:24: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  172 |         np2hax.hDevice = NULL;
      |                        ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_initialize’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:204:9: warning: implicit declaration of function ‘CloseHandle’ [-Wimplicit-function-declaration]
  204 |         CloseHandle(np2hax.hDevice);
      |         ^~~~~~~~~~~
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:205:24: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  205 |         np2hax.hDevice = NULL;
      |                        ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_createVM’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:363:28: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  363 |         np2hax.hVCPUDevice = NULL;
      |                            ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:370:26: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  370 |         np2hax.hVMDevice = NULL;
      |                          ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_vm_exec’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1288:49: warning: implicit declaration of function ‘GetTickCounter_Clock’ [-Wimplicit-function-declaration]
 1288 |                         np2haxcore.clockcount = GetTickCounter_Clock();
      |                                                 ^~~~~~~~~~~~~~~~~~~~
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1290:68: error: request for member ‘QuadPart’ in something not a structure or union
 1290 |                                 remclkdiff = (np2haxcore.clockcount.QuadPart - np2haxcore.lastclock.QuadPart) * pccore.realclock / np2haxcore.clockpersec.QuadPart;
      |                                                                    ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1290:100: error: request for member ‘QuadPart’ in something not a structure or union
 1290 |                                 remclkdiff = (np2haxcore.clockcount.QuadPart - np2haxcore.lastclock.QuadPart) * pccore.realclock / np2haxcore.clockpersec.QuadPart;
      |                                                                                                    ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1290:154: error: request for member ‘QuadPart’ in something not a structure or union
 1290 |                  remclkdiff = (np2haxcore.clockcount.QuadPart - np2haxcore.lastclock.QuadPart) * pccore.realclock / np2haxcore.clockpersec.QuadPart;
      |                                                                                                                                           ^

/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_disposeVM’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1343:28: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
 1343 |         np2hax.hVCPUDevice = NULL;
      |                            ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1349:26: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
 1349 |         np2hax.hVMDevice = NULL;
      |                          ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_deinitialize’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1367:24: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
 1367 |         np2hax.hDevice = NULL;
      |                        ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_vm_setvga256linearmemory’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1616:17: warning: assignment to ‘UINT64’ {aka ‘long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
 1616 |         info.va = NULL;
      |                 ^
make[2]: *** [CMakeFiles/sdlnp21kai_HAXM.dir/build.make:90: CMakeFiles/sdlnp21kai_HAXM.dir/i386hax/haxcore.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: CMakeFiles/sdlnp21kai_HAXM.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: np2kai-git

adgenet commented on 2020-06-05 20:09 (UTC)

I'm seeing the following error when trying to build this. Perhaps the build process has changed upstream?

==> Starting prepare()... /home/adgenet/np2kai-git/PKGBUILD: line 27: cd: np2kai/x11: No such file or directory ==> ERROR: A failure occurred in prepare(). Aborting...

matoro commented on 2019-07-07 15:19 (UTC)

Actually scratch that, your fixes seem to have been incorporated into upstream per this commit: https://github.com/AZO234/NP2kai/commit/14f9b31b3e1f81b8aff3af15bba3ac28e8c09822#diff-6d865d85813b1261953b3e79cdb04716

So they can be removed from the PKGBUILD now.

matoro commented on 2019-07-07 15:16 (UTC)

Manpage templates no longer seem to be in the same location.

==> Starting prepare()... cp: cannot stat 'xnp2.jman1': No such file or directory

Reden commented on 2018-06-30 19:07 (UTC) (edited on 2018-07-10 17:28 (UTC) by Reden)

Curiously, even though --enable-ia32 is specified in the PKGBUILD and make process, the resulting binary does not have IA32 support. I fitted the arguments into a single line, and yet it still made a file without IA32 support. Very odd, as when I ran ./configure --enable-ia32 and make -j4 [in a fresh source] on my PC, it worked.

The title of both xnp2 and np2kai should say "Neko Project II + IA32".

EDIT: I'm sorry. I thought that there was an issue, but really what I had to do is to execute "xnp21kai", not "xnp2kai".

Reden commented on 2018-06-30 17:07 (UTC)

Delightful! Thank you! :D