baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: sindi keesan <keesan AT sdf.lonestar.org>
- To: baslinux AT lists.ibiblio.org
- Subject: Re: [BL] Compiling for BL3
- Date: Wed, 11 May 2005 22:35:55 +0000 (UTC)
I put # in front of these three lines too.###########################################################################
# playmidi Makefile 12 September 1996
# ncurses usually /usr/lib, -L/usr/local/lib doesn't hurt
# unless there's more than one ncurses floating around on your system
LIBNC = -L/usr/local/lib -lncurses
######### NOTE: X11R6 or newer REQUIRED
LIBX11 = -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lXext -lSM -lICE
LIBGTK = -L/usr/X11R6/lib -lgtk-1.1 -lgdk-1.1 -lglib-1.1 -lX11 -lXext -lm
LIBVGA = -L/usr/local/lib -lvgagl -lvga
And this one below.
# ncurses is usually in /usr/include/ncurses, but you may need
# to use /usr/local/include/ncurses depending on your setup.
INCNC = -I/usr/include/ncurses
# just in case you keep your X includes in an odd location.
INCX11 = -I/usr/X11R6/include -DNARROWPROTO
Where would I find this?# stuff for sound blaster awe32
INCAWE = -DVOXWARE_CONTROLLER_7_WORKING
# awe_voice.h path
INCAWE += -I/usr/lib/oss/include/sys
(I don't have /usr/lib/oss - should I?)
Perhaps for awe32 support.
# usually in /usr/include, but -I/usr/local/include doesn't hurt
# unless there's more than one svgalib floating around your system.
INCVGA = -I/usr/local/include
# Directory where application defaults files are stored for X11 version
Remarked out this line.
XAPPDEFAULTS = /usr/X11R6/lib/X11/app-defaults
And the last three parts of this one. Maybe I should leave INCAWE and try again.
make clean - removed old playmidi and some object files
make - got a new playmidi binary. Still 47K but 20 min later date.
Still open /dev/sequencer: No such device.
INCLUDES= $(INCNC) $(INCX11) $(INCVGA) $(INCAWE)
I did that.INSTALLDIR = /usr/bin
INSTALL = install -s
# if you are using the GUS Ultra driver module, add -DULTRA_DRIVER
CFLAGS = -Wall -pipe -fomit-frame-pointer -O2 -m486 $(INCAWE)
LDFLAGS =
OBJECTS = playmidi.o readmidi.o playevents.o \
patchload.o emumidi.o io_ncurses.o
(Can I omit the following three sections?)
I did that.XOBJECTS= playmidi.o readmidi.o playevents.o \
patchload.o emumidi.o io_xaw.o
SOBJECTS= playmidi.o readmidi.o playevents.o \
patchload.o emumidi.o io_svgalib.o
GOBJECTS= playmidi.o readmidi.o playevents.o \
patchload.o emumidi.o io_gtk.o
all: playmidi xplaymidi
(Can I omit xplaymidi?)
config:
playmidi.h: playmidi.h-dist
./Configure
io_ncurses.o: io_ncurses.c
$(CC) $(CFLAGS) $(INCNC) -c io_ncurses.c -o io_ncurses.o
(And omit the next four lines and even the preceding two?)
io_xaw.o: io_xaw.c
$(CC) $(CFLAGS) $(INCX11) -c io_xaw.c -o io_xaw.o
io_svgalib.o: io_svgalib.c
$(CC) $(CFLAGS) $(INCVGA) -c io_svgalib.c -o io_svgalib.o
playmidi: .depend $(OBJECTS)
$(CC) $(LDFLAGS) -o playmidi $(OBJECTS) $(LIBNC)
(and the next three sections?)
xplaymidi: .depend $(XOBJECTS)
$(CC) $(LDFLAGS) -o xplaymidi $(XOBJECTS) $(LIBX11)
gtkplaymidi: .depend $(GOBJECTS)
$(CC) $(LDFLAGS) -o gtkplaymidi $(GOBJECTS) $(LIBGTK)
splaymidi: .depend $(SOBJECTS)
$(CC) $(LDFLAGS) -o splaymidi $(SOBJECTS) $(LIBVGA)
$(INSTALLDIR)/playmidi: playmidi
$(INSTALL) playmidi $(INSTALLDIR)
(and these three sections?)
$(INSTALLDIR)/xplaymidi: xplaymidi
$(INSTALL) xplaymidi $(INSTALLDIR)
$(INSTALLDIR)/gtkplaymidi: gtkplaymidi
$(INSTALL) gtkplaymidi $(INSTALLDIR)
$(INSTALLDIR)/splaymidi: splaymidi
$(INSTALL) splaymidi $(INSTALLDIR)
I did omit them all.
/etc/std.o3:
cp -i std.o3 /etc
/etc/drums.o3:
cp -i drums.o3 /etc
/etc/std.sb:
cp -i std.sb /etc
/etc/drums.sb:
cp -i drums.sb /etc
(and this section)
$(XAPPDEFAULTS)/XPlaymidi:
cp -i XPlaymidi.ad $(XAPPDEFAULTS)/XPlaymidi
I omitted them all.
(can I omit here all but install.noX11 and also omit the part about
splaymidi?)
install: $(INSTALLDIR)/playmidi $(INSTALLDIR)/splaymidi \
$(INSTALLDIR)/xplaymidi /etc/std.o3 /etc/drums.o3 \
/etc/std.sb /etc/drums.sb $(XAPPDEFAULTS)/XPlaymidi
install.novga: $(INSTALLDIR)/playmidi \
$(INSTALLDIR)/xplaymidi /etc/std.o3 /etc/drums.o3 \
/etc/std.sb /etc/drums.sb $(XAPPDEFAULTS)/XPlaymidi
install.noX11: $(INSTALLDIR)/playmidi $(INSTALLDIR)/splaymidi \
/etc/std.o3 /etc/drums.o3 /etc/std.sb /etc/drums.sb
install.Xonly: $(INSTALLDIR)/xplaymidi /etc/std.o3 /etc/drums.o3 \
/etc/std.sb /etc/drums.sb $(XAPPDEFAULTS)/XPlaymidi
(What is lame - playmidi without any display?)
I left only this one and got playmidi and no other binaries.
install.lame: $(INSTALLDIR)/playmidi \
/etc/std.o3 /etc/drums.o3 /etc/std.sb /etc/drums.sb
(deleted the rest, probably not related to X or svga or ncurses)
What you have posted so far doesn't seem to allow an easy way to
remove support for additional libraries. So you may need to install
all of them.
It seems to have worked - I was able to compile with ncurses but without xaw, svgalib, or gtk. I just don't have the binary working yet.
Lucky for me it is 3 hours earlier there and if you have a job they are letting you play instead of work. Maybe playmidi for BL3 without graphics can be made to actually play today?
-
Re: [BL] Compiling for BL3
, (continued)
- Re: [BL] Compiling for BL3, Ron Clarke, 05/11/2005
-
Re: [BL] Compiling for BL3,
David Moberg, 05/11/2005
- Re: [BL] Compiling for BL3, sindi keesan, 05/11/2005
-
Re: [BL] Compiling for BL3,
David Moberg, 05/11/2005
-
Re: [BL] Compiling for BL3,
sindi keesan, 05/11/2005
-
Re: [BL] Compiling for BL3,
3aoo-cvfd, 05/11/2005
- Re: [BL] Compiling for BL3, sindi keesan, 05/11/2005
-
Re: [BL] Compiling for BL3,
3aoo-cvfd, 05/11/2005
- Re: [BL] Compiling for BL3, James Miller, 05/11/2005
- Re: [BL] Compiling for BL3, sindi keesan, 05/11/2005
-
Re: [BL] Compiling for BL3,
sindi keesan, 05/11/2005
-
Re: [BL] Compiling for BL3,
David Moberg, 05/11/2005
- Re: [BL] Compiling for BL3, sindi keesan, 05/11/2005
-
Re: [BL] Compiling for BL3,
David Moberg, 05/12/2005
- Re: [BL] Compiling for BL3, sindi keesan, 05/12/2005
- Re: [BL] Compiling for BL3, David Moberg, 05/12/2005
Archive powered by MHonArc 2.6.24.