Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   Compiling on Windows Linux Subsystem (http://angband.oook.cz/forum/showthread.php?t=8800)

mrrstark January 21, 2018 23:43

Compiling on Windows Linux Subsystem
 
Hi,

Has anyone tried compiling on Windows 10 Linux Subsystem?

https://devtidbits.com/2017/11/09/ub...ows-10-how-to/

I got angband compiled using the Ubuntu installation. I tried x11 and SDL and both resulted in this error:
"./src/angband: Unable to prepare any 'display module'!"

Compiling with the --enable-win fails compilation due to windows.h being absent in the Ubuntu installation paths (I guess).

I'm not sure if it's possible to get one of the graphical frontends working though.

Anyone tried it?

mrrstark January 22, 2018 00:29

Using XMing, and running export DISPLAY:=0 on the Linux side, I was able to get past the display failure, but stuck now on the font failure.

./src/angband: Couldn't load the requested font. (10x20)

This page explained how to setup the display:
https://virtualizationreview.com/art...linux.aspx?m=1

Probably the more sane approach is to crosscompile to windows, though not sure how.

takkaria January 22, 2018 04:21

As far as I know no-one's used the Windows Linux Subsystem before to compile Angband. There is already a cross-complation makefile - Makefile.win with CROSS=yes. You need mingw tools though.


All times are GMT +1. The time now is 21:57.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.