Mail Archives: cygwin/2000/11/20/09:03:37
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
# <windows32/{base,defines,structures.functions}.h> and include <windows.h>
# after defining WIN32_LEAN_AND_MEAN. Undefine "interface" (used as variable by
# cdda2wav).
#
# Old:
#
# #include <Windows32/Base.h>
# #include <Windows32/Defines.h>
# #include <Windows32/Structures.h>
# #include <Windows32/Functions.h>
#
# New:
#
# #define WIN32_LEAN_AND_MEAN
# #include <windows.h>
# #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: <Kevin_Wright AT i2 DOT com>
To: <cygwin AT sources DOT redhat DOT com>
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 <vadefs.h>
> #include <Windows32/Base.h>
> #include <Windows32/Defines.h>
> #include <Windows32/Structures.h>
> #include <Windows32/Functions.h>
> #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
- Raw text -