Re: [alsa-devel] How to cross compile the alsa ?
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?
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?
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
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
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
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
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
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
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
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
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
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
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
participants (2)
-
Clemens Ladisch
-
Dámaso López