SWRIP v1.0.1 - Cgywin

Posted by Darrik Vequir on Sun 06 Jun 2004 01:25 AM — 2 posts, 12,637 views.

#0
Hi all,

I have updated the SWRIPv1.0.1 release to be compatible with cygwin. Just read the swripwin.txt file in the doc directory... Basically all you need to do is copy the Makefile-win file to overwrite Makefile and it will compile perfectly on cygwin. If you encounter any problems, please let me know. It runs perfectly on my cgywin, but I've learned that does not necessarily mean anything.

The address to download the code is http://swrip.net. Go to the "Technical" option, and click on "Source".

Thank you,

Darrik Vequir
Amended on Sun 06 Jun 2004 01:35 AM by Darrik Vequir
#1
For earlier versions of RiP, I have listed the modifications I made to the code to make RiP cygwin compatible. All of this information is also available in other threads, but I have compiled it into one, easy to read, list.

In fight.c, save.c and space.c:

Replace
#include <sys/dir.h>
with
#include <dirent.h>

In save.c, replace
struct direct *de
with
struct dirent *de

In act_wiz.c, replace
All occurences of 'trunc'
with
'trunc1'

The other changes I made were in the Makefile... you can diff the two files in the release to see what changes I made there.

Thank you to Ksilyan and Nick Gammon for helping out the many people attempting to use RiP with cygwin, and therefore supplying these fixes.

Darrik Vequir