页次: 1
音频文件要重采样,发现全志的Linux下没有alsa-plugins编译这个功能,哪位有这几个库能给发一下吗,
libasound_module_ctl_arcam_av.so
libasound_module_ctl_oss.so
libasound_module_pcm_oss.so
libasound_module_pcm_upmix.so
libasound_module_pcm_usb_stream.so
libasound_module_pcm_vdownmix.so
libasound_module_rate_speexrate.so
libasound_module_rate_speexrate_best.so
libasound_module_rate_speexrate_medium.so
谢谢。
大家好,我对一个芯片传输数据,好像数组一大就就报错,数组有9000多字节,传输就报这个错误:[ 9.063047] twi_stop()483 - [i2c1] i2c state isn't idle(0xf8)
[ 9.069504] sunxi_i2c_core_process()845 - [i2c1] STOP failed!
[ 9.076040] sunxi_i2c_do_xfer()998 - [i2c1] incomplete xfer (status: 0x38, dev addr: 0x3b)
[ 9.085342] ##### i2c_transfer addr 0xc000 , ret -70
难道内核对数据大小做了限制?有什么方法解决吗,谢谢。
自己画了块v3s的板子,spi 启动,到这卡住不走了。有哪位碰到吗?
U-Boot 2011.09-rc1 (Apr 25 2020 - 19:55:58) Allwinner Technology
[ 0.505]version: 1.1.0
[ 0.508]uboot commit : 8
[ 0.514]pmbus: ready
not set main pmu id
axp_probe error
[ 0.520]PMU: pll1 408 Mhz,PLL6=600 Mhz
AXI=204 Mhz,AHB=204 Mhz, APB1=102 Mhz
set power on vol to default
dcdc2_vol = 1200
axp set dcdc2_vol to 1200 failed
dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
ldo3_vol = 3000
axp set ldo3_vol to 3000 failed
find power_sply to end
vbus exist
no battery, limit to dc
no key input
dram_para_set start
dram_para_set end
[ 0.651]DRAM: 64 MiB
relocation Offset is: 0309c000
关于gcc库的几个问,一直这个问题没整明白,哪位高人指导一下。
比如的编译器的路径在:
COLLECT_GCC=arm-poky-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/lto-wrapper
Target: arm-poky-linux-gnueabi。
我现在移植一个libmad 的库,进去之后
./configure --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi --build=x86_64-pc-linux-gnu --prefix=/usr
这个target, host 这个指定对不对,
这个--prefix=/usr 这个/usr是宿主机的usr,还是编译器里面的usr。这个路径怎么确定。
多谢。
直接用耳机输出没这事啊,耳机输出原来3.4 的驱动只要数据不足确实会设置寄存器静音,3.4 里没看到你这个。
大家拿串口485 一般都是怎么实现的,我是在内核串口驱动里面增加了一个.ioctl = serial_rs485_ioctl, 函数接口,然后应用程序里
rs485conf.flags = SER_RS485_ENABLED;
rs485conf.delay_rts_after_send = 1000;
rs485conf.delay_rts_before_send = 1000;
ioctl(fd, TIOCSRS485, &rs485conf);
来开启串口的485 功能。功能到是能开启,但是发现会影响调试串口的输入,TAB 键不好使了,删除键也变了,进入这个函数打印发现每次调试串口终端输入都会有这些命令:
[ 17.808074] serial_rs485_ioctl1053 - ######### port_line 0, cmd 0x5401
[ 17.817046] serial_rs485_ioctl1053 - ######### port_line 0, cmd 0x5401
[ 17.825895] serial_rs485_ioctl()1053 - ######### port_line 0, cmd 0x5401
[ 17.835216] serial_rs485_ioctl()1053 - ######### port_line 0, cmd 0x540b
[ 17.854681] serial_rs485_ioctl()1053 - ######### port_line 0, cmd 0x5401
[ 17.863585] serial_rs485_ioctl()1053 - ######### port_line 0, cmd 0x5401
[ 17.887645] serial_rs485_ioctl()1053 - ######### port_line 0, cmd 0x5401
[ 17.896773] serial_rs485_ioctl()1053 - ######### port_line 0, cmd 0x5402
[ 17.907343] serial_rs485_ioctl()1053 - ######### port_line 0, cmd 0x5401
经查这个些命令的是这个意思
#define TCGETS 0x5401
#define TCSETS 0x5402
#define TCSETSW 0x5403
#define TCSETSF 0x5404
#define TCGETA 0x5405
#define TCSETA 0x5406
#define TCSETAW 0x5407
#define TCSETAF 0x5408
#define TCSBRK 0x5409
#define TCXONC 0x540A
#define TCFLSH 0x540B
#define TIOCEXCL 0x540C
#define TIOCNXCL 0x540D
#define TIOCSCTTY 0x540E
#define TIOCGPGRP 0x540F
#define TIOCSPGRP 0x5410
#define TIOCOUTQ 0x5411
#define TIOCSTI 0x5412
#define TIOCGWINSZ 0x5413
#define TIOCSWINSZ 0x5414
#define TIOCMGET 0x5415
#define TIOCMBIS 0x5416
#define TIOCMBIC 0x5417
#define TIOCMSET 0x5418
哪位有什么好的解决方法,多谢。
大家好最近弄v3s 的i2c ,发现在内核对从地址是这么处理的
/* 7-1bits addr, xxxx_xxx0 */
addr = (i2c->msg[i2c->msg_idx].addr & 0x7f) << 1;
,这要是我的从地址是0x70 , 写的时候变成了0xe0, 没法控制设备啊。我把地址强制成0x70,就可以了,这什么意思?这驱动有问题?按理说不应该啊。
static void sunxi_i2c_addr_byte(struct sunxi_i2c *i2c)
{
unsigned char addr = 0;
unsigned char tmp = 0;
if (i2c->msg[i2c->msg_idx].flags & I2C_M_TEN) {
/* 0111_10xx,ten bits address--9:8bits */
tmp = 0x78 | ( ( (i2c->msg[i2c->msg_idx].addr)>>8 ) & 0x03);
addr = tmp << 1;//1111_0xx0
/* how about the second part of ten bits addr? Answer: deal at twi_core_process() */
}
else {
/* 7-1bits addr, xxxx_xxx0 */
addr = (i2c->msg[i2c->msg_idx].addr & 0x7f) << 1;
}
/* read, default value is write */
if (i2c->msg[i2c->msg_idx].flags & I2C_M_RD) {
addr |= 1;
}
https://whycan.cn/t_1158.html
https://blog.csdn.net/wavemcu/article/details/7202908记起来了, 当时听xboot说和 busybox 有关, 你可以深入研究一下。
按照网上说的,修改了busybox 下面两个文件,重新编译了,中文还是显示 ??? 号。瞎了。
https://whycan.cn/files/members/3/2020-04-02_164802.png
下载 mobaxterm, 右击终端 -> Change terminal setting ...
我用putty 登录的,是这个配置,也不行。只能显示问号。还有什么其他地方需要配置的。内核里已经选上中文支持了。
全志 linux 3.4 的 sdk 用 自己搞的设备树 ---- sys_config.fex
这一搜一大堆,哪个算是?
./tools/pack/out/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/crane-sdv/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/crane-standard/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/tiger-ipc/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/tiger-cdr/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/crane-cdr/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/tiger-standard/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/crane-ipc/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/tiger-spinand-standard/sys_config.fex
Linux sinlinx 3.4.39
不知道你是安装的什么系统,我是在v3s上跑了debian系统,然后用apt来安装的mpg123.甚至安装了musicbox,可以在线听网易云音乐.请看我的连接
https://whycan.cn/t_3114.html
我想移植一个mpg123 上V3S,开发板用aplay 放WAV文件是可以的。用mpg123 就报错。哪位大哥移植成功的,指教一下,谢谢。
mpg123 001.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.25.13; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Terminal control enabled, press 'h' for listing of keys and functions.
Playing MPEG stream 1 of 1: 001.mp3 ...
MPEG 1.0 L III cbr128 44100 j-s
Title: I'm Yours
Artist: Jason Mraz
Album: I'm Yours
Year: 2008-11-14
[src/libout123/modules/alsa.c:241] error: Fatal problem with alsa output, error -5.
[src/libout123/libout123.c:658] error: Error in writing audio (Input/output error?)!
main: [src/mpg123.c:814] error: Deep trouble! Cannot flush to my output anymore!
#
现在想一只webrtc 上v3s上,但是这个算法好像要用到neon,如何在编译的时候用neon选项(else ifneq ($(findstring neon,@ac_webrtc_instset@)谢谢。
WEBRTC_OTHER_CFLAGS = -fexceptions -DWEBRTC_POSIX=1 @ac_webrtc_cflags@
ifneq ($(findstring sse2,@ac_webrtc_instset@),)
WEBRTC_SRC = \
modules/audio_processing/aec/aec_core_sse2.o \
modules/audio_processing/aec/aec_rdft_sse2.o \
modules/audio_processing/aecm/aecm_core_c.o \
modules/audio_processing/ns/nsx_core_c.o \
system_wrappers/source/cpu_features.o
else ifneq ($(findstring neon,@ac_webrtc_instset@),)
WEBRTC_SRC = \
modules/audio_processing/aec/aec_core_neon.o \
modules/audio_processing/aec/aec_rdft_neon.o \
modules/audio_processing/aecm/aecm_core_c.o \
modules/audio_processing/aecm/aecm_core_neon.o \
modules/audio_processing/ns/nsx_core_c.o \
modules/audio_processing/ns/nsx_core_neon.o \
common_audio/signal_processing/cross_correlation_neon.o \
common_audio/signal_processing/downsample_fast_neon.o \
common_audio/signal_processing/min_max_operations_neon.o
WEBRTC_OTHER_CFLAGS += -DWEBRTC_HAS_NEON
最近在编译pjsip,我的gcc按照目录是/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf,我在目录下find ,sinlinx@ubuntu://opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf$ sudo find . -name libpthread.so.0
./arm-linux-gnueabihf/libc/lib/libpthread.so.0
能找到这个库啊。但是make 项目确提示,/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.4.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/libpthread.so.0
这是什么意思,这个ld 和路径什么关系。哪位指教一下,不胜感激。
root@test4:~# /usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -v Using built-in specs. COLLECT_GCC=/usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ COLLECT_LTO_WRAPPER=/usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/7.4.1/lto-wrapper Target: arm-linux-gnueabihf Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release_0/snapshots/gcc.git~linaro-7.4-2019.02/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --with-system-zlib --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu Thread model: posix gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02) root@test4:~# root@test4:~# root@test4:~# root@test4:~# /usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ -v Using built-in specs. COLLECT_GCC=/usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ COLLECT_LTO_WRAPPER=/usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../libexec/gcc/arm-linux-gnueabi/7.2.1/lto-wrapper Target: arm-linux-gnueabi Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/snapshots/gcc.git~linaro-7.2-2017.11/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=soft --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/sysroots/arm-linux-gnueabi --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabi/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabi --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu Thread model: posix gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11) root@test4:~# root@test4:~# root@test4:~# /usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ arm-linux-gnueabi-g++: fatal error: no input files compilation terminated. root@test4:~# /usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ arm-linux-gnueabihf-g++: fatal error: no input files compilation terminated. root@test4:~#
你的 是什么发行版本 Linux? 32bit 的吗?
我的是ubuntu-14.04.6-desktop-amd64 版本。
https://whycan.cn/files/members/3/QQ20190801091518.png
root@test4:~# ls /usr/local/ -l total 409764 drwxr-xr-x 7 root root 4096 Oct 12 2018 arm-2010q1 -rw-r--r-- 1 root root 82460512 Apr 23 2010 arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 drwxr-xr-x 2 root root 4096 Jun 2 10:10 bin drwxr-xr-x 2 root root 4096 Feb 15 2017 etc drwxr-xr-x 3 root root 4096 Jul 23 07:05 frp drwxr-xr-x 2 root root 4096 Feb 15 2017 games drwxr-xr-x 8 11827 9000 4096 Jul 1 2016 gcc-linaro-5.3.1-2016.05-x86_64_arm-eabi -rw-r--r-- 1 root root 229015824 Feb 26 2018 gcc-linaro-5.3.1-2016.05-x86_64_arm-eabi.tar.xz drwxr-xr-x 8 11827 9000 4096 Nov 19 2017 gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi drwxr-xr-x 8 11827 9000 4096 Jan 22 2019 gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf -rw-r--r-- 1 root root 108038500 Jan 25 2019 gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf.tar.xz drwxr-xr-x 3 root root 4096 Jun 6 2018 gnu-mcu-eclipse drwxr-xr-x 3 root root 4096 Aug 19 2018 gnutools drwxr-xr-x 2 root root 4096 Feb 15 2017 include drwxr-xr-x 5 root root 4096 Sep 25 2018 lib drwxr-xr-x 2 root root 4096 Sep 25 2018 libexec lrwxrwxrwx 1 root root 9 Mar 14 2017 man -> share/man drwxr-xr-x 11 root root 4096 Oct 3 2018 riscv-tools drwxr-xr-x 2 root root 4096 Feb 15 2017 sbin drwxr-xr-x 11 root root 4096 Sep 25 2018 share drwxr-xr-x 2 root root 4096 Feb 15 2017 src drwxr-xr-x 3 root root 4096 Sep 25 2018 var root@test4:~# root@test4:~# root@test4:~# root@test4:~# find /usr/local/ |grep linaro |grep g++$ /usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ /usr/local/gcc-linaro-5.3.1-2016.05-x86_64_arm-eabi/bin/arm-eabi-g++ /usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ root@test4:~#
我安装在opt 下,我find 也有啊
sinlinx@ubuntu://opt$ find . |grep linaro |grep g++$
./gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
./gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
但是编译arm-linux-gnueabihf-g++ 编译一个最简单的hello就提示找不到arm-linux-gnueabihf-g++ .
没有 arm-linux-gnueabihf-g++ 这个吗?
这显示有啊。
arm-linux-gnueabihf-g++ -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-g++
COLLECT_LTO_WRAPPER=/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/6.3.1/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: /home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/snapshots/gcc-linaro-6.3-2017.02/configure SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-objc-gc --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --with-fpu=vfpv3-d16 --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu
Thread model: posix
gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)
什么错误
make[2]: Leaving directory `/home/sinlinx/SIN-V3s/pjsip/pjproject-2.8/pjsip/build'
make -f /home/sinlinx/SIN-V3s/pjsip/pjproject-2.8/build/rules.mak APP=PJSUA2_LIB app=pjsua2-lib depend
make[2]: Entering directory `/home/sinlinx/SIN-V3s/pjsip/pjproject-2.8/pjsip/build'
.pjsua2-lib-arm-unknown-linux-gnueabihf.depend:1: *** missing separator. Stop.
make[2]: Leaving directory `/home/sinlinx/SIN-V3s/pjsip/pjproject-2.8/pjsip/build'
make[1]: *** [depend] Error 2
这个里面全是CPP 文件。而且我编了一个简单的cpp文件,arm-linux-gnueabihf-g++ -W -o hello-cpp hello-c++.cpp,显示没有arm-linux-gnueabihf-g++编译器。编译c是没有问题的。
你的 ubuntu 是 32bit / 64bit 版本?
https://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/arm-linux-gnueabihf/
64bit ,发现用root 编译没问题。晕菜。这个礼拜在一直pjsip 搞死了。咋sip 用configure 出现这个提示
./configure --prefix=/home/sinlinx/SIN-V3s/pjsip/pj-out --host=arm-linux-gnueabihf --disable-video --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv --disable-libwebrtc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnueabihf
checking target system type... arm-unknown-linux-gnueabihf
checking for arm-linux-gnueabihf-gcc... arm-linux-gnueabihf-gcc
checking whether the C compiler works... no
aconfigure: error: in `//home/sinlinx/SIN-V3s/pjsip/pjproject-2.8':
aconfigure: error: C compiler cannot create executables
See `config.log' for more details
不能创建这个,我还特意用root 配置。谢谢。
交叉编译现在还是有点蒙圈,哪位解答一下。谢谢
我下载了gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar,解压到了/opt目录下
sinlinx@ubuntu://opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf$ ls
arm-linux-gnueabihf bin gcc-linaro-6.3.1-2017.02-linux-manifest.txt include lib libexec share
然后设置PATH:
export PATH=/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin:$PATH
重启,用arm-linux-gnueabihf-gcc -v 查看
sinlinx@ubuntu://opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf$ arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/6.3.1/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: /home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/snapshots/gcc-linaro-6.3-2017.02/configure SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-objc-gc --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --with-fpu=vfpv3-d16 --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu
Thread model: posix
gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)
看着没啥问题啊。然后我写可一个hello.c文件测试一下。提示连接不到库,这该怎么设置,晕了。
arm-linux-gnueabihf-gcc -W -o hello hello.c
/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/6.3.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/libc.so.6
/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/6.3.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find /usr/lib/libc_nonshared.a
/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/6.3.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/ld-linux-armhf.so.3
collect2: error: ld returned 1 exit status
find . | grep bin/ | grep gcc$
./SIN-V3s/sinlinx-v3s-sdk/buildroot/out/host/bin/arm-linux-gcc
./SIN-V3s/sinlinx-v3s-sdk/buildroot/out/host/bin/arm-buildroot-linux-gnueabihf-gcc
./SIN-V3s/sinlinx-v3s-sdk/buildroot/output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc
./SIN-V3s/sinlinx-v3s-sdk/buildroot/output/host/bin/arm-linux-gnueabihf-gcc
这一下出了这么多,哪个才是,如果第三方APP 要独立编译的话,是把编译器的路径指到这里来吗?或者直接bash.bashrc把路径加到这里来。谢谢。
你先去试一试我的一键生成吧: https://whycan.cn/t_2169.html
我现在编译一个自己应用程序。但是报错.pjsua2-lib-arm-unknown-linux-gnueabihf.depend:1: *** missing separator. Stop.
,但是怎会显示arm-unknown-linux-gnueabihf,”unknown”这是没有指定什么平台吗?
我这的PATH 变量
/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
有点晕。晕哥看看啥问题。多谢。
晕哥,为什么我的\rootfs 目录下没有include 文件夹。我在编译pjsip,需要编译alsa 库。谢谢。
这几天买了一个v3s的开发板。编译的都快疯了。编译demo 老提示
make: arm-buildroot-linux-uclibcgnueabihf-gcc: Command not found,
我是直接在DEMO 下make 的。demo 的makefile 是这么写的
CROSS_COMPILE ?= arm-buildroot-linux-uclibcgnueabihf-
CPU = cortex-a7
FPU = fpv4-sp-d16
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
STRIP = $(CROSS_COMPILE)strip
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
RANLIB = $(CROSS_COMPILE)ranlib
SIZE = $(CROSS_COMPILE)size
我现在就是搞不明白这个CROSS_COMPILE 路径在哪指定?高人帮忙
页次: 1