Date: Sun, 12 Dec 1999 21:57:12 -0600 From: Jeff Blaufuss <jblaufus@sendit.nodak.edu> To: questions@freebsd.org Subject: Making LAME Message-ID: <38546E97.B743792@sendit.nodak.edu>
next in thread | raw e-mail | index | archive | help
I'm having some trouble building LAME 3.51 on my FreeBSD 3,2 system. I was able to apply the patch from the dist10 sources ok, but there appears to be something wrong with the Makefile. when I type "make" in the lame_src directory it gives me these errors: "Makefile", line 57: Missing dependancy operator "Makefile", line 87: Missing dependancy operator "Makefile", line 99: Need an operator "Makefile", line 100: Need an operator "Makefile", line 107: Missing dependancy operator "Makefile", line 115: Need an operator "Makefile", line 121: Missing dependancy operator "Makefile", line 125: Need an operator "Makefile", line 131: Missing dependancy operator "Makefile", line 133: Need an operator "Makefile", line 139: Missing dependancy operator "Makefile", line 142: Need an operator "Makefile", line 147: Missing dependancy operator "Makefile", line 150: Missing dependancy operator "Makefile", line 154: Need an operator "Makefile", line 157: Need an operator "Makefile", line 158: Need an operator "Makefile", line 167: Missing dependancy operator "Makefile", line 187: Need an operator "Makefile", line 258: Need an operator And this is the Makefile: # Makefile for LAME 3.xx # # LAME is reported to work under: # Linux (i86), NetBSD 1.3.2 (StrongARM), FreeBSD (i86) # Compaq Alpha(OSF, Linux, Tru64 Unix), Sun Solaris, SGI IRIX, # OS2 Warp, Macintosh PPC, BeOS, Amiga and even VC++ # UNAME = $(shell uname) ARCH = $(shell uname -m) # defaults: PGM = lame CC = gcc CC_OPTS = -O GTK = GTKLIBS = SNDLIB = LIBSNDFILE = LIBS = -lm MAKEDEP = -M BRHIST_SWITCH = LIBTERMCAP = ########################################################################## # Define these to produce a VBR bitrate histogram. Requires libtermcap. # You can also use the more modern ncurses but it doesn't work as well. # If you have any trouble, just dont use termcap/ncurses. ########################################################################## #BRHIST_SWITCH = -DBRHIST #LIBTERMCAP = -ltermcap ########################################################################## # define these to use Erik de Castro Lopo's libsndfile # http://www.zip.com.au/~erikd/libsndfile/ # otherwise LAME can only read 16bit wav, aiff and pcm inputfiles. # Note: at present, libsndfile does not support input from stdin. ########################################################################## #SNDLIB = -DLIBSNDFILE #LIBSNDFILE=-lsndfile # if libsndfile is in a custom location, try: #LIBSNDFILE=-L $(LIBSNDHOME) -lsndfile -I $(LIBSNDHOME) ########################################################################## # define these to use compile in support for the GTK mp3 frame analyzer ########################################################################## #GTK = -DHAVEGTK `gtk-config --cflags` #GTKLIBS = `gtk-config --libs` ########################################################################## # LINUX ########################################################################## ifeq ($(UNAME),Linux) # remove if you do not have GTK or do not want the GTK frame analyzer GTK = -DHAVEGTK `gtk-config --cflags` GTKLIBS = `gtk-config --libs` # Comment out next 2 lines if you want to remove VBR histogram capability BRHIST_SWITCH = -DBRHIST LIBTERMCAP = -ltermcap # for debugging: # CC_OPTS = -UNDEBUG -O -Wall -g -DABORTFP # for lots of debugging: # CC_OPTS = -DDEBUG -UNDEBUG -O -Wall -g -DABORTFP -DNO_LEONID # suggested for gcc-2.7.x # CC_OPTS = -O3 -fomit-frame-pointer -funroll-loops -ffast-math \ # -finline-functions # these options were suggested with egcs-990524 # CC = egcs # CC_OPTS = -O9 -fomit-frame-pointer -march=pentiumpro \ # -ffast-math -funroll-loops \ # -fprofile-arcs -fbranch-probabilities ########################################################################## # LINUX on Digital/Compaq Alpha CPUs ########################################################################## ifeq ($(ARCH),alpha) # double is faster than float on Alpha CC_OPTS = -O4 -Wall -fomit-frame-pointer -ffast-math -funroll-loops \ -mfp-regs -fschedule-insns -fschedule-insns2 \ -finline-functions \ -DFLOAT=double # standard Linux libm LIBS = -lm # optimized libffm (free fast math library) #LIBS = -lffm # Compaq's fast math library #LIBS = -lcpml endif endif ########################################################################## # FreeBSD ########################################################################## ifeq ($(UNAME),FreeBSD) # remove if you do not have GTK or do not want the GTK frame analyzer GTK = -DHAVEGTK `gtk12-config --cflags` GTKLIBS = `gtk12-config --libs` # Comment out next 2 lines if you want to remove VBR histogram capability BRHIST_SWITCH = -DBRHIST LIBTERMCAP = -lncurses endif ########################################################################## # SunOS ########################################################################## ifeq ($(UNAME),SunOS) CC = cc CC_OPTS = -O -xCC MAKEDEP = -xM endif ########################################################################## # SGI ########################################################################## ifeq ($(UNAME),IRIX64) CC = cc endif ########################################################################## # Compaq Alpha running Dec Unix (OSF) ########################################################################## ifeq ($(UNAME),OSF1) CC = cc CC_OPTS = -fast -O3 -std -g3 -non_shared endif ########################################################################## # BeOS ########################################################################## ifeq ($(UNAME),BeOS) CC = $(BE_C_COMPILER) LIBS = ifeq ($(ARCH),BePC) CC_OPTS = -O9 -fomit-frame-pointer -march=pentium \ -mcpu=pentium -ffast-math -funroll-loops \ -fprofile-arcs -fbranch-probabilities else CC_OPTS = -opt all MAKEDEP = -make endif endif ########################################################################## # OS/2 ########################################################################## # Properly installed EMX runtime & development package is a prerequisite. # tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13 # ########################################################################## ifeq ($(UNAME),OS/2) SHELL=sh CC = gcc CC_OPTS = -O3 PGM = lame.exe LIBS = # I use the following for slightly better performance on my Pentium-II # using pgcc-2.91.66: # CC_OPTS = -O6 -ffast-math -funroll-loops -mpentiumpro -march=pentiumpro # Comment out next 2 lines if you want to remove VBR histogram capability BRHIST_SWITCH = -DBRHIST LIBTERMCAP = -ltermcap # Uncomment & inspect the 2 GTK lines to use MP3x GTK frame analyzer. # Properly installed XFree86/devlibs & GTK+ is a prerequisite. # The following works for me using Xfree86/OS2 3.3.5 and GTK+ 1.2.3: # GTK = -DHAVEGTK -IC:/XFree86/include/gtk12 -Zmt -D__ST_MT_ERRNO__ -IC:/XFree86/include/glib12 -IC:/XFree86/include # GTKLIBS = -LC:/XFree86/lib -Zmtd -Zsysv-signals -Zbin-files -lgtk12 -lgdk12 -lgmodule -lglib12 -lXext -lX11 -lshm -lbsd -lsocket -lm endif # 10/99 added -D__NO_MATH_INLINES to fix a bug in *all* versions of # gcc 2.8+ as of 10/99. CC_SWITCHES = -DNDEBUG -D__NO_MATH_INLINES $(CC_OPTS) $(SNDLIB) $(GTK) $(BRHIST_SWITCH) c_sources = \ formatBitstream.c \ fastmdct.c \ filterbank.c \ fft.c \ get_audio.c \ l3bitstream.c \ id3tag.c \ ieeefloat.c \ lame.c \ psymodel.c \ portableio.c \ quantize.c \ reservoir.c \ tables.c \ takehiro.c \ timestatus.c \ util.c \ VbrTag.c \ version.c \ gtkanal.c \ gpkplotting.c \ mpglib/common.c \ mpglib/dct64_i386.c \ mpglib/decode_i386.c \ mpglib/layer3.c \ mpglib/tabinit.c \ mpglib/interface.c \ mpglib/main.c OBJ = $(c_sources:.c=.o) DEP = $(c_sources:.c=.d) %.o: %.c $(CC) $(CC_SWITCHES) -c $< -o $@ %.d: %.c $(SHELL) -ec '$(CC) $(MAKEDEP) $(CC_SWITCHES) $< | sed '\''s;$*.o;& $@;g'\'' > $@' $(PGM): main.o $(OBJ) Makefile $(CC) -o $(PGM) main.o $(OBJ) $(LIBS) $(LIBSNDFILE) $(GTKLIBS) $(LIBTERMCAP) #$(PGM): main.o libmp3lame.a Makefile # $(CC) -o $(PGM) main.o -L. -lmp3lame $(LIBS) $(LIBSNDFILE) $(GTKLIBS) $(LIBTERMCAP) mp3x: mp3x.o $(OBJ) Makefile $(CC) -o mp3x mp3x.o $(OBJ) $(LIBS) $(LIBSNDFILE) $(GTKLIBS) $(LIBTERMCAP) libmp3lame.a: $(OBJ) Makefile ar cr libmp3lame.a $(OBJ) clean: -rm $(OBJ) $(DEP) $(PGM) main.o mp3x.o mp3x libmp3lame.a \ mp3resample.o mp3resample tags: TAGS TAGS: ${c_sources} etags -T ${c_sources} -include $(DEP) test15: $(PGM) ./lame ../test/castanets.wav cmp -l ../test/castanets.wav.mp3 ../test/castanets.ref15.mp3 | head test15h: $(PGM) ./lame -h ../test/castanets.wav cmp -l ../test/castanets.wav.mp3 ../test/castanets.ref15h.mp3 | head test14: $(PGM) ./lame ../test/castanets.wav cmp -l ../test/castanets.wav.mp3 ../test/castanets.ref14.mp3 | head test14h: $(PGM) ./lame -h ../test/castanets.wav cmp -l ../test/castanets.wav.mp3 ../test/castanets.ref14h.mp3 | head testg: $(PGM) ./lame -h -g ../test/castanets.wav In my limited experience with compliling things, I have never had to mess with the Makefile. What do I need to change in the Makefile to have LAME compile sucessfully? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38546E97.B743792>