Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Sil

Reply
 
Thread Tools Display Modes
Old April 30, 2019, 23:58   #1
joeljpa
Rookie
 
Join Date: Feb 2017
Posts: 7
joeljpa is on a distinguished road
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.
joeljpa is offline   Reply With Quote
Old May 1, 2019, 23:32   #2
Quirk
Swordsman
 
Join Date: Mar 2016
Posts: 286
Quirk is on a distinguished road
Quote:
Originally Posted by joeljpa View Post
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.
Quirk is offline   Reply With Quote
Old May 2, 2019, 20:11   #3
joeljpa
Rookie
 
Join Date: Feb 2017
Posts: 7
joeljpa is on a distinguished road
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.
joeljpa is offline   Reply With Quote
Old May 2, 2019, 20:39   #4
Quirk
Swordsman
 
Join Date: Mar 2016
Posts: 286
Quirk is on a distinguished road
Quote:
Originally Posted by joeljpa View Post
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.
Quirk is offline   Reply With Quote
Old May 2, 2019, 21:17   #5
joeljpa
Rookie
 
Join Date: Feb 2017
Posts: 7
joeljpa is on a distinguished road
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.

Last edited by joeljpa; May 2, 2019 at 21:27.
joeljpa is offline   Reply With Quote
Old May 2, 2019, 21:27   #6
Quirk
Swordsman
 
Join Date: Mar 2016
Posts: 286
Quirk is on a distinguished road
Quote:
Originally Posted by joeljpa View Post
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.
Quirk is offline   Reply With Quote
Old May 15, 2019, 19:02   #7
joeljpa
Rookie
 
Join Date: Feb 2017
Posts: 7
joeljpa is on a distinguished road
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.
joeljpa is offline   Reply With Quote
Old May 16, 2019, 01:18   #8
Quirk
Swordsman
 
Join Date: Mar 2016
Posts: 286
Quirk is on a distinguished road
Quote:
Originally Posted by joeljpa View Post
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.
Quirk is offline   Reply With Quote
Old May 16, 2019, 17:52   #9
joeljpa
Rookie
 
Join Date: Feb 2017
Posts: 7
joeljpa is on a distinguished road
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.
joeljpa is offline   Reply With Quote
Old May 17, 2019, 12:57   #10
Quirk
Swordsman
 
Join Date: Mar 2016
Posts: 286
Quirk is on a distinguished road
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.
Quirk is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone please make a simple video tutorial on how to compile Sil from scratch Gothmog Sil 0 February 4, 2018 23:28
I need to step by step (as easy as possible) to compile Sil on windows Gothmog Sil 8 December 26, 2017 11:38
How-To: compile and play mpa-sil on Windows BookofAeons Sil 7 January 19, 2017 05:28
Unable to compile O Rydel Development 0 November 2, 2011 04:36
Anyone got Z+ to compile in VS2008? APWhite Development 1 May 4, 2011 05:52


All times are GMT +1. The time now is 16:26.


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