All of lore.kernel.org
 help / color / mirror / Atom feed
* How to cross compile the alsa ?
@ 2012-03-26 15:15 Dámaso López
  2012-03-26 15:25 ` Clemens Ladisch
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-26 15:15 UTC (permalink / raw)
  To: alsa-devel

Hi all,

I need you help not to understant how cross compile alsa with
arm-gp2x-linux. I downloaded alsa-lib-1.0.17 and alsa-utils-1.0.17
last week

Step to step, because I don't know if I will forget any step.

Once I descrompressed in /home/dam:

tar -xvfj alsa-lib-1.0.17.tar.bz2
tar -xvfj alsa-utils-1.0.17.tar.bz2

Then to descompress I went to directory alsa-lib... and I put in
directory, the next line:

# CC=arm-gp2x-linux ./configure --host=i686.linux --target=arm-linux
#make
#make install

When it finish I copy all include from alsa-lib-1.0.17 in my directory
/usr/arm-gp2x-linux/include.

After I did:

#arm-gp2x-linux -o micro micro.c -lasound

But it say that can't find -lasound and ld returned 1 exit status.
What I did bad do? Can you put step to step, please?

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

* Re: How to cross compile the alsa ?
  2012-03-26 15:15 How to cross compile the alsa ? Dámaso López
@ 2012-03-26 15:25 ` Clemens Ladisch
  2012-03-26 15:32   ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Clemens Ladisch @ 2012-03-26 15:25 UTC (permalink / raw)
  To: Dámaso López; +Cc: alsa-devel

Dámaso López wrote:
> # CC=arm-gp2x-linux ./configure --host=i686.linux --target=arm-linux
> #make
> #make install

When cross-compiling, you cannot simply install on your host system.
Use
	make install DESTDIR=/root/of/target/machine's/filesystem

> When it finish I copy all include from alsa-lib-1.0.17 in my directory
> /usr/arm-gp2x-linux/include.
>
> After I did:
>
> #arm-gp2x-linux -o micro micro.c -lasound
>
> But it say that can't find -lasound

The library is not an include file.


Regards,
Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-26 15:25 ` Clemens Ladisch
@ 2012-03-26 15:32   ` Dámaso López
  2012-03-26 16:00     ` Dámaso López
  2012-03-26 20:15     ` Clemens Ladisch
  0 siblings, 2 replies; 23+ messages in thread
From: Dámaso López @ 2012-03-26 15:32 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi Clemens,

Thanks for you response, but I don't find /root/of/target, where's
this route? I've installed a Fedora on Virtual Machine and host is a
Windows XP

Another question is:

Have I do this line "make install DESTDIR=..." on directory
/home/dam/lsa-lib-1.0.17 ?

Best Regards,

Dam

2012/3/26 Clemens Ladisch <clemens@ladisch.de>:
> Dámaso López wrote:
>> # CC=arm-gp2x-linux ./configure --host=i686.linux --target=arm-linux
>> #make
>> #make install
>
> When cross-compiling, you cannot simply install on your host system.
> Use
>        make install DESTDIR=/root/of/target/machine's/filesystem
>
>> When it finish I copy all include from alsa-lib-1.0.17 in my directory
>> /usr/arm-gp2x-linux/include.
>>
>> After I did:
>>
>> #arm-gp2x-linux -o micro micro.c -lasound
>>
>> But it say that can't find -lasound
>
> The library is not an include file.
>
>
> Regards,
> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-26 15:32   ` Dámaso López
@ 2012-03-26 16:00     ` Dámaso López
  2012-03-26 20:15     ` Clemens Ladisch
  1 sibling, 0 replies; 23+ messages in thread
From: Dámaso López @ 2012-03-26 16:00 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Sorry Clemens, I didn't see correctly you answer last post, but I
can't across compile :(

2012/3/26 Dámaso López <dlopezsk@gmail.com>:
> Hi Clemens,
>
> Thanks for you response, but I don't find /root/of/target, where's
> this route? I've installed a Fedora on Virtual Machine and host is a
> Windows XP
>
> Another question is:
>
> Have I do this line "make install DESTDIR=..." on directory
> /home/dam/lsa-lib-1.0.17 ?
>
> Best Regards,
>
> Dam
>
> 2012/3/26 Clemens Ladisch <clemens@ladisch.de>:
>> Dámaso López wrote:
>>> # CC=arm-gp2x-linux ./configure --host=i686.linux --target=arm-linux
>>> #make
>>> #make install
>>
>> When cross-compiling, you cannot simply install on your host system.
>> Use
>>        make install DESTDIR=/root/of/target/machine's/filesystem
>>
>>> When it finish I copy all include from alsa-lib-1.0.17 in my directory
>>> /usr/arm-gp2x-linux/include.
>>>
>>> After I did:
>>>
>>> #arm-gp2x-linux -o micro micro.c -lasound
>>>
>>> But it say that can't find -lasound
>>
>> The library is not an include file.
>>
>>
>> Regards,
>> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-26 15:32   ` Dámaso López
  2012-03-26 16:00     ` Dámaso López
@ 2012-03-26 20:15     ` Clemens Ladisch
  2012-03-27  7:07       ` Dámaso López
  1 sibling, 1 reply; 23+ messages in thread
From: Clemens Ladisch @ 2012-03-26 20:15 UTC (permalink / raw)
  To: Dámaso López; +Cc: alsa-devel

Dámaso López wrote:
> Thanks for you response, but I don't find /root/of/target, where's
> this route? I've installed a Fedora on Virtual Machine and host is a
> Windows XP
>
> Another question is:
>
> Have I do this line "make install DESTDIR=..." on directory
> /home/dam/lsa-lib-1.0.17 ?

Run
	make install DESTDIR=/tmp/blah
then look in there to find out which files you need.


Regards,
Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-26 20:15     ` Clemens Ladisch
@ 2012-03-27  7:07       ` Dámaso López
  2012-03-27  7:24         ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27  7:07 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi,

But when I run make or make install ,the procedure is nok, it says:

pcm/.libs/libpcm.a(atomic.o) couldn't read symbols:File in wrong format
collectt2:ld returned 1 exit status
make[2]:[libasound.la] error 1
to exit of directory /home/dam/alsa-lib.../src
make[1]: [all-recursive] error 1
to exit of directory /home/dam/alsa-lib.../src
make [all-recursive] error 1

Are there modify any file to configure?? because of be able to motive
there are create nothing  and it's bad

2012/3/26 Clemens Ladisch <clemens@ladisch.de>:
> Dámaso López wrote:
>> Thanks for you response, but I don't find /root/of/target, where's
>> this route? I've installed a Fedora on Virtual Machine and host is a
>> Windows XP
>>
>> Another question is:
>>
>> Have I do this line "make install DESTDIR=..." on directory
>> /home/dam/lsa-lib-1.0.17 ?
>
> Run
>        make install DESTDIR=/tmp/blah
> then look in there to find out which files you need.
>
>
> Regards,
> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27  7:07       ` Dámaso López
@ 2012-03-27  7:24         ` Dámaso López
  2012-03-27  7:39           ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27  7:24 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi again Clemens,

I look differents files in tmp/blah ,thanks, I think that alonely copy
lib/*.*, libasound.la. so ,etc in my directory
/usr/arm-gp2x-linux/lib/*.*

Is OK? or I copy all files in my directory? ainx :)

2012/3/27 Dámaso López <dlopezsk@gmail.com>:
> Hi,
>
> But when I run make or make install ,the procedure is nok, it says:
>
> pcm/.libs/libpcm.a(atomic.o) couldn't read symbols:File in wrong format
> collectt2:ld returned 1 exit status
> make[2]:[libasound.la] error 1
> to exit of directory /home/dam/alsa-lib.../src
> make[1]: [all-recursive] error 1
> to exit of directory /home/dam/alsa-lib.../src
> make [all-recursive] error 1
>
> Are there modify any file to configure?? because of be able to motive
> there are create nothing  and it's bad
>
> 2012/3/26 Clemens Ladisch <clemens@ladisch.de>:
>> Dámaso López wrote:
>>> Thanks for you response, but I don't find /root/of/target, where's
>>> this route? I've installed a Fedora on Virtual Machine and host is a
>>> Windows XP
>>>
>>> Another question is:
>>>
>>> Have I do this line "make install DESTDIR=..." on directory
>>> /home/dam/lsa-lib-1.0.17 ?
>>
>> Run
>>        make install DESTDIR=/tmp/blah
>> then look in there to find out which files you need.
>>
>>
>> Regards,
>> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27  7:24         ` Dámaso López
@ 2012-03-27  7:39           ` Dámaso López
       [not found]             ` <4F718047.2090405@ladisch.de>
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27  7:39 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi again :-P

Ok!! thanks for you, I finish to cross compile xDDDDD, but another
problem I need compile with parameter -static, but when put this line:

#arm-gp2x-linux -static -lasound -o micro micro.c

It returned :

Can't find -lasound
 collect2:ld returned 1 exit status

How cross compile statically alsa, please??, arg it's a handicap it

2012/3/27 Dámaso López <dlopezsk@gmail.com>:
> Hi again Clemens,
>
> I look differents files in tmp/blah ,thanks, I think that alonely copy
> lib/*.*, libasound.la. so ,etc in my directory
> /usr/arm-gp2x-linux/lib/*.*
>
> Is OK? or I copy all files in my directory? ainx :)
>
> 2012/3/27 Dámaso López <dlopezsk@gmail.com>:
>> Hi,
>>
>> But when I run make or make install ,the procedure is nok, it says:
>>
>> pcm/.libs/libpcm.a(atomic.o) couldn't read symbols:File in wrong format
>> collectt2:ld returned 1 exit status
>> make[2]:[libasound.la] error 1
>> to exit of directory /home/dam/alsa-lib.../src
>> make[1]: [all-recursive] error 1
>> to exit of directory /home/dam/alsa-lib.../src
>> make [all-recursive] error 1
>>
>> Are there modify any file to configure?? because of be able to motive
>> there are create nothing  and it's bad
>>
>> 2012/3/26 Clemens Ladisch <clemens@ladisch.de>:
>>> Dámaso López wrote:
>>>> Thanks for you response, but I don't find /root/of/target, where's
>>>> this route? I've installed a Fedora on Virtual Machine and host is a
>>>> Windows XP
>>>>
>>>> Another question is:
>>>>
>>>> Have I do this line "make install DESTDIR=..." on directory
>>>> /home/dam/lsa-lib-1.0.17 ?
>>>
>>> Run
>>>        make install DESTDIR=/tmp/blah
>>> then look in there to find out which files you need.
>>>
>>>
>>> Regards,
>>> Clemens

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

* Re: How to cross compile the alsa ?
       [not found]               ` <CAC-Zu+7ZyJuVRriEW84p4K+TpfmcZo1fRXkDCiQ2AK66kp9r3Q@mail.gmail.com>
@ 2012-03-27  9:29                 ` Dámaso López
  2012-03-27 10:31                   ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27  9:29 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Yeah, I configure with --enable-static=yes and another parameter :

#CC=arm-gp2x-linux ./configure –host=i686.linux –target=arm-gp2x-linux
–enable-store=no –enable-static=yes

And same make and make install... But when I copy all files in
corresponding directory on /usr/arm-gp2x-linux/usr/* after then I
compile.

But I look errors that not defined reference, I don't undertand, What I do bad?

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

* Re: How to cross compile the alsa ?
  2012-03-27  9:29                 ` Dámaso López
@ 2012-03-27 10:31                   ` Dámaso López
  2012-03-27 11:00                     ` Clemens Ladisch
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27 10:31 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi?

2012/3/27 Dámaso López <dlopezsk@gmail.com>:
> Yeah, I configure with --enable-static=yes and another parameter :
>
> #CC=arm-gp2x-linux ./configure –host=i686.linux –target=arm-gp2x-linux
> –enable-store=no –enable-static=yes
>
> And same make and make install... But when I copy all files in
> corresponding directory on /usr/arm-gp2x-linux/usr/* after then I
> compile.
>
> But I look errors that not defined reference, I don't undertand, What I do bad?

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

* Re: How to cross compile the alsa ?
  2012-03-27 10:31                   ` Dámaso López
@ 2012-03-27 11:00                     ` Clemens Ladisch
  2012-03-27 11:20                       ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Clemens Ladisch @ 2012-03-27 11:00 UTC (permalink / raw)
  To: Dámaso López; +Cc: alsa-devel

Dámaso López wrote:
> Hi?

We apologize for the delay.  Those responsible have been sacked.

> You look this file jpeg that I send us

You forgot the wooden table:
http://thedailywtf.com/Articles/Web_0_0x2e_1.aspx

> #arm-gp2x-linux -static -lasound -o micro micro.c

You have to add all the other libraries that libasound depends
on, such as libdl and libpthread.


Regards,
Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27 11:00                     ` Clemens Ladisch
@ 2012-03-27 11:20                       ` Dámaso López
  2012-03-27 11:39                         ` Clemens Ladisch
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27 11:20 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Ok, I've all files, but to be continued fail and I don't know why
can't send new posts in forum alsa-devel

2012/3/27 Clemens Ladisch <clemens@ladisch.de>:
> Dámaso López wrote:
>> Hi?
>
> We apologize for the delay.  Those responsible have been sacked.
>
>> You look this file jpeg that I send us
>
> You forgot the wooden table:
> http://thedailywtf.com/Articles/Web_0_0x2e_1.aspx
>
>> #arm-gp2x-linux -static -lasound -o micro micro.c
>
> You have to add all the other libraries that libasound depends
> on, such as libdl and libpthread.
>
>
> Regards,
> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27 11:20                       ` Dámaso López
@ 2012-03-27 11:39                         ` Clemens Ladisch
  2012-03-27 11:47                           ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Clemens Ladisch @ 2012-03-27 11:39 UTC (permalink / raw)
  To: Dámaso López; +Cc: alsa-devel

Dámaso López wrote:
> Ok, I've all files, but to be continued fail

And what error message is it now?


Regards,
Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27 11:39                         ` Clemens Ladisch
@ 2012-03-27 11:47                           ` Dámaso López
  2012-03-27 12:37                             ` Clemens Ladisch
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27 11:47 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

The error messages are:

# arm-gp2x-linux-gcc -o micro micro.c -lasound -static
/usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(conf.o):
In function `snd_config_update_free_global':
/home/dam/alsa-lib-1.0.17/src/conf.c:3142: undefined reference to
`pthread_mutex_lock'
/home/dam/alsa-lib-1.0.17/src/conf.c:3151: undefined reference to
`pthread_mutex_unlock'
/usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(conf.o):
In function `snd_config_update':
/home/dam/alsa-lib-1.0.17/src/conf.c:3109: undefined reference to
`pthread_mutex_lock'
/home/dam/alsa-lib-1.0.17/src/conf.c:3113: undefined reference to
`pthread_mutex_unlock'
/usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
In function `snd_dlsym_verify':
/home/dam/alsa-lib-1.0.17/src/dlmisc.c:115: undefined reference to `dlsym'
/usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
In function `snd_dlsym':
/home/dam/alsa-lib-1.0.17/src/dlmisc.c:161: undefined reference to `dlsym'
/usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
In function `snd_dlclose':
/home/dam/alsa-lib-1.0.17/src/dlmisc.c:85: undefined reference to `dlclose'
/usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
In function `snd_dlopen':
/home/dam/alsa-lib-1.0.17/src/dlmisc.c:64: undefined reference to `dlopen'
/home/dam/alsa-lib-1.0.17/src/dlmisc.c:58: undefined reference to `dladdr'
collect2: ld returned 1 exit status

I repeat that think all copy to generate when I did make install
DESTDIR=/tmp/blah, and compile --enable-static=yes

On folder arm-gp2x-linux/lib


2012/3/27 Clemens Ladisch <clemens@ladisch.de>:
> Dámaso López wrote:
>> Ok, I've all files, but to be continued fail
>
> And what error message is it now?
>
>
> Regards,
> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27 11:47                           ` Dámaso López
@ 2012-03-27 12:37                             ` Clemens Ladisch
  2012-03-27 14:35                               ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Clemens Ladisch @ 2012-03-27 12:37 UTC (permalink / raw)
  To: Dámaso López; +Cc: alsa-devel

Dámaso López wrote:
> # arm-gp2x-linux-gcc -o micro micro.c -lasound -static

You still do not have -ldl and -lpthread.


Regards,
Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27 12:37                             ` Clemens Ladisch
@ 2012-03-27 14:35                               ` Dámaso López
  2012-03-27 16:03                                 ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27 14:35 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi Clemens,

I added 2 parameters and return:

# arm-gp2x-linux-gcc -o microphone microphone.c -lasound -static -ldl -lpthread

/usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
In function `snd_dlopen':

/home/dam/alsa-lib-1.0.17/src/dlmisc.c:64: warning: Using 'dlopen' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking




2012/3/27 Clemens Ladisch <clemens@ladisch.de>:
> Dámaso López wrote:
>> # arm-gp2x-linux-gcc -o micro micro.c -lasound -static
>
> You still do not have -ldl and -lpthread.
>
>
> Regards,
> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27 14:35                               ` Dámaso López
@ 2012-03-27 16:03                                 ` Dámaso López
  2012-03-28 11:08                                   ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-27 16:03 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi again,

Another question, how I can get the volume of the microphone real=
dynamic? I like getting volume of the micro, to change volume of
speakers.

I don't know if I will explain .

2012/3/27 Dámaso López <dlopezsk@gmail.com>:
> Hi Clemens,
>
> I added 2 parameters and return:
>
> # arm-gp2x-linux-gcc -o microphone microphone.c -lasound -static -ldl -lpthread
>
> /usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
> In function `snd_dlopen':
>
> /home/dam/alsa-lib-1.0.17/src/dlmisc.c:64: warning: Using 'dlopen' in
> statically linked applications requires at runtime the shared
> libraries from the glibc version used for linking
>
>
>
>
> 2012/3/27 Clemens Ladisch <clemens@ladisch.de>:
>> Dámaso López wrote:
>>> # arm-gp2x-linux-gcc -o micro micro.c -lasound -static
>>
>> You still do not have -ldl and -lpthread.
>>
>>
>> Regards,
>> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-27 16:03                                 ` Dámaso López
@ 2012-03-28 11:08                                   ` Dámaso López
  2012-03-28 15:49                                     ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-28 11:08 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi Clemens and friends,

I've some problem referents with alsa and get volume from mircophone:

1.- When to compile the file ,returned these lines.Could be problem to keep?

arm-gp2x-linux-gcc -o micro micro.c -lasound -static -lpthread -ldl -lm -lrt
/usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
In function `snd_dlopen':
/home/dam/alsa-lib-1.0.17/src/dlmisc.c:64: warning: Using 'dlopen' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking

2.- The previous to say, despite being a warning can create executable
file. But when return:

ALSA lib conf.c:3009:(snd_config_update_r) Cannot access file
/usr/share/alsa/alsa.conf
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default
Ret -2
Mic volume is -1

I'm sorpress because not exist this file, but the route /usr/share/
has others folders differents of alsa, Does it change the route?

2012/3/27 Dámaso López <dlopezsk@gmail.com>:
> Hi again,
>
> Another question, how I can get the volume of the microphone real=
> dynamic? I like getting volume of the micro, to change volume of
> speakers.
>
> I don't know if I will explain .
>
> 2012/3/27 Dámaso López <dlopezsk@gmail.com>:
>> Hi Clemens,
>>
>> I added 2 parameters and return:
>>
>> # arm-gp2x-linux-gcc -o microphone microphone.c -lasound -static -ldl -lpthread
>>
>> /usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
>> In function `snd_dlopen':
>>
>> /home/dam/alsa-lib-1.0.17/src/dlmisc.c:64: warning: Using 'dlopen' in
>> statically linked applications requires at runtime the shared
>> libraries from the glibc version used for linking
>>
>>
>>
>>
>> 2012/3/27 Clemens Ladisch <clemens@ladisch.de>:
>>> Dámaso López wrote:
>>>> # arm-gp2x-linux-gcc -o micro micro.c -lasound -static
>>>
>>> You still do not have -ldl and -lpthread.
>>>
>>>
>>> Regards,
>>> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-28 11:08                                   ` Dámaso López
@ 2012-03-28 15:49                                     ` Dámaso López
  2012-03-29  6:54                                       ` Clemens Ladisch
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-28 15:49 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

HI? Any answer? please, I'm in a loop and not to exit

2012/3/28 Dámaso López <dlopezsk@gmail.com>:
> Hi Clemens and friends,
>
> I've some problem referents with alsa and get volume from mircophone:
>
> 1.- When to compile the file ,returned these lines.Could be problem to keep?
>
> arm-gp2x-linux-gcc -o micro micro.c -lasound -static -lpthread -ldl -lm -lrt
> /usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
> In function `snd_dlopen':
> /home/dam/alsa-lib-1.0.17/src/dlmisc.c:64: warning: Using 'dlopen' in
> statically linked applications requires at runtime the shared
> libraries from the glibc version used for linking
>
> 2.- The previous to say, despite being a warning can create executable
> file. But when return:
>
> ALSA lib conf.c:3009:(snd_config_update_r) Cannot access file
> /usr/share/alsa/alsa.conf
> ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default
> Ret -2
> Mic volume is -1
>
> I'm sorpress because not exist this file, but the route /usr/share/
> has others folders differents of alsa, Does it change the route?
>
> 2012/3/27 Dámaso López <dlopezsk@gmail.com>:
>> Hi again,
>>
>> Another question, how I can get the volume of the microphone real=
>> dynamic? I like getting volume of the micro, to change volume of
>> speakers.
>>
>> I don't know if I will explain .
>>
>> 2012/3/27 Dámaso López <dlopezsk@gmail.com>:
>>> Hi Clemens,
>>>
>>> I added 2 parameters and return:
>>>
>>> # arm-gp2x-linux-gcc -o microphone microphone.c -lasound -static -ldl -lpthread
>>>
>>> /usr/lib/gcc/arm-gp2x-linux/4.1.2/../../../../arm-gp2x-linux/lib/libasound.a(dlmisc.o):
>>> In function `snd_dlopen':
>>>
>>> /home/dam/alsa-lib-1.0.17/src/dlmisc.c:64: warning: Using 'dlopen' in
>>> statically linked applications requires at runtime the shared
>>> libraries from the glibc version used for linking
>>>
>>>
>>>
>>>
>>> 2012/3/27 Clemens Ladisch <clemens@ladisch.de>:
>>>> Dámaso López wrote:
>>>>> # arm-gp2x-linux-gcc -o micro micro.c -lasound -static
>>>>
>>>> You still do not have -ldl and -lpthread.
>>>>
>>>>
>>>> Regards,
>>>> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-28 15:49                                     ` Dámaso López
@ 2012-03-29  6:54                                       ` Clemens Ladisch
  2012-03-29  7:24                                         ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Clemens Ladisch @ 2012-03-29  6:54 UTC (permalink / raw)
  To: Dámaso López; +Cc: alsa-devel

Dámaso López wrote:
> HI? Any answer? please, I'm in a loop and not to exit

We apologize again for the delay.  Those responsible for sacking the
people who have just been sacked have been sacked.

>> I've some problem referents with alsa and get volume from mircophone:
>>
>> 1.- When to compile the file ,returned these lines.Could be problem to keep?
>>
>> warning: Using 'dlopen' in statically linked applications requires at runtime the shared
>> libraries from the glibc version used for linking

This message means exactly what it says.

>> 2.- The previous to say, despite being a warning can create executable
>> file. But when return:
>>
>> ALSA lib conf.c:3009:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
>> ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default
>>
>> I'm sorpress because not exist this file

So you didn't copy this directory to the target system?
(With the earlier install command, it would be at /tmp/blah/usr/share/alsa.)

Please note that _all_ files installed by 'make install' are needed for
either compiling/linking or at runtime.


Regards,
Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-29  6:54                                       ` Clemens Ladisch
@ 2012-03-29  7:24                                         ` Dámaso López
  2012-03-29 10:11                                           ` Clemens Ladisch
  0 siblings, 1 reply; 23+ messages in thread
From: Dámaso López @ 2012-03-29  7:24 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Thanks Clemens, no problem .

But not affect this warning? It can affect how can to fix it? And you
know how I can get the volume that enters the microphone at the time?



2012/3/29 Clemens Ladisch <clemens@ladisch.de>:
> Dámaso López wrote:
>> HI? Any answer? please, I'm in a loop and not to exit
>
> We apologize again for the delay.  Those responsible for sacking the
> people who have just been sacked have been sacked.
>
>>> I've some problem referents with alsa and get volume from mircophone:
>>>
>>> 1.- When to compile the file ,returned these lines.Could be problem to keep?
>>>
>>> warning: Using 'dlopen' in statically linked applications requires at runtime the shared
>>> libraries from the glibc version used for linking
>
> This message means exactly what it says.
>
>>> 2.- The previous to say, despite being a warning can create executable
>>> file. But when return:
>>>
>>> ALSA lib conf.c:3009:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
>>> ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default
>>>
>>> I'm sorpress because not exist this file
>
> So you didn't copy this directory to the target system?
> (With the earlier install command, it would be at /tmp/blah/usr/share/alsa.)
>
> Please note that _all_ files installed by 'make install' are needed for
> either compiling/linking or at runtime.
>
>
> Regards,
> Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-29  7:24                                         ` Dámaso López
@ 2012-03-29 10:11                                           ` Clemens Ladisch
  2012-03-29 10:35                                             ` Dámaso López
  0 siblings, 1 reply; 23+ messages in thread
From: Clemens Ladisch @ 2012-03-29 10:11 UTC (permalink / raw)
  To: Dámaso López; +Cc: alsa-devel

Dámaso López wrote:
> But not affect this warning?

Unless you're trying to use a plugin not in alsa-lib.

> It can affect how can to fix it?

Don't compile statically.

> And you know how I can get the volume that enters the microphone at the time?

The volume of the mixer control or the volume of the audio signal?


Regards,
Clemens

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

* Re: How to cross compile the alsa ?
  2012-03-29 10:11                                           ` Clemens Ladisch
@ 2012-03-29 10:35                                             ` Dámaso López
  0 siblings, 0 replies; 23+ messages in thread
From: Dámaso López @ 2012-03-29 10:35 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Ok!, I'm trying to use another ,with library <sys/soundcard.h> and
until question that you ask .I think need to the volume of the audio
signal.

Because the audio gets to a microphone and I need to get this volume.
I don't know very explain :)

2012/3/29 Clemens Ladisch <clemens@ladisch.de>:
> Dámaso López wrote:
>> But not affect this warning?
>
> Unless you're trying to use a plugin not in alsa-lib.
>
>> It can affect how can to fix it?
>
> Don't compile statically.
>
>> And you know how I can get the volume that enters the microphone at the time?
>
> The volume of the mixer control or the volume of the audio signal?
>
>
> Regards,
> Clemens

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

end of thread, other threads:[~2012-03-29 10:35 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 15:15 How to cross compile the alsa ? Dámaso López
2012-03-26 15:25 ` Clemens Ladisch
2012-03-26 15:32   ` Dámaso López
2012-03-26 16:00     ` Dámaso López
2012-03-26 20:15     ` Clemens Ladisch
2012-03-27  7:07       ` Dámaso López
2012-03-27  7:24         ` Dámaso López
2012-03-27  7:39           ` Dámaso López
     [not found]             ` <4F718047.2090405@ladisch.de>
     [not found]               ` <CAC-Zu+7ZyJuVRriEW84p4K+TpfmcZo1fRXkDCiQ2AK66kp9r3Q@mail.gmail.com>
2012-03-27  9:29                 ` Dámaso López
2012-03-27 10:31                   ` Dámaso López
2012-03-27 11:00                     ` Clemens Ladisch
2012-03-27 11:20                       ` Dámaso López
2012-03-27 11:39                         ` Clemens Ladisch
2012-03-27 11:47                           ` Dámaso López
2012-03-27 12:37                             ` Clemens Ladisch
2012-03-27 14:35                               ` Dámaso López
2012-03-27 16:03                                 ` Dámaso López
2012-03-28 11:08                                   ` Dámaso López
2012-03-28 15:49                                     ` Dámaso López
2012-03-29  6:54                                       ` Clemens Ladisch
2012-03-29  7:24                                         ` Dámaso López
2012-03-29 10:11                                           ` Clemens Ladisch
2012-03-29 10:35                                             ` Dámaso López

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.