From alsa-user-owner@alsa.jcu.cz  Thu Dec  3 19:41:16 1998
Received: from simons.tabor.edu (simons.tabor.edu [198.248.166.181])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id TAA31024
	for <alsa-user@alsa.jcu.cz>; Thu, 3 Dec 1998 19:38:08 +0100
Received: from unforgettable.com ([198.248.166.180])
          by simons.tabor.edu (8.8.4/8.8.4) with ESMTP
	  id MAA21512 for <alsa-user@alsa.jcu.cz>; Thu, 3 Dec 1998 12:09:05 -0600
Message-ID: <3666DA43.C7AA5C76@unforgettable.com>
Date: Thu, 03 Dec 1998 18:36:52 +0000
From: Jesse Kaufman <kaufmjes@unforgettable.com>
MIME-Version: 1.0
To: alsa-user@alsa.jcu.cz
Subject: Re: Cant compile AlsaPlayer - beware, its a long letter, sorry :(
References: <Pine.GSO.4.05.9812031802390.8381-100000@madli.ut.ee>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

Imre Oolberg wrote:

> Hallo,
>
> First of all thank you for your great job supporting my soundcard
> Creative Labs SoundBlaster PCI 64 on ES1370!
>
> I grabed the sources of
>
> alsa-driver-0_2_0-pre10p2_tar.gz and
> alsa-lib-0.1.3.tar.gz and
> xamixer-0.2.0.tar.gz
>
> and compiled them and now i am using them on
> slackware 3.4 on libc5 (gcc 2.7.2.3),
> kernel 2.0.30,
> gtk+-1.0.6,
> ordinary Intel Pentium 120 MHz 64 MB x86 CPU
>
> AND HERE IS sc. THESE THINGS:
> talv:~# cat /proc/asound/version
> Advanced Linux Sound Architecture Driver Version 0.2.0-pre10p2.
> Compiled in Dec  3 1998 for kernel 2.0.30.
> talv:~#
> talv:/alsa-driver-0.2.0-pre10p2# cat /proc/asound/cards
> 0 [card1          ]: AudioPCI - Ensoniq AudioPCI
>                      Ensoniq AudioPCI ES1370 at 0x6100, irq 11
> talv:/alsa-driver-0.2.0-pre10p2#
>
> I load my sound stuff like this after it boots (kernel doesnt have
> sound support)
>
> modprobe snd-audiopci
> modprobe snd-pcm1-oss
>
> and thats it.
>
> What i can do is to listen to
>
> - mods nspmod (quality is not too good),
> - mp3 (x11amp, bad quality also)
> - play doom with sound and even mix it with workman (quolity is good!)
>
> i cant use wavplay
> and never triend to record. Actually i dont know how else than something
> like
>
> dd bs=6k count=10 < /dev/audio > /outputfile
>
> I triend once with OSS commercial stuff. Well recording isnt at the moment
> so imoprtant, too.
>
> I WANT TO USE ALSAPLAYER, BUT I DONT KNOW HOW TO COMPILE IT!!!
>
> grabed the
> AlsaPlayer-0.0.1.tar.bz2
> from alsa.jcu.cz/pub
>
> Here are errors what i encounter compiling it:
> (By the way, the arnt READMEs' or anything :(
>
> talv:/AlsaPlayer# ./configure
> ./configure: AC_FD_CC: Ambiguous redirect
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
> talv:/AlsaPlayer#
>
> Makefile looks like this after sligth modification:
>
> OBJECTS = SampleBuffer.o Main.o MpegFilter.o Effects.o Playlist.o \
>         EffectsWindow.o
> GUIOBJECTS = gui/gladesrc.o scopes/monoscope.o scopes/levelmeter.o
> scopes/space
> AMPOBJECTS = amp/dump.o amp/formats.o amp/getbits.o amp/huffman.o \
>         amp/layer3.o amp/getdata.o amp/misc2.o \
>         amp/transform.o amp/buffer.o \
>         amp/layer2.o amp/util.o
>
> GTK_CONFIG = /usr/local/bin/gtk-config
> #GTK_CONFIG = gtk-config
>
> ###
> ###THE ABOVE IS CHANGED TO REFLECT THE GTK LIBRARY'S PROPER LOCATION
> ###
>
> CXXINCLUDE = -I./amp $(GTK_CONFIG) --cflags
> #CFLAGS = -march=pentiumpro -mpentiumpro
> CFLAGS = -m486 -O6
>
> DEFINES = -D_REENTRANT
>
> CXX = g++ $(CXXINCLUDE) $(DEFINES) $(CFLAGS)
>
> all: AlsaPlayer
>
> clean:
>         rm -f $(OBJECTS) $(GUIOBJECTS) AlsaPlayer core *~
>
> gui/gladesrc.o: gui/gladesrc.c gui/gladesrc.h
>         $(CXX) -c gui/gladesrc.c -o gui/gladesrc.o
>
> scopes/monoscope.o: scopes/monoscope.c scopes/monoscope.h
> scopes/scope_config.h
>         $(CXX) -c scopes/monoscope.c -o scopes/monoscope.o
>
> scopes/spacescope.o: scopes/spacescope.c scopes/scope_config.h
>         $(CXX) -c scopes/spacescope.c -o scopes/spacescope.o
>
> scopes/levelmeter.o: scopes/levelmeter.c scopes/scope_config.h
>         $(CXX) -c scopes/levelmeter.c -o scopes/levelmeter.o
>
> scopes/fftscope.o: scopes/fftscope.c scopes/scope_config.h
>         $(CXX) -c scopes/fftscope.c -o scopes/fftscope.o
>
> AlsaPlayer: $(OBJECTS) $(GUIOBJECTS) amp
>         g++ -static -D_REENTRANT -o AlsaPlayer $(GUIOBJECTS) $(OBJECTS)
> $(AMPOB
>         $(GTK_CONFIG) --libs -lpthread -lasound -lm
>
> ###
> ###THE ABOVE LINE SEEMS TO BE RELATED TO MY PROBLEM
> ###
>
>         strip AlsaPlayer
>         @echo To make use of the "real-time" features, run as "root"
>
> Effects.o: Effects.cc Effects.h
>         $(CXX) -c Effects.cc
>
> Playlist.o: Playlist.cc Playlist.h
>         $(CXX) -c Playlist.cc
>
> SampleBuffer.o: SampleBuffer.cc SampleBuffer.h
>         $(CXX) -c SampleBuffer.cc
>
> MpegFilter.o: MpegFilter.cc MpegFilter.h SampleBuffer.o
>         $(CXX) -c MpegFilter.cc
>
> Main.o: Main.cc gui/gladesrc.h pixmaps/stop.xpm MpegFilter.h
>         $(CXX) -c Main.cc
>
> and giving it command make it reports like this:
>
> talv:/AlsaPlayer# make
> g++ -static -D_REENTRANT -o AlsaPlayer gui/gladesrc.o scopes/monoscope.o
> scopes/levelmeter.o scopes/spacescope.o scopes/fftscope.o SampleBuffer.o
> Main.o MpegFilter.o Effects.o Playlist.o EffectsWindow.o amp/dump.o
> amp/formats.o amp/getbits.o amp/huffman.o amp/layer3.o amp/getdata.o
> amp/misc2.o amp/transform.o amp/buffer.o amp/layer2.o amp/util.o \
> /usr/local/bin/gtk-config --libs -lpthread -lasound -lm
> /usr/i486-unknown-linux-gnulibc1/bin/ld: cannot open -lpthread: No such file
> or directory
> make: *** [AlsaPlayer] Error 1
> talv:/AlsaPlayer#
>
> What I or anybody can do about it?
>
> Hoping that someone read this far!
>
> Best Regards, Imre Oolberg
>
> PS
>
> As i learned when browsing the alsa.jcu.cz websait that ALSA is a continuing
> effort to support sound on linux. And this work is in the develompment
> stage. Can somebody assure me that my soundcord is reciving support and in
> the future or is CL SB PCI 64 ES1370 an extinct beast?

i'm currently using my es1370 (Ensoniq AudioPCI PnP, as it was when i bought
it), and have had no problems what so ever...  i'm running the latest public
release versions of all the libs / utils / etc, and am using 'alsasound start'
to start up ALSA.  mp3z sound great, .wav, .au sound good, don't do much
gaming,and haven't tried recording, but so far i've had no problems...

jesse



