Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <00e201c052fb$43ec9160$275c100a@actfs.co.uk> From: "Malcolm Boekhoff" To: "Cygwin News Group" References: Subject: Re: cdrecord: Anyone built under Cygwin? Date: Mon, 20 Nov 2000 14:07:49 -0000 Here is my shell script for building cdrecord - basically you have to modify the blcok of #includes and #undef a few macros. #!/bin/sh # Execute this script like this: # # sh -x ~/bin/makeCdrecord.sh 2>&1 | tee /tmp/Cdrecord1.log # In cdrecord/cdrecord.c and cdda2wav/cdda2wav.c, comment out inclusion of # and include # after defining WIN32_LEAN_AND_MEAN. Undefine "interface" (used as variable by # cdda2wav). # # Old: # # #include # #include # #include # #include # # New: # # #define WIN32_LEAN_AND_MEAN # #include # #undef interface cd /cdrecord-1.9 # Parse command-line options. FULL=0 for option do case $option in -f) FULL=1;; esac done # This is an attempt to restart the installation, it may be better to # re-extract from the tarball: tar zxvf cdrecord-1.9.tar.gz if [ "${FULL}" = "1" ]; then find . -type f \( -name 'config.cache' -o -name 'config.log' -o -name 'config.status' \) -exec rm -f {} ";"; fi # # To include debugging information: # make COPTX=-g LDOPTX=-g # # For maximum warnings: # make DEFAULTSDIR=DEFAULTS_ENG # # To alter the compiler used: # make CCOM=gcc # make # You have to rename "Install" (top-level file) in order to "make install"! if [ -x Install ]; then mv -f Install Install.original; fi # # To alter the installation directory: # INS_BASE=/usr/local make install make -i install # # Unfortunately, the targets are "cdrecord" and not "cdrecord.exe" so the # "install" target doesn't work correctly! find . -name '*\.exe' -exec cp -pf {} /usr/local/bin ";" ----- Original Message ----- From: To: Sent: Friday, November 17, 2000 8:58 PM Subject: cdrecord: Anyone built under Cygwin? > Hi, > > I saw a few posts regarding cdrecord and thought I'd try to build it. Using > the cdrecord-1.9 source code, it fails looking for Windows32/Base.h and > several other header files. I'm currently running 1.1.1 but looking at an > old machine that has B20.1 installed, I see that those files used to be > included in the distribution. > Here's an example of the problem code: > > cdrecord.c: > > #ifdef __CYGWIN32__ > > /* > * NOTE: Base.h has a second typedef for BOOL. > * We define BOOL to make all local code use BOOL > * from Windows.h and use the hidden __SBOOL for > * our global interfaces. > */ > #define BOOL WBOOL /* This is the Win BOOL */ > #define format __format > #include > #include > #include > #include > #include > #undef format > > By the way, when I did a search of cdrecord in > http://cygwin.com/ml/cygwin/, I got no matches. > But that's a different problem. Right now I'm just trying to compile the > cdrecord package. > > If anyone has managed to get this to work, I'd be interested to know how > they did it. > > TIA, > > --Kevin Wright > > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com