Article View: news.software.readers
Article #66544Compiling slang/slrn on a PC (was: slrn for Windows page slightly updated)
From: Rudy Taraschi
Date: Wed, 11 Oct 2000 00:00
Date: Wed, 11 Oct 2000 00:00
99 lines
4115 bytes
4115 bytes
I've been following this thread, and I thought I'd share my own
mini-HOWTO. 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. I have an NT4
system with cygwin 1.1.4 and MinGW32 2.95.2 (crtdll version) installed.
My cygwin path is:
PATH=c:\cyg\usr\local\bin;c:\cyg\usr\bin;c:\cyg\bin;%PATH%
I needed to set the cygwin stuff to follow the MinGW32 stuff for the
MinGW32 compile to fix the 'cp' problem. 'cp' is now resolved by
cygwin. My MinGW32 path is:
PATH=c:\gcc-2.95.2\bin;c:\cyg\usr\local\bin;c:\cyg\usr\bin;c:\cyg\bin;%PATH%
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
--
Rudy Taraschi - rudy at see aye eee dot see aye
The message you are now reading contains no hidden attachments or
anything other than the text you see here. It is a computer virus sent
to you on the honor system. Please delete all the files on your hard
drive and then forward this message to everyone you know.
Technical Details
Message-ID:
<39e477c2.7589212@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>Show Full Headers
Complete Article Headers
Message-ID: <39e477c2.7589212@142.39.20.3> Subject: Compiling slang/slrn on a PC (was: slrn for Windows page slightly updated) Date: Wed, 11 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> 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: 680168719 X-Complaints-To: usenet@news.cae.ca X-Trace: dns3.cae.ca 971275824 9034 142.39.198.22 (11 Oct 2000 14:50:24 GMT) Organization: CAE Electronics, Montreal Reply-To: rudy@cae.DELETE-THIS.ca.invalid NNTP-Posting-Date: 11 Oct 2000 14:50:24 GMT Newsgroups: news.software.readers