This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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
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.
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.
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.
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
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?
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_10
export PSDK_INSTALL_PATH=$TIDL_INSTALL_PATH/..
export IVISION_PATH=$TIDL_INSTALL_PATH/../ivision
export DSP_TOOLS=$TIDL_INSTALL_PATH/../ti-cgt-c7000_1.4.2.LTS
export PDK_INSTALL_PATH=$TIDL_INSTALL_PATH/../pdk_jacinto_08_00_00_37/packages
export MMALIB_PATH=$TIDL_INSTALL_PATH/../mmalib_02_01_00_07
export CONCERTO_ROOT=$TIDL_INSTALL_PATH/../vision_apps/concerto
export CPATH=$CPATH:/usr/local/include/opencv4