I want to cross compile portaudio in order to use it on a ARM system (devkit8000). I am trying to use cross compilation tools given with this board (arm-none-linux-gnueabi) in this way
CXX=../cross/arm-2007q3/bin/arm-none-linux-gnueabi-g++ ./configure --target=arm-linux --host=arm-linux
but when I try to link portaudio object with my source code compiled it tells me
../cross/arm-2007q3/bin/arm-none-linux-gnueabi-g++ -L../portaudio/lib/.libs -lportaudio prova.cpp
../portaudio/lib/.libs/libportaudio.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
In the end I used bitbake and openembedded. Just adding to my bitbake recipe
DEPENDS = "portaudio-v19"
bitbake builds portaudio for your machine and you have only to copy ipk
package (in my case, using Angstrom 2012.05
) from tmp/deploy/...
subdirectory to your system and install it with (in Angstrom 2012.05
):
opkg install <package_name>.ipk
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.