完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
我想修改demos里的示例代码,然后重新编译,现在还没修改,计划先看重新编译的情况:
先是make编译提示: ======== Building encode ======== Configuring application using encode.cfg /bin/sh: /xs: not found make: *** [encode_config/compiler.opt] Error 127 看Makefile文件如下: TARGET = $(notdir $(CURDIR)) ifeq ($(VERBOSE), true) override VERBOSE = else override VERBOSE = @ endif -include $(DMAI_INSTALL_DIR)/Platform.make # Package path for the XDC tools XDC_PATH = $(USER_XDC_PATH);../../packages;$(DMAI_INSTALL_DIR)/packages;$(CE_INSTALL_DIR)/packages;$(FC_INSTALL_DIR)/packages;$(LINK_INSTALL_DIR)/packages;$(LINK_INSTALL_DIR);$(XDAIS_INSTALL_DIR)/packages;$(CMEM_INSTALL_DIR)/packages;$(CODEC_INSTALL_DIR)/packages;$(CE_INSTALL_DIR)/examples # Where to output configuration files XDC_CFG = $(TARGET)_config # Output compiler options XDC_CFLAGS = $(XDC_CFG)/compiler.opt # Output linker file XDC_LFILE = $(XDC_CFG)/linker.cmd # Input configuration file XDC_CFGFILE = $(TARGET).cfg PLATFORM_OS = $(strip $(PLATFORM_OS_dm6467_al)) PLATFORM_DEVICE = $(strip $(PLATFORM_DEVICE_dm6467_al)) PLATFORM_PERIPHERALS = $(strip $(PLATFORM_PERIPHERALS_dm6467_al)) PLATFORM_XDC_TARGET = $(strip $(PLATFORM_XDC_TARGET_dm6467_al)) PLATFORM_XDC = $(strip $(PLATFORM_XDC_dm6467_al)) # The XDC configuration tool command line #CONFIGURO = /home/dm6467t/dvsdk_3_10_00_19/xdctools_3_16_01_27/xs xdc.tools.configuro # change by TEST CONFIGURO = $(XDC_INSTALL_DIR)/xs xdc.tools.configuro C_FLAGS += -Wall -g LD_FLAGS += -lpthread -lpng -lz -ljpeg -lfreetype -lasound LD_FLAGS += -L$(LINUXLIBS_INSTALL_DIR)/lib COMPILE.c = $(VERBOSE) $(CC) $(C_FLAGS) $(CPP_FLAGS) -c LINK.c = $(VERBOSE) $(CC) $(LD_FLAGS) SOURCES = $(wildcard *.c) $(wildcard ../*.c) HEADERS = $(wildcard *.h) $(wildcard ../*.h) OBJFILES = $(SOURCES:%.c=%.o) 可能是上面CONFIGURO = $(XDC_INSTALL_DIR)/xs xdc.tools.configuro 的原因,但是XDC_INSTALL_DIR的设置并没有错,而且xdctools目录里也确实有xs 这个可执行文件。 于是把CONFIGURO = $(XDC_INSTALL_DIR)/xs xdc.tools.configuro改成真是无替代的脚本: #CONFIGURO = /home/dm6467t/dvsdk_3_10_00_19/xdctools_3_16_01_27/xs xdc.tools.configuro 结果运行出现了下面的错误: Usage: xs xdc.tools.configuro [--help] [-v] [-@ optionsfile] [-o outdir] [-b config_bld | -c codegen_dir | --cb] [-t target] [-p platform[:instance]] [-r profile] [-Dname=value] [-w | -x regexp] [--rtsName pkg_name] [--cfgArgs args_string] [--linkTemplate linker_template] [--tcf] [--bios5] [--pkg] [--compileOptions compile_options_string] [--oc compiler.opt] [--ol linker.cmd] infile.cfg cat: encode_config/compiler.opt: No such file or directory audio.c:42: fatal error: xdc/std.h: No such file or directory compilation terminated. make: *** [audio.o] Error 1 请教,该怎么才能重新编译demos里的源代码呢?哪里有帮助文档可以参考? 谢谢 |
|
相关推荐
3个回答
|
|
|
Shi Gaotao,
看起来是路径的问题。请问你是在最上层编译的demo么? 我建议你看看Rules.make同级目录下的makefile,看能否在这一个目录下编译demo。 http://processors.wiki.ti.com/index.php/DVSDK_3.10_Makefile_usage |
|
|
|
|
物是人非aaa 发表于 2018-6-23 01:42 我是在最底层,也就是encode目录下编译的。 如果是路径错误,为什么我把Makefile中的路径改成 #CONFIGURO = /home/dm6467t/dvsdk_3_10_00_19/xdctools_3_16_01_27/xs xdc.tools.configuro 却出现下面的错误?这个错误感觉像是 xs xdc.tools.configuro运行参数不对给的提示? Usage: xs xdc.tools.configuro [--help] [-v] [-@ optionsfile] [-o outdir] [-b config_bld | -c codegen_dir | --cb] [-t target] [-p platform[:instance]] [-r profile] [-Dname=value] [-w | -x regexp] [--rtsName pkg_name] [--cfgArgs args_string] [--linkTemplate linker_template] [--tcf] [--bios5] [--pkg] [--compileOptions compile_options_string] [--oc compiler.opt] [--ol linker.cmd] 谢谢提供的资料。 |
|
|
|
|
物是人非aaa 发表于 2018-6-23 01:42 按照您给的这个方法已编译通过,谢谢。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
549 浏览 0 评论
1613 浏览 0 评论
2047 浏览 0 评论
为啥BQ7693003DBTR芯片在和BQ769X0盒子通讯时收不到信号?
1513 浏览 0 评论
DSP 28027F 开发板 XDS100v2调试探针诊断日志显示了 Error -150 (SC_ERR_FTDI_FAIL)如何解决
1337 浏览 0 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
1756浏览 29评论
2781浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
1724浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
1634浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
1645浏览 13评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 03:24 , Processed in 0.998914 second(s), Total 77, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1184