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.

TMS320C6678: Rebuild NDK组件报错

Part Number: TMS320C6678
Other Parts Discussed in Thread: SYSBIOS

C:\ti\ndk_3_61_01_01>gmake -f ndk.mak
building ndk packages ...
making all: Sat Sep 18 09:48:52 2021 ...
======== .interfaces [./packages/ti/ndk] ========
======== .interfaces [./packages/ti/ndk/hal/eth_stub] ================ .interfaces [./packages/ti/ndk/config] ========
======== .interfaces [./packages/ti/ndk/hal/ser_stub] ========
======== .interfaces [./packages/ti/ndk/hal/timer_bios] ========
======== .interfaces [./packages/ti/ndk/hal/userled_stub] ========
======== .interfaces [./packages/ti/ndk/netctrl] ========
======== .interfaces [./packages/ti/ndk/nettools] ========
making package.mak (because of package.bld) ...
making package.mak (because of package.bld) ...making package.mak (because of package.bld) ...
making package.mak (because of package.bld) ...
making package.mak (because of package.bld) ...
making package.mak (because of package.bld) ...
making package.mak (because of package.bld) ...
making package.mak (because of package.bld) ...
C:\ti\ccs930\xdctools_3_60_02_34_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.8.0 or greater); e.g., 'C:\Program Files\Java\jre-1.8.0_66'.
C:\ti\ccs930\xdctools_3_60_02_34_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.8.0 or greater); e.g., 'C:\Program Files\Java\jre-1.8.0_66'.
gmake[1]: *** No rule to make target 'package.mak', needed by '.interfaces'. Stop.
C:\ti\ccs930\xdctools_3_60_02_34_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.8.0 or greater); e.g., 'C:\Program Files\Java\jre-1.8.0_66'.
gmake[1]: *** No rule to make target 'package.mak', needed by '.interfaces'. Stop.
xdctools_3_60_02_34_core\gmake.exe: *** [C:/ti/ccs930/xdctools_3_60_02_34_core\packages\xdc\bld\xdc_top.mak:389: packages/ti/ndk/hal/ser_stub,.interfaces] Error 2
xdctools_3_60_02_34_core\gmake.exe: *** Waiting for unfinished jobs....
C:\ti\ccs930\xdctools_3_60_02_34_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.8.0 or greater); e.g., 'C:\Program Files\Java\jre-1.8.0_66'.
C:\ti\ccs930\xdctools_3_60_02_34_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.8.0 or greater); e.g., 'C:\Program Files\Java\jre-1.8.0_66'.
xdctools_3_60_02_34_core\gmake.exe: *** [C:/ti/ccs930/xdctools_3_60_02_34_core\packages\xdc\bld\xdc_top.mak:389: packages/ti/ndk/hal/eth_stub,.interfaces] Error 2
gmake[1]: *** No rule to make target 'package.mak', needed by '.interfaces'. Stop.
C:\ti\ccs930\xdctools_3_60_02_34_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.8.0 or greater); e.g., 'C:\Program Files\Java\jre-1.8.0_66'.
C:\ti\ccs930\xdctools_3_60_02_34_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.8.0 or greater); e.g., 'C:\Program Files\Java\jre-1.8.0_66'.
xdctools_3_60_02_34_core\gmake.exe: *** [C:/ti/ccs930/xdctools_3_60_02_34_core\packages\xdc\bld\xdc_top.mak:389: packages/ti/ndk/netctrl,.interfaces] Error 2
gmake[1]: *** No rule to make target 'package.mak', needed by '.interfaces'. Stop.
gmake[1]: *** No rule to make target 'package.mak', needed by '.interfaces'. Stop.
C:\ti\ccs930\xdctools_3_60_02_34_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.8.0 or greater); e.g., 'C:\Program Files\Java\jre-1.8.0_66'.
xdctools_3_60_02_34_core\gmake.exe: *** [C:/ti/ccs930/xdctools_3_60_02_34_core\packages\xdc\bld\xdc_top.mak:389: packages/ti/ndk,.interfaces] Error 2
gmake[1]: *** No rule to make target 'package.mak', needed by '.interfaces'. Stop.
gmake[1]: *** No rule to make target 'package.mak', needed by '.interfaces'. Stop.
xdctools_3_60_02_34_core\gmake.exe: *** [C:/ti/ccs930/xdctools_3_60_02_34_core\packages\xdc\bld\xdc_top.mak:389: packages/ti/ndk/config,.interfaces] Error 2
gmake[1]: *** No rule to make target 'package.mak', needed by '.interfaces'. Stop.
xdctools_3_60_02_34_core\gmake.exe: *** [C:/ti/ccs930/xdctools_3_60_02_34_core\packages\xdc\bld\xdc_top.mak:389: packages/ti/ndk/nettools,.interfaces] Error 2
xdctools_3_60_02_34_core\gmake.exe: *** [C:/ti/ccs930/xdctools_3_60_02_34_core\packages\xdc\bld\xdc_top.mak:389: packages/ti/ndk/hal/timer_bios,.interfaces] Error 2
xdctools_3_60_02_34_core\gmake.exe: *** [C:/ti/ccs930/xdctools_3_60_02_34_core\packages\xdc\bld\xdc_top.mak:389: packages/ti/ndk/hal/userled_stub,.interfaces] Error 2
gmake: *** [ndk.mak:125: all] Error 2

C:\ti\ndk_3_61_01_01>

  • 我在使用NDK组件报错  这些错误明显是没有include 相应的头文件 但是我在CCS里按F3可以找到对应的头文件 ,请问这和没有Rebuild有关系吗


    **** Build of configuration Debug for project NDK ****

    "C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    已复制 1 个文件。
    making ../src/sysbios/sysbios.ae66 ...
    gmake[1]: Nothing to be done for 'all'.
    Building file: "../source/ndk.c"
    Invoking: C6000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c6000_8.3.5/bin/cl6x" -mv6600 --include_path="C:/ti/ndk_3_61_01_01/packages" --include_path="F:/DSPpjt/NDK" --include_path="C:/ti/bios_6_76_03_01/packages/ti/posix/ccs" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="source/ndk.d_raw" --obj_directory="source" --cmd_file="configPkg/compiler.opt" "../source/ndk.c"

    >> Compilation failure
    source/subdir_rules.mk:9: recipe for target 'source/ndk.obj' failed
    "C:\ti\ndk_3_61_01_01\packages\ti\ndk\inc\netctrl/netctrl.h", line 208: error #93: identifier-list parameters may only be used in a function definition
    "C:\ti\ndk_3_61_01_01\packages\ti\ndk\inc\netctrl/netctrl.h", line 230: error #20: identifier "uint32_t" is undefined
    "C:\ti\ndk_3_61_01_01\packages\ti\ndk\inc\netctrl/netctrl.h", line 230: error #20: identifier "uint32_t" is undefined
    "C:\ti\ndk_3_61_01_01\packages\ti\ndk\inc\netctrl/netctrl.h", line 230: error #20: identifier "uint32_t" is undefined
    "C:\ti\ndk_3_61_01_01\packages\ti\ndk\inc\netctrl/netsrv.h", line 63: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 119: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 152: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 172: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 188: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 200: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 211: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 228: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 228: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 228: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 237: error #20: identifier "NTPARAM_TELNET" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 248: error #20: identifier "NTPARAM_HTTP" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 256: error #20: identifier "NTPARAM_NAT" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 264: error #20: identifier "NTPARAM_DHCPS" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 272: error #20: identifier "NTPARAM_DHCP" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 297: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 298: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 299: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 318: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 319: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 320: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 353: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 354: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 355: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 358: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 359: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/netcfg.h", line 389: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 229: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 230: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 230: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 259: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 309: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 310: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 310: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 310: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 420: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 420: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 421: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 475: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 475: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 530: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 530: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 531: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 617: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 617: error #20: identifier "uint32_t" is undefined
    "C:/ti/ndk_3_61_01_01/packages/ti/ndk/inc/nettools/inc/configif.h", line 618: error #20: identifier "uint32_t" is undefined
    "../source/ndk.c", line 26: warning #225-D: function "NC_Systemopen" declared implicitly
    "../source/ndk.c", line 26: error #20: identifier "OS_SCHEDULER_LOWPRI" is undefined
    "../source/ndk.c", line 27: warning #225-D: function "cfgnew" declared implicitly
    "../source/ndk.c", line 27: warning #145-D: a value of type "int" cannot be used to initialize an entity of type "void *"
    "../source/ndk.c", line 28: warning #225-D: function "Strlen" declared implicitly
    "../source/ndk.c", line 28: warning #169-D: argument of type "char *" is incompatible with parameter of type "unsigned char *"
    51 errors detected in the compilation of "../source/ndk.c".
    gmake: *** [source/ndk.obj] Error 1
    Building file: "../main.c"
    Invoking: C6000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c6000_8.3.5/bin/cl6x" -mv6600 --include_path="C:/ti/ndk_3_61_01_01/packages" --include_path="F:/DSPpjt/NDK" --include_path="C:/ti/bios_6_76_03_01/packages/ti/posix/ccs" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.c"
    Finished building: "../main.c"

    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

  • 该链接中的rebuild NDK的文档参考过了吗?

    e2e.ti.com/.../faq-how-do-you-rebuild-the-ndk

    错误提示没有找到标识符的定义,您能从代码中找到所在定义的头文件的话,只能建议您重新include头文件再进行编译来解决该错误。

  • 感谢,重新下载了一个带JRE的XDCTOOLS解决了 

  • 感谢分享解决方法!