TI中文支持网
TI专业的中文技术问题搜集分享网站

SK-TDA4VM: SDK BUILDING PROBLEM

Part Number:SK-TDA4VM

when I flow this step ,I find some problem. http://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-sk-tda4vm/08_00_01_10/exports/docs/development_flow.html

log like below: I cannot find this file "ti_2a_wrapper.h". was it created by some scripts or download from somewhere? expecting your reply.

root@j7-evm:/opt/edge_ai_apps# ./setup_script.sh                                
tensorflow                                                                      
dlpack                                                                          
onnxruntime                                                                     
edgeai-tidl-tools                                                               
edgeai-tiovx-modules                                                            
— The C compiler identification is GNU 9.2.1                                   
— The CXX compiler identification is GNU 9.2.1                                 
— Check for working C compiler: /usr/bin/cc                                    
— Check for working C compiler: /usr/bin/cc — works                           
— Detecting C compiler ABI info                                                
— Detecting C compiler ABI info – done                                         
— Detecting C compile features                                                 
— Detecting C compile features – done                                          
— Check for working CXX compiler: /usr/bin/c++                                 
— Check for working CXX compiler: /usr/bin/c++ — works                        
— Detecting CXX compiler ABI info                                              
— Detecting CXX compiler ABI info – done                                       
— Detecting CXX compile features                                               
— Detecting CXX compile features – done                                        
— CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai-tiovx-modules               
— CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai-tiovx-modules-test          
— Configuring done                                                             
— Generating done                                                              
— Build files have been written to: /opt/edgeai-tiovx-modules/build            
make[1]: Entering directory '/opt/edgeai-tiovx-modules/build'                   
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'                   
Scanning dependencies of target edgeai-tiovx-modules                            
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'                    
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'                   
[ 10%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_color_coo
[ 10%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_multi_sco
[ 15%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_img_mosao
[ 21%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dl_pre_po
[ 26%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dl_coloro
[ 31%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_sensor_mo
[ 36%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_viss_modo
[ 42%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_ldc_moduo
[ 47%] Linking C shared library ../../bin/Release/libedgeai-tiovx-modules.so    
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'                    
[ 47%] Built target edgeai-tiovx-modules                                        
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'                   
Scanning dependencies of target edgeai-tiovx-modules-test                       
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'                    
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'                   
[ 57%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovo
[ 57%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovo
[ 63%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovo
[ 68%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovo
[ 73%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovo
[ 78%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovo
[ 84%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovo
[ 89%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_commo
[ 94%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/main.c.o[100%] Linking C executable ../../bin/Release/edgeai-tiovx-modules-test         
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'                    
[100%] Built target edgeai-tiovx-modules-test                                   
make[1]: Leaving directory '/opt/edgeai-tiovx-modules/build'                    
make[1]: Entering directory '/opt/edgeai-tiovx-modules/build'                   
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'                   
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'                    
[ 47%] Built target edgeai-tiovx-modules                                        
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'                   
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'                    
[100%] Built target edgeai-tiovx-modules-test                                   
make[1]: Leaving directory '/opt/edgeai-tiovx-modules/build'                    
Install the project…                                                          
— Install configuration: ""                                                    
— Installing: /usr/lib/edgeai-tiovx-modules/libedgeai-tiovx-modules.so.0.1.0   
— Up-to-date: /usr/lib/edgeai-tiovx-modules/libedgeai-tiovx-modules.so         
— Up-to-date: /usr/include/edgeai-tiovx-modules/include                        
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_multi_scaler_modh
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_modules_common.h– Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_sensor_module.h  
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_dl_pre_proc_moduh
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_ldc_module.h     
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_viss_module.h    
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_color_convert_moh
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_ldc_module_lut_1h
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_img_mosaic_modulh
— Up-to-date: /usr/include/edgeai-tiovx-modules/include/tiovx_dl_color_blend_mh
edgeai-gst-plugins                                                              
The Meson build system                                                          
Version: 0.53.2                                                                 
Source dir: /opt/edgeai-gst-plugins                                             
Build dir: /opt/edgeai-gst-plugins/build                                        
Build type: native build                                                        
Project name: GstTIOVX                                                          
Project version: 0.4.0                                                          
C compiler for the host machine: cc (gcc 9.2.1 "cc (GCC) 9.2.1 20191025")       
C linker for the host machine: cc ld.bfd 2.34.0.20200220                        
Host machine cpu family: aarch64                                                
Host machine cpu: aarch64                                                       
Found pkg-config: /usr/bin/pkg-config (0.29.2)                                  
Run-time dependency gstreamer-1.0 found: YES 1.16.3                             
Run-time dependency gstreamer-base-1.0 found: YES 1.16.3                        
Run-time dependency gstreamer-video-1.0 found: YES 1.16.3                       
Run-time dependency gstreamer-check-1.0 found: YES 1.16.3                       
Run-time dependency gstreamer-allocators-1.0 found: YES 1.16.3                  
Run-time dependency tiovx found: YES 0.1.0                                      
Run-time dependency ti_vision_apps found: YES 0.1.0                             
Run-time dependency edgeai_tiovx_modules found: YES 0.1.0                       
Compiler for C supports arguments -Wmissing-declarations: YES                   
Compiler for C supports arguments -Wmissing-prototypes: YES                     
Compiler for C supports arguments -Wredundant-decls: YES                        
Compiler for C supports arguments -Wundef: YES                                  
Compiler for C supports arguments -Wwrite-strings: YES                          
Compiler for C supports arguments -Wformat: YES                                 
Compiler for C supports arguments -Wformat-nonliteral: YES                      
Compiler for C supports arguments -Wformat-security: YES                        
Compiler for C supports arguments -Wold-style-definition: YES                   
Compiler for C supports arguments -Winit-self: YES                              
Compiler for C supports arguments -Wmissing-include-dirs: YES                   
Compiler for C supports arguments -Waddress: YES                                
Compiler for C supports arguments -Waggregate-return: YES                       
Compiler for C supports arguments -Wno-multichar -Wmultichar: YES               
Compiler for C supports arguments -Wdeclaration-after-statement: YES            
Compiler for C supports arguments -Wvla: YES                                    
Compiler for C supports arguments -Wpointer-arith: YES                          
Compiler for C supports arguments -Wuninitialized: YES                          
Compiler for C supports arguments -Wunknown-pragmas: YES                        
Compiler for C supports arguments -Wunused-function: YES                        
Compiler for C supports arguments -Wunused-label: YES                           
Compiler for C supports arguments -Wunused-value: YES                           
Compiler for C supports arguments -Wunused-variable: YES                        
Compiler for C supports arguments -Werror: YES                                  
Has header "dlfcn.h" : YES                                                      
Has header "inttypes.h" : YES                                                   
Has header "memory.h" : YES                                                     
Has header "poll.h" : YES                                                       
Has header "stdint.h" : YES                                                     
Has header "stdlib.h" : YES                                                     
Has header "stdio_ext.h" : YES                                                  
Has header "strings.h" : YES                                                    
Has header "string.h" : YES                                                     
Has header "sys/param.h" : YES                                                  
Has header "sys/poll.h" : YES                                                   
Has header "sys/prctl.h" : YES                                                  
Has header "sys/socket.h" : YES                                                 
Has header "sys/stat.h" : YES                                                   
Has header "sys/times.h" : YES                                                  
Has header "sys/time.h" : YES                                                   
Has header "sys/types.h" : YES                                                  
Has header "sys/utsname.h" : YES                                                
Has header "sys/wait.h" : YES                                                   
Has header "ucontext.h" : YES                                                   
Has header "unistd.h" : YES                                                     
Has header "sys/resource.h" : YES                                               
Program python3 found: YES (/usr/bin/python3)                                   
Configuring config.h using configuration                                        
Program hotdoc skipped: feature doc disabled                                    
Message: Hotdoc not found, not building the documentation                       
Build targets in project: 17                                                    
                                                                                
Found ninja-1.10.0 at /usr/bin/ninja                                            
ninja: Entering directory `build'                                               
[24/59] Compiling C object 'ext/tiovx/d86ae3c@@gsttiovx@sha/gsttiovxisp.c.o'.   
FAILED: ext/tiovx/d86ae3c@@gsttiovx@sha/gsttiovxisp.c.o                         
cc -Iext/tiovx/d86ae3c@@gsttiovx@sha -Iext/tiovx -I../ext/tiovx -I. -I../ -I/usc
../ext/tiovx/gsttiovxisp.c:76:10: fatal error: ti_2a_wrapper.h: No such file ory
   76 | #include "ti_2a_wrapper.h"                                              
      |          ^~~~~~~~~~~~~~~~~                                              
compilation terminated.                                                         
[26/59] Compiling C object 'ext/tiovx/d86ae3c@@gsttiovx@sha/gsttiovxldc.c.o'.   
ninja: build stopped: subcommand failed.                                        
ninja: Entering directory `build'                                               
[2/35] Compiling C object 'ext/tiovx/d86ae3c@@gsttiovx@sha/gsttiovxisp.c.o'.    
FAILED: ext/tiovx/d86ae3c@@gsttiovx@sha/gsttiovxisp.c.o                         
cc -Iext/tiovx/d86ae3c@@gsttiovx@sha -Iext/tiovx -I../ext/tiovx -I. -I../ -I/usc
../ext/tiovx/gsttiovxisp.c:76:10: fatal error: ti_2a_wrapper.h: No such file ory
   76 | #include "ti_2a_wrapper.h"                                              
      |          ^~~~~~~~~~~~~~~~~                                              
compilation terminated.                                                         
[4/35] Compiling C object 'tests/check…cator@exe/libs_gsttiovxallocator.c.o'.ninja: build stopped: subcommand failed.                                        
— The C compiler identification is GNU 9.2.1                                   
— The CXX compiler identification is GNU 9.2.1                                 
— Check for working C compiler: /usr/bin/cc                                    
— Check for working C compiler: /usr/bin/cc — works                           
— Detecting C compiler ABI info                                                
— Detecting C compiler ABI info – done                                         
— Detecting C compile features                                                 
— Detecting C compile features – done                                          
— Check for working CXX compiler: /usr/bin/c++                                 
— Check for working CXX compiler: /usr/bin/c++ — works                        
— Detecting CXX compiler ABI info                                              
— Detecting CXX compiler ABI info – done                                       
— Detecting CXX compile features                                               
— Detecting CXX compile features – done                                        
— CMAKE_BUILD_TYPE = Release PROJECT_NAME = ti_dl_inferer                      
— CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_utils                       
— CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_common                      
— CMAKE_BUILD_TYPE = Release PROJECT_NAME = app_edgeai                         
— CMAKE_BUILD_TYPE = Release PROJECT_NAME = app_dump_model_info                
— CMAKE_BUILD_TYPE = Release PROJECT_NAME = app_config_checker                 
— Configuring done                                                             
— Generating done                                                              
— Build files have been written to: /opt/edge_ai_apps/apps_cpp/build           
make[1]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
Scanning dependencies of target ti_dl_inferer                                   
Scanning dependencies of target edgeai_utils                                    
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
[  3%] Building CXX object utils/CMakeFiles/edgeai_utils.dir/src/edgeai_perfstao
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
[  7%] Building CXX object dl_inferer/CMakeFiles/ti_dl_inferer.dir/src/ti_dl_ino
[ 10%] Building CXX object utils/CMakeFiles/edgeai_utils.dir/src/ti_logger.cpp.o
[ 14%] Linking CXX static library ../../lib/Release/libedgeai_utils.a           
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
[ 14%] Built target edgeai_utils                                                
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
Scanning dependencies of target edgeai_common                                   
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
[ 17%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/pre_process_o
[ 21%] Building CXX object dl_inferer/CMakeFiles/ti_dl_inferer.dir/src/ti_dlr_io
[ 25%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/post_processo
[ 28%] Building CXX object dl_inferer/CMakeFiles/ti_dl_inferer.dir/src/ti_onnx_o
[ 32%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/post_processo
[ 35%] Building CXX object dl_inferer/CMakeFiles/ti_dl_inferer.dir/src/ti_tflito
[ 39%] Linking CXX static library ../../lib/Release/libti_dl_inferer.a          
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
[ 39%] Built target ti_dl_inferer                                               
[ 42%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/post_processo
[ 46%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/post_processo
[ 50%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/inference_pio
[ 53%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/edgeai_demo.o
[ 57%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/edgeai_cmd_lo
[ 60%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/edgeai_gst_wo
[ 64%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/edgeai_classo
[ 67%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/edgeai_demo_o
[ 71%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/edgeai_utilso
[ 75%] Building CXX object common/CMakeFiles/edgeai_common.dir/src/edgeai_debugo
[ 78%] Linking CXX static library ../../lib/Release/libedgeai_common.a          
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
[ 78%] Built target edgeai_common                                               
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
Scanning dependencies of target app_edgeai                                      
Scanning dependencies of target app_dump_model_info                             
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
[ 82%] Building CXX object app_dump_model_info/CMakeFiles/app_dump_model_info.do
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
[ 85%] Building CXX object app_edgeai/CMakeFiles/app_edgeai.dir/src/app_edgeai_o
[ 89%] Linking CXX executable ../../bin/Release/app_dump_model_info             
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
[ 89%] Built target app_dump_model_info                                         
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
Scanning dependencies of target app_config_checker                              
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
make[2]: Entering directory '/opt/edge_ai_apps/apps_cpp/build'                  
[ 92%] Building CXX object app_config_checker/CMakeFiles/app_config_checker.diro
[ 96%] Linking CXX executable ../../bin/Release/app_edgeai                      
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
[ 96%] Built target app_edgeai                                                  
[100%] Linking CXX executable ../../bin/Release/app_config_checker              
make[2]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
[100%] Built target app_config_checker                                          
make[1]: Leaving directory '/opt/edge_ai_apps/apps_cpp/build'                   
Setup Done!                

Shine:

请问前面Building the SDK from source编译成功了么?文件都copy到SD卡了么?

,

dw li:

<PSDK-RTOS path>#./psdk_rtos/scripts/install_to_sd_card.sh
<PSDK-RTOS path>/vision_apps# BUILD_EDGEAI=yes make linux_fs_install_sd这两条都运行了都没有报错

,

dw li:

我发现问题就出在edgeai-gst-plugins的编译过程中。他是从这个仓库https://github.com/TexasInstruments/edgeai-gst-plugins.git克隆的,edgeai-gst-plugins/ext/tiovx/gsttiovxisp.c文件中有#include "ti_2a_wrapper.h",但是我无法在仓库中找到这个.h文件

,

Shine:

我把您的问题升级到e2e上,请关注下面帖子的回复。https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1050739/tda4vm-ext-tiovx-gsttiovxisp-c-76-10-fatal-error-ti_2a_wrapper-h-no-such-file-ory-76-include-ti_2a_wrapper-h

,

Shine:

请参考下面e2e工程师的回复。

Could you try the workaround in this E2E: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1050063/sk-tda4vm-problem-with-first-install-of-sk-tda4vm

A recent change in the repository searches for ti_2a_wrapper.h, but it is not yet included with the prebuilt image.

赞(0)
未经允许不得转载:TI中文支持网 » SK-TDA4VM: SDK BUILDING PROBLEM
分享到: 更多 (0)