Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Sil (http://angband.oook.cz/forum/forumdisplay.php?f=12)
-   -   Can't compile Sil-Q (http://angband.oook.cz/forum/showthread.php?t=9406)

joeljpa April 30, 2019 23:58

Can't compile Sil-Q
 
I've tried to compile in on Windows 10 (note I'm completely new to Cygwin).
I tried
Code:

make.exe -f Makefile.cyg install
and get the following error
Code:

windres sil.rc -O coff -F pe-i386 -o sil.res
make: windres: Command not found
make: *** [Makefile.cyg:111: sil.res] Error 127

What do I do? Also, I'm more comfortable in Linux and tried it there as well, failed :(. If running it on Linux is easier, I'll post the error I get there.

Quirk May 1, 2019 23:32

Quote:

Originally Posted by joeljpa (Post 138149)
I've tried to compile in on Windows 10 (note I'm completely new to Cygwin).
I tried
Code:

make.exe -f Makefile.cyg install
and get the following error
Code:

windres sil.rc -O coff -F pe-i386 -o sil.res
make: windres: Command not found
make: *** [Makefile.cyg:111: sil.res] Error 127

What do I do? Also, I'm more comfortable in Linux and tried it there as well, failed :(. If running it on Linux is easier, I'll post the error I get there.

Windres should turn up in your cygwin/bin folder as a result of having mingw included in your cygwin install. What version of mingw are you running?

Feel free to post the Linux error also, I am happy debugging either or both.

joeljpa May 2, 2019 20:11

Thanks for your help!
So let's see with Windows then first.
Well, it turns out I don't seem to have mingw installed or at least the right one. I did install some mingw. Either way, ming doesn't exist in the bin folder. Thing is Cygwin shows a LOT of mingws when searched and I do not know which is the right one. On the GitHub page, you've mentioned "mingw C" but I couldn't narrow it down, via searching further. I installed a "mingw gcc" too.

Quirk May 2, 2019 20:39

Quote:

Originally Posted by joeljpa (Post 138188)
Thanks for your help!
So let's see with Windows then first.
Well, it turns out I don't seem to have mingw installed or at least the right one. I did install some mingw. Either way, ming doesn't exist in the bin folder. Thing is Cygwin shows a LOT of mingws when searched and I do not know which is the right one. On the GitHub page, you've mentioned "mingw C" but I couldn't narrow it down, via searching further. I installed a "mingw gcc" too.

So - mingw provides the Gnu C Compiler, GCC. This is what you want. GCC will build the source code.

Have you a windres.exe in your Cygwin bin folder after install? Or anything ending windres.exe?

Also if you prefer Linux, I do the development in Linux so that may be even easier to fix.

joeljpa May 2, 2019 21:17

Still getting the same error.
but now I do now have some windres(es), in /bin/
Code:

i686-pc-cygwin-windmc.exe
i686-pc-cygwin-windres.exe
i686-w64-mingw32-windmc.exe
i686-w64-mingw32-windres.exe

Okay let's proceed to Linux then, I'm comfortable there as well.
EDIT: Just let me know before that if you figure something out about this Windows thing.

Quirk May 2, 2019 21:27

Quote:

Originally Posted by joeljpa (Post 138191)
Still getting the same error.
but now I do now have some windres(es), in /bin/
Code:

i686-pc-cygwin-windmc.exe
i686-pc-cygwin-windres.exe
i686-w64-mingw32-windmc.exe
i686-w64-mingw32-windres.exe

Okay let's proceed to Linux then, I'm comfortable there as well.

The mklink command should allow you to create a symbolic link called windres.exe referencing i686-w64-mingw32-windres.exe - that may let you proceed.

joeljpa May 15, 2019 19:02

I would like to report I've got it running on Linux via just following the instructions.

Dang, I don't know about others, but doing it Windows was a pain. I even got stuck trying your above-mentioned solution of symlinks. I definitely recommend people playing it on Linux if they have the choice.

Quirk May 16, 2019 01:18

Quote:

Originally Posted by joeljpa (Post 138396)
I definitely recommend people playing it on Linux if they have the choice.

Well, I do provide precompiled Windows binaries for people who are not fussy about rolling their own. In general compiling things from source is much more of a chore on Windows.

joeljpa May 16, 2019 17:52

Are those binaries somewhere on the GitHub page? I couldn't find them. Of course, it's cool for me now that it's running but I am wondering about other Windows (especially -only) users.

Quirk May 17, 2019 12:57

Yes. If you go to:
https://github.com/sil-quirk/sil-q/releases

Each release should have a bit at the bottom called Assets (looking currently via a mobile browser). Sil-Q.1.4.2.zip holds the binaries for Windows.


All times are GMT +1. The time now is 08:01.

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