baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: "David Moberg" <davidjmoberg AT lycos.com>
- To: baslinux AT lists.ibiblio.org
- Subject: Re: [BL] Compiling for BL3
- Date: Wed, 11 May 2005 17:02:41 -0500
----- Original Message -----
From: "sindi keesan" <keesan AT sdf.lonestar.org>
> On Wed, 11 May 2005, David Moberg wrote:
>
> > ----- Original Message -----
> > From: "sindi keesan" <keesan AT sdf.lonestar.org>
> >
> >>> I found a playmidi binary for glibc-2.1!
> >>
> >> Would this require the SW81 glibc?
> >
> > No, it would require the BL2 glibc, which is glibc-2.1.3. You also
> > need the ncurses that comes with BL2 (because someone at RedHat
> > decided that ncurses was a Good Thing)
> >
> >> I will first attempt to find the developers' ncurses.tgz package in
> >> SW40 or compile without it (but I think you need it to display if
> >> you don't want to use svgalib or X11).
> >
> > What do you need display for? By default, playmidi doesn't even
> > display anything. It just plays a MIDI file.
>
> There is no option --without-ncurses. I tried -k and it kept going
> and got stuck at io_xaw (something to do with displaying in X).
>
> I installed SW40 ncurses.tgz. I tried again and got stuck at xaw again.
>
> How would I modify the Makefile so it does not compile xplaymidi or
> splaymidi or anything related to GTK, X11, or even SVGAlib?
>
> And compile to play ONLY on a sound card, whether or not AWE32?
> I have no Gravis or other devices.
>
> Here is the Makefile:
>
>
> ###########################################################################
> # playmidi Makefile 12 September 1996
> #
> # by Nathan I Laredo, laredo AT gnu.ai.mit.edu
> #
> # I don't wish to assert any rights (copyright) for this Makefile.
> # This Makefile is specially designed for using "make install"
> # thousands of times (for developing), and will only install updated
> # files. It does not write over exiting fm patch libs if you have them.
> #
> ###########################################################################
>
> # 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
>
> # 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
>
> # 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
> XAPPDEFAULTS = /usr/X11R6/lib/X11/app-defaults
>
> INCLUDES= $(INCNC) $(INCX11) $(INCVGA) $(INCAWE)
> 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?)
>
> 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)
>
> /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
>
> (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?)
> 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.
--
_______________________________________________
NEW! Lycos Dating Search. The only place to search multiple dating sites at
once.
http://datingsearch.lycos.com
-
Re: [BL] Compiling for BL3
, (continued)
- Re: [BL] Compiling for BL3, sindi keesan, 05/11/2005
- 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.