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

The config.h is not found when build the SDK PROCESSOR-SDK-RTOS-J721E_08.00.00.12

OS:Ubuntu20.04

Opencv:3.1.0

flatterbuffer:1.12.0

protobuf:3.11.0

gcc/g++:5.4.0

SDK:PROCESSOR-SDK-RTOS-J721E_08.00.00.12

When run the command "make TARGET_BUILD=debug TARGET_PLATFORM=PC",I encountered the problem first.

======== MAKING CUSTOM LIB =================
make -C ./ti_dl/custom -f makefile
make[1]: Entering directory '/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/custom'
compiling tidl_custom_maxpooling.c
In file included from tidl_custom_maxpooling.c:82:0:
tidsp/tidl_custom_maxpool_ixX_oxX.h:25:17: fatal error: c7x.h: No such file or directory
compilation terminated.
make[1]: *** [/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/makerules/rules.mk:465: /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/out/PC/dsp/algo/debug/ti_dl/custom/tidl_custom_maxpooling.obj] Error 1
make[1]: Leaving directory '/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/custom'
make: *** [makefile:333: custom] Error 2

I solved it by export a lot of paths. But get another error shows below.

======== MAKING CUSTOM LIB =================
make -C ./ti_dl/custom -f makefile
make[1]: Entering directory '/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/custom'
compiling tidl_custom_maxpooling.c
In file included from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../bios_6_83_02_07/packages/gnu/targets/arm/libs/install-native/aarch64-none-elf/include/sys/unistd.h:8:0,
from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../bios_6_83_02_07/packages/gnu/targets/arm/libs/install-native/aarch64-none-elf/include/unistd.h:4,
from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../bios_6_83_02_07/packages/gnu/targets/arm/libs/install-native/aarch64-none-elf/include/pthread.h:25,
from /usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/5/bits/gthr.h:148,
from /usr/include/c++/5/ext/atomicity.h:35,
from /usr/include/c++/5/bits/basic_string.h:39,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/bitset:47,
from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../ti-cgt-c7000_1.4.2.LTS/host_emulation/include/C7100/ti_he_impl/vector.h:40,
from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../ti-cgt-c7000_1.4.2.LTS/host_emulation/include/C7100/c7x.h:74,
from tidsp/tidl_custom_maxpool_ixX_oxX.h:25,
from tidl_custom_maxpooling.c:82:
/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../bios_6_83_02_07/packages/gnu/targets/arm/libs/install-native/aarch64-none-elf/include/_ansi.h:11:24: fatal error: sys/config.h: No such file or directory
compilation terminated.
make[1]: *** [/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/makerules/rules.mk:465: /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/out/PC/dsp/algo/debug/ti_dl/custom/tidl_custom_maxpooling.obj] Error 1
make[1]: Leaving directory '/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/custom'
make: *** [makefile:333: custom] Error 2

Cherry Zhou:

Hi we have got your problem and escalate to the e2e forum, please be noted due to the Christmas and New Year's Holidays, responses may be delayed from 12/20/21 – 1/3/22. Sorry for the inconvenience. 

,

Cherry Zhou:

Kuan-Hung Liu 说:I solved it by export a lot of paths. But get another error shows below.

  If you are using PSDK RTOS as it is then most of the dependency should already be taken care so we are not sure why you got error because of c7x compiler header.

  Regarding rest of the errors, are you trying to build TIDL in host emulation mode? If yes then we haven't tried host emulation build on Ubuntu 18.04 and we are suspecting may be Ubuntu 20.04 is causing the issue.

,

Kuan-Hung Liu:

Yes, I tried to build TIDL in host emulation on Ubuntu 20.04.

Thanks, I will try again on Ubuntu 16.04 unless you have another recommendation.

Wish me luck.

,

Cherry Zhou:

Hi,

We have validated it on Ubuntu 18.04 and that's our recommended version to use. Hope this will also work for you. Thanks!

Best Regards,

Cherry

,

Cherry Zhou:

Hi,

Could you please check if this is your new updates that is not shown in the reply box:

Hi, Unfortunately, I get the same error again. 

May I ask your dependencies version, environment variable setting, and history commands in the building process?

By the way, I checked the file makerules/config.mk. There are two OpenCV version settings 3.1.0 and 4.10 for importer and host emulation respectively. Do I need to build two version of OpenCV?

,

Kuan-Hung Liu:

Hi,

I just fix the problems a few mintues ago. It is casued by wrong environment variables setting.

Thanks for your help I really appreciate it

Share My final settings below.

OS:Ubuntu18.04

Opencv:4.1.0

flatterbuffer:1.12.0

protobuf:3.11.3

gcc/g++:5.5.0 / 7.5.0

environment variables:

export TIDL_INSTALL_PATH=/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10export PSDK_INSTALL_PATH=$TIDL_INSTALL_PATH/..export IVISION_PATH=$TIDL_INSTALL_PATH/../ivisionexport DSP_TOOLS=$TIDL_INSTALL_PATH/../ti-cgt-c7000_1.4.2.LTSexport PDK_INSTALL_PATH=$TIDL_INSTALL_PATH/../pdk_jacinto_08_00_00_37/packagesexport MMALIB_PATH=$TIDL_INSTALL_PATH/../mmalib_02_01_00_07export CONCERTO_ROOT=$TIDL_INSTALL_PATH/../vision_apps/concertoexport CPATH=$CPATH:/usr/local/include/opencv4

赞(0)
未经允许不得转载:TI中文支持网 » The config.h is not found when build the SDK PROCESSOR-SDK-RTOS-J721E_08.00.00.12
分享到: 更多 (0)