AZO234 / NP2kai

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

SDL2 compilation in macOS fails with a single error. #54

Closed Art10001 closed 5 years ago

Art10001 commented 6 years ago

../network/net.c:68:10: fatal error: 'linux/if.h' file not found

In the network directory, there are the following files: lgy98.c lgy98.h lgy98.o lgy98dev.h net.c net.h readme.txt but no if.h.

EDIT: if.h exists under <net/if.h>, if_ether.h under <netinet/if_ether.h> but if_tun.h does not seemingly exist.

EDIT2: added where if_ether.h is located at and a clarification.

AZO234 commented 6 years ago

NP2kai does not support SDL2 build on Mac. I do not know how to build and necessary libraries.

According to your report, dependency of header file seems to be complicated. I am sorry, but I will not correspond.

Thanks.

AZO234 commented 6 years ago

I added Makefile.mac.

$ make -f Makefile.mac then maked np2kai executable file. (You can use Makefile21.mac too.)

Please try it.

Art10001 commented 6 years ago

Thank you! :D

2018-07-07 2:38 GMT-04:00 AZO notifications@github.com:

I added Makefile.mac.

$ make -f Makefile.mac then maked np2kai executable file. (You can use Makefile21.mac too.)

Please try it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AZO234/NP2kai/issues/54#issuecomment-403193174, or mute the thread https://github.com/notifications/unsubscribe-auth/ARaBmTCchzfnbahpDPhuK463WK-P5otdks5uEFd7gaJpZM4VDCbr .

Art10001 commented 6 years ago

@AZO234 , the compilation works, the executable runs, but the button to show GUI is used by the "Show Desktop" function of Mission Control (an hotkey that shows the desktop quickly).

I changed the binding, and the GUI works, but the mouse can barely move, as the instant it moves it is locked back to the center of the window.

AZO234 commented 6 years ago

There was a report on RetroArch of Mac that mouse operation is not good. Is it a problem with SDL?

About the header file of the network, it seems that it is not just the difference of the directory. Another implementation is required.

I was informing RA developers,
I currently refraining from developing NP2kai for health reasons.
I'm sorry, I don't have the power to solve problems now.

Regard.

bmosley commented 6 years ago

I changed the binding, and the GUI works, but the mouse can barely move, as the instant it moves it is locked back to the center of the window.

I'm experiencing the same issue. building from source (no x11) The mouse resets back to center when attempting to select GUI menu. Unable to use

AZO234 commented 6 years ago

Since I do not own a Mac, I operated macOS with a simulator and confirmed the build of NP2kai. However, it has not been sufficiently inspected until operation.

The mouse cursor is not fixed in the center. But there seems to be a problem with GUI operation as well. It will take time to fix it.

bmosley commented 6 years ago

Are there hotkeys or keyboard shortcuts to use as workaround?

AZO234 commented 6 years ago

The GUI key of NP2 is currently assigned to F12 key. When using on a Mac, which key should I assign?

bmosley commented 6 years ago

i think F12 is fine for GUI. Is there a modifier key to select one of the gui menu items without using mouse? like ALT or so?

AZO234 commented 6 years ago

I examined it in detail. When clicking the mouse, the coordinates pointed to the center of the screen. I finally understood the problem.

I changed the coordinates when moving the mouse and use that coordinates when clicking. I loaded FD and HDD and confirmed that the game can operate.

np2mac

bmosley commented 6 years ago

Excellent AZO! I’ll pull change and compile tonight

Art10001 commented 5 years ago

Since this seems to be solved... I close it. Thank you for your help.