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