extremeheat / node-raknet-native

Simple native RakNet bindings for Node.js
13 stars 5 forks source link

Fails to build when running on Ubuntu-20.04-aarch64 #12

Closed LucienHH closed 1 year ago

LucienHH commented 2 years ago
npm ERR! /home/ubuntu/Test-App/node_modules/raknet-native/raknet/Source/FileList.cpp:24:10: fatal error: sys/io.h: No such file or directory
npm ERR!    24 | #include <sys/io.h>
npm ERR!       |          ^~~~~~~~~~
npm ERR! compilation terminated.
npm ERR! make[2]: *** [raknet/Lib/LibStatic/CMakeFiles/RakNetLibStatic.dir/build.make:336: raknet/Lib/LibStatic/CMakeFiles/RakNetLibStatic.dir/__/__/Source/FileList.cpp.o] Error 1
npm ERR! make[1]: *** [CMakeFiles/Makefile2:159: raknet/Lib/LibStatic/CMakeFiles/RakNetLibStatic.dir/all] Error 2
npm ERR! make: *** [Makefile:130: all] Error 2
npm ERR! ERR! OMG Process terminated: 2

Ubuntu-20.04-aarch64 doesn't include sys/io.h so errors during the build as it doesn't account for the diff architecture within Raknet

LucienHH commented 2 years ago

Commenting out the line /raknet-native/raknet/Source/FileList.cpp:24:10 allows for the build to succeed so I assume this line is the only conflicting issue

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

LucienHH commented 1 year ago

https://github.com/extremeheat/node-raknet-native/pull/17