All of lore.kernel.org
 help / color / mirror / Atom feed
* alsa-utils cross compilation error
@ 2009-10-06 14:19 Harish Kumar
  2009-10-06 14:21 ` Jaroslav Kysela
  0 siblings, 1 reply; 5+ messages in thread
From: Harish Kumar @ 2009-10-06 14:19 UTC (permalink / raw)
  To: alsa-devel

Hi,

I am trying to cross compile the alsa utils for PPC and as well as arm
architecture. the compilation of alsa-libs was successful with their
respective toolchains. But configuring the alsa-util is failing. I am
using alsa-utils-1.0.11rc2,alsa-lib-1.0.11rc2.  I am getting the error
checking for libasound headers version >= 1.0.9... not present.
configure: error: Sufficiently new version of libasound not found. I
feel i have to provide the path of the include files but not sure
which path to be passed and how it needs to be passed to configure.

Request your help to resolve the same.

I invoked the configure using the following command and the output of
the configure is as below.

root@localhost alsa-utils-1.0.11rc2]# CC=arm-linux-gcc ./configure
--target=arm-linux --host=i686-linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-linux-strip... no
checking for strip... strip
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for i686-linux-gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking dependency style of arm-linux-gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC...
/opt/GARZ/CROSSTOOLS/arm-2007q3/arm-none-linux-gnueabi/bin/ld
checking if the linker
(/opt/GARZ/CROSSTOOLS/arm-2007q3/arm-none-linux-gnueabi/bin/ld) is GNU
ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for i686-linux-gcc... (cached) arm-linux-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gcc accepts -g... (cached) yes
checking for arm-linux-gcc option to accept ANSI C... (cached) none needed
checking dependency style of arm-linux-gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.9... not present.
configure: error: Sufficiently new version of libasound not found.
[2]+  Done                    gedit configure
[root@localhost alsa-utils-1.0.11rc2]#


Thanks and Regards
Harish Kumar.B

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: alsa-utils cross compilation error
  2009-10-06 14:19 alsa-utils cross compilation error Harish Kumar
@ 2009-10-06 14:21 ` Jaroslav Kysela
  2009-10-06 15:09   ` Harish Kumar
  0 siblings, 1 reply; 5+ messages in thread
From: Jaroslav Kysela @ 2009-10-06 14:21 UTC (permalink / raw)
  To: Harish Kumar; +Cc: alsa-devel

On Tue, 6 Oct 2009, Harish Kumar wrote:

> Hi,
>
> I am trying to cross compile the alsa utils for PPC and as well as arm
> architecture. the compilation of alsa-libs was successful with their
> respective toolchains. But configuring the alsa-util is failing. I am
> using alsa-utils-1.0.11rc2,alsa-lib-1.0.11rc2.  I am getting the error
> checking for libasound headers version >= 1.0.9... not present.
> configure: error: Sufficiently new version of libasound not found. I
> feel i have to provide the path of the include files but not sure
> which path to be passed and how it needs to be passed to configure.

# ./configure --help | grep alsa | grep prefix
   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)

 					Jaroslav

-----
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: alsa-utils cross compilation error
  2009-10-06 14:21 ` Jaroslav Kysela
@ 2009-10-06 15:09   ` Harish Kumar
  2009-10-07 10:02     ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Harish Kumar @ 2009-10-06 15:09 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: alsa-devel

Hi,

I compiled the alsa libs using the following

CC=arm-linux-gcc ./configure --target=arm-linux --host=i686-linux
--prefix=/root/arm-alsa/
make
make install

changed the directory to alsa-utils and executed the following
1.
CC=arm-linux-gcc ./configure --target=arm-linux --host=i686-linux
--with-alsa-prefix=/root/arm-alsa
--with-alsa-inc-prefix=/root/arm-alsa
the configured failed with the same error
checking for ALSA CFLAGS...  -I/root/arm-alsa
checking for ALSA LDFLAGS...  -L/root/arm-alsa -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.9... not present.
configure: error: Sufficiently new version of libasound not found.


2.CC=arm-linux-gcc ./configure --target=arm-linux --host=i686-linux
--with-alsa-prefix=/root/arm-alsa
--with-alsa-inc-prefix=/root/arm-alsa/include
he configured failed with the same error

checking for ALSA CFLAGS...  -I/root/arm-alsa/include
checking for ALSA LDFLAGS...  -L/root/arm-alsa -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.9... found.
checking for snd_ctl_open in -lasound... no
configure: error: No linkable libasound was found.

3.CC=arm-linux-gcc ./configure --target=arm-linux --host=i686-linux
--with-alsa-prefix=/root/arm-alsa/lib
--with-alsa-inc-prefix=/root/arm-alsa/include

it worked partially as it is not able to find libcurses and ncurses. I
copied the required libraries and include file to the respective
directories and it started configuring and compiling without any
issue.

Thank you very much for help. I tried the above option but somehow
didn't work at that time and also my brain might have stalled during
the process.

Any way i still need to compile for PPC which should work with the
same proceure.

Thanks and Regards
Harish Kumar.B





On 10/6/09, Jaroslav Kysela <perex@perex.cz> wrote:
> On Tue, 6 Oct 2009, Harish Kumar wrote:
>
>> Hi,
>>
>> I am trying to cross compile the alsa utils for PPC and as well as arm
>> architecture. the compilation of alsa-libs was successful with their
>> respective toolchains. But configuring the alsa-util is failing. I am
>> using alsa-utils-1.0.11rc2,alsa-lib-1.0.11rc2.  I am getting the error
>> checking for libasound headers version >= 1.0.9... not present.
>> configure: error: Sufficiently new version of libasound not found. I
>> feel i have to provide the path of the include files but not sure
>> which path to be passed and how it needs to be passed to configure.
>
> # ./configure --help | grep alsa | grep prefix
>    --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
>    --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
>
>  					Jaroslav
>
> -----
> Jaroslav Kysela <perex@perex.cz>
> Linux Kernel Sound Maintainer
> ALSA Project, Red Hat, Inc.
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: alsa-utils cross compilation error
  2009-10-06 15:09   ` Harish Kumar
@ 2009-10-07 10:02     ` Takashi Iwai
  0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2009-10-07 10:02 UTC (permalink / raw)
  To: Harish Kumar; +Cc: alsa-devel

At Tue, 6 Oct 2009 20:39:42 +0530,
Harish Kumar wrote:
> 
> Hi,
> 
> I compiled the alsa libs using the following
> 
> CC=arm-linux-gcc ./configure --target=arm-linux --host=i686-linux
> --prefix=/root/arm-alsa/
> make
> make install
> 
> changed the directory to alsa-utils and executed the following
> 1.
> CC=arm-linux-gcc ./configure --target=arm-linux --host=i686-linux
> --with-alsa-prefix=/root/arm-alsa
> --with-alsa-inc-prefix=/root/arm-alsa

Look at -I and -L options used below:

> the configured failed with the same error
> checking for ALSA CFLAGS...  -I/root/arm-alsa
> checking for ALSA LDFLAGS...  -L/root/arm-alsa -lasound -lm -ldl -lpthread

So you are pointing wrong directories.  Pass like
  --with-alsa-prefix=/root/arm-alsa/usr/lib
  --with-alsa-inc-prefix=/root/arm-alsa/include


Takashi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* alsa-utils cross compilation error
@ 2009-10-06 14:20 Harish Kumar
  0 siblings, 0 replies; 5+ messages in thread
From: Harish Kumar @ 2009-10-06 14:20 UTC (permalink / raw)
  To: alsa-devel

Hi,

I am trying to cross compile the alsa utils for PPC and as well as arm
architecture. the compilation of alsa-libs was successful with their
respective toolchains. But configuring the alsa-util is failing. I am
using alsa-utils-1.0.11rc2,alsa-lib-1.0.11rc2.  I am getting the error
checking for libasound headers version >= 1.0.9... not present.
configure: error: Sufficiently new version of libasound not found. I
feel i have to provide the path of the include files but not sure
which path to be passed and how it needs to be passed to configure.

Request your help to resolve the same.

I invoked the configure using the following command and the output of
the configure is as below.

root@localhost alsa-utils-1.0.11rc2]# CC=arm-linux-gcc ./configure
--target=arm-linux --host=i686-linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-linux-strip... no
checking for strip... strip
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for i686-linux-gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking dependency style of arm-linux-gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC...
/opt/GARZ/CROSSTOOLS/arm-2007q3/arm-none-linux-gnueabi/bin/ld
checking if the linker
(/opt/GARZ/CROSSTOOLS/arm-2007q3/arm-none-linux-gnueabi/bin/ld) is GNU
ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for i686-linux-gcc... (cached) arm-linux-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gcc accepts -g... (cached) yes
checking for arm-linux-gcc option to accept ANSI C... (cached) none needed
checking dependency style of arm-linux-gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.9... not present.
configure: error: Sufficiently new version of libasound not found.
[2]+  Done                    gedit configure
[root@localhost alsa-utils-1.0.11rc2]#


Thanks and Regards
Harish Kumar.B

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-07 10:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-06 14:19 alsa-utils cross compilation error Harish Kumar
2009-10-06 14:21 ` Jaroslav Kysela
2009-10-06 15:09   ` Harish Kumar
2009-10-07 10:02     ` Takashi Iwai
2009-10-06 14:20 Harish Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.