您尚未登录。

楼主 #1 2019-07-23 19:23:56

chendong
会员
注册时间: 2019-07-22
已发帖子: 77
积分: 77

求助关于找不到工具链

这几天买了一个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    路径在哪指定?高人帮忙

离线

#2 2019-07-23 19:34:09

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,244
积分: 9197

Re: 求助关于找不到工具链





离线

楼主 #3 2019-07-24 14:53:12

chendong
会员
注册时间: 2019-07-22
已发帖子: 77
积分: 77

Re: 求助关于找不到工具链

晕哥 说:

晕哥,为什么我的\rootfs  目录下没有include 文件夹。我在编译pjsip,需要编译alsa 库。谢谢。

离线

#4 2019-07-24 15:15:48

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,244
积分: 9197

Re: 求助关于找不到工具链

rootfs 存放的是根文件系统, 按默认设置里面不会有incude文件夹。


buildroot-2019.02.2$ find . |grep bin |grep gcc$
./output/host/bin/arm-buildroot-linux-gnueabi-gcc
./output/host/bin/arm-linux-gcc

include 在 output/host/ 目录下.





离线

楼主 #5 2019-07-24 15:39:10

chendong
会员
注册时间: 2019-07-22
已发帖子: 77
积分: 77

Re: 求助关于找不到工具链

晕哥 说:

rootfs 存放的是根文件系统, 按默认设置里面不会有incude文件夹。


buildroot-2019.02.2$ find . |grep bin |grep gcc$
./output/host/bin/arm-buildroot-linux-gnueabi-gcc
./output/host/bin/arm-linux-gcc

include 在 output/host/ 目录下.

目录下include 下个没有 alsa 文件夹,以前ARM9 是别人做好的。没搞明白这些头文件从哪来的。

离线

#6 2019-07-24 15:49:29

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,244
积分: 9197

Re: 求助关于找不到工具链

buildroot 目录下面的 .config

把 BR2_PACKAGE_ALSA_LIB 这个编译开关打开,

然后重新 make 就可以了。





离线

楼主 #7 2019-07-24 17:09:40

chendong
会员
注册时间: 2019-07-22
已发帖子: 77
积分: 77

Re: 求助关于找不到工具链

晕哥 说:

buildroot 目录下面的 .config

把 BR2_PACKAGE_ALSA_LIB 这个编译开关打开,

然后重新 make 就可以了。

编译到是过去了,但是在host/output/ 下的include , lib 下面没看到alsa 库。

离线

#8 2019-07-24 18:07:58

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,244
积分: 9197

Re: 求助关于找不到工具链

find . |grep libalsa





离线

楼主 #9 2019-07-24 18:25:39

chendong
会员
注册时间: 2019-07-22
已发帖子: 77
积分: 77

Re: 求助关于找不到工具链

晕哥 说:

find . |grep libalsa

麻烦了。用这个搜索没搜到任何东西。崩溃。
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 -lasound

离线

楼主 #10 2019-07-24 19:57:25

chendong
会员
注册时间: 2019-07-22
已发帖子: 77
积分: 77

Re: 求助关于找不到工具链

晕哥 说:

find . |grep libalsa

我在./configre 里面指定了alsa 的库的目录啊。buildroot/output/host/i586-buildroot-linux-uclibc/sysroot/usr/lib32,  怎么还是跑到opt/下去找alsa 库。

离线

楼主 #11 2019-07-24 20:05:13

chendong
会员
注册时间: 2019-07-22
已发帖子: 77
积分: 77

Re: 求助关于找不到工具链

晕哥 说:

find . |grep libalsa

还有就是我buildroot   make
./libexec/gcc/i586-buildroot-linux-uclibc/6.4.0/plugin/gengtype" is touched by more than one package: [u'host-gcc-initial', u'host-gcc-final']
好多这个警告,i586-buildroot-linux-uclib 这个是什么编译,不明白这编译器到底该怎么指派。谢谢。

离线

#12 2019-07-24 20:47:11

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,244
积分: 9197

Re: 求助关于找不到工具链

你先去试一试我的一键生成吧: https://whycan.cn/t_2169.html





离线

楼主 #13 2019-07-25 16:50:02

chendong
会员
注册时间: 2019-07-22
已发帖子: 77
积分: 77

Re: 求助关于找不到工具链

晕哥 说:

你先去试一试我的一键生成吧: 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

有点晕。晕哥看看啥问题。多谢。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn