移植madplay时,移植alsa-utils时遇到了问题,/configure出现错误

2019-07-16 08:15发布

我是OK6410开发板在项目移动物品监控时候,移植alsa时出现错误,移植madplay时./configure一切正常 具体错误如下:
在配置移植alsa-lib时执行:
./configure --host=ARM-linux  --prefix=/usr/local/share/arm-alsa  --enable-shared --disable-python --with-configdir=/usr/local/share/alsa  --with-plugindir=/usr/local/lib/alsa_lib CC=arm-linux-gcc CXX=arm-linux-g++ LD=arm-linux-ld一切正常,但是在下一个配置alsa-utils时执行:
./configure --host=arm-linux --prefix=/usr/local/share/arm-alsa CFLAGS="-I/usr/local/share/arm-alsa/include" LDFLAGS="-L/usr/local/share/arm-alsa/lib -lasound" --disable-alsamixer --disable-xmlto --with-alsa-inc-prefix=/usr/local/share/arm-alsa/include --with-alsa-prefix=/usr/local/share/arm-alsa/lib CC=arm-linux-gcc CXX=arm-linux-g++ LD=arm-linux-ld
发生错误错误如下:
[root@localhost alsa-utils-1.0.29]# ./configure --host=arm-linux --prefix=/usr/local/share/arm-alsa  CFLAGS="-l/usr/local/share/arm-alsa/include"  LDFLAGS="-L/usr/local/share/arm-alsa/lib-lasound" --disable-alsamixer --disable-xmlto  --with-alsa-inc-prefix=/usr/local/share/arm-alsa/include  --with-alsa-prefix=/usr/local/share/arm-alsa/lib CC=arm-linux-gcc CXX=arm-linux-g++ LD=arm-linux-ld
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... arm-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
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 arm-linux-gcc... arm-linux-gcc
checking whether the C compiler works... no
configure: error: in `/study/madplay/alsa-utils-1.0.29':
configure: error: C compiler cannot create executables
See `config.log' for more details
我的arm-linux-gcc也没输入错误呀,不知道为什么,配置不过去了,还请老师在百忙之中帮我看看这个问题感谢!


[root@localhost alsa-utils-1.0.29]# ./configure --host=arm-linux --prefix=/usr/local/share/arm-alsa  CFLAGS="-l/usr/local/share/arm-alsa/include"  LDFLAGS="-L/usr/local/share/arm-alsa/lib-lasound" --disable-alsamixer --disable-xmlto  --with-alsa-inc-prefix=/usr/local/share/arm-alsa/include  --with-alsa-prefix=/usr/local/share/arm-alsa/lib CROSS_COMPILE=arm-linux-
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... arm-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
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 arm-linux-gcc... arm-linux-gcc
checking whether the C compiler works... no
configure: error: in `/study/madplay/alsa-utils-1.0.29':
configure: error: C compiler cannot create executables
See `config.log' for more details
这样我也试了,就是改为CROSS_COMPILE=arm-linux- 也不行
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。