Article View: news.software.readers
Article #66450Re: Compiling slang/slrn on a PC (was: slrn for Windows page slightly updated)
From: Rudy Taraschi
Date: Thu, 12 Oct 2000 00:00
Date: Thu, 12 Oct 2000 00:00
127 lines
4921 bytes
4921 bytes
fhahn@yahoo.com (Frank Hahn) wrote:
> Are these two PATH statements set separately within the mingw32
> and cygwin environments? If so, in what file.
Thanks for pointing that out. My mistake. Here's a (hopefully)
corrected version. Cheers!
rudy
- --
Title: Compiling Slang/Slrn on a PC
Version: 0.2
Author: Rudy Taraschi - rudy at see aye eee dot see aye
Date: 12 October 2000
I've gotten Slang and Slrn to compile on both Cygwin and MinGW32 with
the following procedure. For all I know, I could have broken every rule
in the book. It may not be the right way of doing it, but it worked for
me.
Setup
-----
I have an NT4 system with Cygwin 1.1.4 and MinGW32 2.95.2 (crtdll
version) installed.
To compile under MinGW32, I needed to set the Cygwin stuff to follow the
MinGW32 stuff in order to resolve various Unix commands typically found
in Makefiles (such as 'cp', 'ar', etc). These commands are now resolved
by Cygwin. For reference, my Cygwin path starts with:
/usr/local/bin:/usr/bin:/bin: ....
I didn't have to set this up, it was magically set by the environment.
In order to compile under MinGW32, I needed to modify the mingw32.bat
file found in the MinGW32 home directory to add the Cygwin path
referenced above. In my case, the path statement looks like this:
PATH=c:\mingw32\bin;c:\cygwin\usr\local\bin;c:\cygwin\usr\bin;c:\cygwin\bin;%PATH%
where c:\mingw32 is where I installed MinGW32 and c:\cygwin is where I
installed Cygwin.
To compile under Cygwin, simply launch a bash shell. To compile under
MinGW32, open up a MS-DOS command prompt, run the newly modified
mingw32.bat file to set the path, and away you go.
Slang on Cygwin
---------------
- unpack Slang 1.2.2 into a directory called slang (Note: unpack from
Cygwin command line, not from WinZip)
- run configure without any options
- add the following lines in src/sysconf.h
#undef WIN32
#undef _WIN32
#undef __CYGWIN32__
#undef __MINGW32__
#undef __NT__
- run make
- run make install (Note: this installs in /usr and not /usr/local)
Slrn on Cygwin
--------------
- unpack Slrn 0.9.6.3 into a directory at the same level as slang
(Note: unpack from Cygwin command line, not from WinZip)
- run configure without any options
- add the following lines in src/sysconf.h
int h_errno;
#undef WIN32
#undef _WIN32
#undef __CYGWIN32__
#undef __MINGW32__
#undef __NT__
- run make
- run make slrnpull
- strip src/objs/slrn.exe and src/objs/slrnpull.exe to shrink the
executables
- run make install
Slang on mingw32
----------------
- unpack Slang 1.2.2 into a directory called slang (Note: unpack from
mingw32 command line, not from WinZip)
- run "mkmake WIN32 MINGW32 < makefile.all > ..\Makefile" from the
'slang\src\mkfiles' directory
- copy slconfig.h config.h
- add the following lines at the end of sl-feat.h
#undef WIN32
#undef _WIN32
#undef __CYGWIN32__
#undef __MINGW32__
#undef __NT__
- run make
Slrn on mingw32
---------------
- unpack Slrn 0.9.6.3 into a directory at the same level as slang
(Note: unpack from mingw32 command line, not from WinZip)
- run make -f Makefile.g32
- run make -f Makefile.g32 slrnpull.exe
- strip src/slrn.exe and src/slrnpull.exe to shrink the executables
- manually move them to somewhere in your path
That's it, that's all!
Technical Details
Message-ID:
<39e5b014.841439@142.39.20.3>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<8r9t27$355$1@thingy.apana.org.au> <slrn8thr2h.d7u.rickp@tc.niof.net> <slrn8u434b.7hv.fun@blowtorch.softcell.com.au> <slrn8u15ua.o18.rickp@tc.niof.net> <jnbE5.51$ln6.2335@news.flash.net> <slrn8u9q8l.mrb.fun@blowtorch.softcell.com.au> <slrn8u4v5j.7vm.fhahn@bart.fcjc.net> <d0ME5.1237$44.146136@nnrp3.clara.net> <slrn8u7ges.9a2.fhahn@bart.fcjc.net> <slrn8u8lbp.9a2.fhahn@bart.fcjc.net> <39e477c2.7589212@142.39.20.3> <slrn8u9uto.9a2.fhahn@bart.fcjc.net>Show Full Headers
Complete Article Headers
Message-ID: <39e5b014.841439@142.39.20.3> Subject: Re: Compiling slang/slrn on a PC (was: slrn for Windows page slightly updated) Date: Thu, 12 Oct 2000 00:00:00 +0000 From: rudy@cae.DELETE-THIS.ca.invalid (Rudy Taraschi) References: <8r9t27$355$1@thingy.apana.org.au> <slrn8thr2h.d7u.rickp@tc.niof.net> <slrn8u434b.7hv.fun@blowtorch.softcell.com.au> <slrn8u15ua.o18.rickp@tc.niof.net> <jnbE5.51$ln6.2335@news.flash.net> <slrn8u9q8l.mrb.fun@blowtorch.softcell.com.au> <slrn8u4v5j.7vm.fhahn@bart.fcjc.net> <d0ME5.1237$44.146136@nnrp3.clara.net> <slrn8u7ges.9a2.fhahn@bart.fcjc.net> <slrn8u8lbp.9a2.fhahn@bart.fcjc.net> <39e477c2.7589212@142.39.20.3> <slrn8u9uto.9a2.fhahn@bart.fcjc.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 680584645 X-Complaints-To: usenet@news.cae.ca X-Trace: dns3.cae.ca 971360122 6493 142.39.198.22 (12 Oct 2000 14:15:22 GMT) Organization: CAE Electronics, Montreal Reply-To: rudy@cae.DELETE-THIS.ca.invalid NNTP-Posting-Date: 12 Oct 2000 14:15:22 GMT Newsgroups: news.software.readers