Re: Compiling slrn under minGW32
Thomas Wiegner <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Organization | Powered by Penguin |
| Message-ID | <20080830080652.GA16779@fliewatuet> |
* Andrew Strong ([email protected]) wrote [Sat, 080830 16:47]: > However the instructions for slrn in doc/install.w32 bear the message: > !!!!!!!! FIXME !!!!!!!!!!!!!! > The following information is outdated and needs to be rewritten. > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > and my blundering around with mingw32-make certainly made not much of > a dent on the slrn source code. Is there an easy way to compile slrn > using MinGW-5.1.4? As mentioned (although marked as outdated): #v+ Unpack slrn into a directory at the same level as "slang" and go to the "src" subdirectory. You can edit slrnconf.h to play with the compile time options if you want. Now you can run > make -f makefile.g32 #v- This should pretty good do the job. In the makefile.g32 some sections should be edited (like recommended): #v+ #----------------------------------------------------------------------------- # Directory where the slang library, once installed is located. # BUILD AND INSTALL SLANG FIRST!!!! If you do not have it, get it from # <http://www.jedsoft.org/slang/>. Note: Also build and INSTALL slsh. #----------------------------------------------------------------------------- prefix = C:/prefix# <--- edit this SLANGINC = $(prefix)/include# <--- edit this SLANGLIB = $(prefix)/lib# <--- edit this SLRN_CONF_DIR = $(prefix)/etc# <--- maybe edit this SLANG_INC = -I$(SLANGINC) SLANG_LIB = -L$(SLANGLIB) -lslang #v- But this will build slrn without iconv support. To add iconv support, you'll have to go to the MinGW download page and grab the libiconv package. http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=67879 The best is probably to unpack it to the place where you installed slang. Then add -liconv to the SLANG_LIB line in the Makefile.g32 and add the line "#define HAVE_ICONV 1" to the slrnconf.h file before compiling. Cheers, Thomas -- slrn packages for ubuntu and windows: http://www.foory.de/thw/slrn/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/