Spaces:
Sleeping
Sleeping
Ticket Name: Compiler/TDA2-17: vision sdk compile error can't find a JVM | |
Query Text: | |
Part Number: TDA2-17 Tool/software: TI C/C++ Compiler Dear TI, I have two Ubuntu machinces. 1. I compiled visionSDK successful in machine one. 2. And then i execute make clean before i commint all the released code to svn. 3. I checked out the code into the second machine and compile it as: make clean; make allclean; make linux_clean make linux make linux_install make -s -j depend make -s -j 4. Got the compile errors when i try to `make -s -j` /home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/build/rtos/makerules/rules_66.mk:185: target `/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_all/obj/app_alg_plugins/tda2xx-evm/66/release/GAlignLUT_tda2xx.oe66' given more than once in the same rule. | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/build/rtos/makerules/rules_66.mk:185: target `/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_all/obj/app_alg_plugins/tda2xx-evm/66/release/GAlignExt_tda2xx.oe66' given more than once in the same rule. | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/build/rtos/makerules/rules_66.mk:185: target `/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_all/obj/app_alg_plugins/tda2xx-evm/66/release/GAlignLUT_tda2xx.oe66' given more than once in the same rule. | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/build/rtos/makerules/rules_66.mk:185: target `/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_all/obj/app_alg_plugins/tda2xx-evm/66/release/GAlignExt_tda2xx.oe66' given more than once in the same rule. | |
XDC_CFG_FILE: | |
# Invoking configuro... | |
# Invoking configuro... | |
XDC_CFG_FILE: | |
XDC_CFG_FILE: | |
# Invoking configuro... | |
# Invoking configuro... | |
# Invoking configuro... | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/os_tools/linux/xdctools_3_32_01_22_core/xs.x86_64U: 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.7 or greater); e.g., '/usr/lib/jvm/java-7-openjdk-amd64'. | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/os_tools/linux/xdctools_3_32_01_22_core/xs.x86_64U: error: make[6]: 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.7 or greater); e.g., '/usr/lib/jvm/java-7-openjdk-amd64'. | |
*** [xdc_configuro] Error 1 | |
XDC_CFG_FILE: | |
make[5]: *** [apps_eve3] Error 2 | |
make[5]: *** Waiting for unfinished jobs.... | |
make[6]: *** [xdc_configuro] Error 1 | |
make[5]: *** [apps_dsp2] Error 2 | |
# Invoking configuro... | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/os_tools/linux/xdctools_3_32_01_22_core/xs.x86_64U: 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.7 or greater); e.g., '/usr/lib/jvm/java-7-openjdk-amd64'. | |
make[6]: *** [xdc_configuro] Error 1 | |
make[5]: *** [apps_eve2] Error 2 | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/os_tools/linux/xdctools_3_32_01_22_core/xs.x86_64U: 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.7 or greater); e.g., '/usr/lib/jvm/java-7-openjdk-amd64'. | |
make[6]: *** [xdc_configuro] Error 1 | |
make[5]: *** [apps_eve4] Error 2 | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/os_tools/linux/xdctools_3_32_01_22_core/xs.x86_64U: 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.7 or greater); e.g., '/usr/lib/jvm/java-7-openjdk-amd64'. | |
make[6]: *** [xdc_configuro] Error 1 | |
make[5]: *** [apps_dsp1] Error 2 | |
/home/gan.liu/server/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/os_tools/linux/xdctools_3_32_01_22_core/xs.x86_64U: 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.7 or greater); e.g., '/usr/lib/jvm/java-7-openjdk-amd64'. | |
make[6]: *** [xdc_configuro] Error 1 | |
make[5]: *** [apps_eve1] Error 2 | |
make[4]: *** [apps] Error 2 | |
make[3]: *** [apps] Error 2 | |
make[2]: *** [apps_exe] Error 2 | |
make[1]: *** [apps] Error 2 | |
make: *** [vision_sdk] Error 2 | |
gan.liu@ubuntu:~/server/PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/build$ | |
make config : tda2xx_evm_linux_all So , what can i do to solve this problem? Regards, Liu Gan | |
Responses: | |
Hi, Can you check below threads: e2e.ti.com/.../1904682 e2e.ti.com/.../907733 Regards, Rishabh | |
Hi Rishabh, I have checked the threads you post, but they are not help for my problem. add to check out Machine 1 -------------------> svn --------------------------> Machine 2 compile success compile failed Regards, Liu Gan | |
Hi Liu, Can you confirm if Java is installed on 'Machine-2' Ubuntu PC? You may find the below link useful. https://stackoverflow.com/questions/22539779/how-to-tell-if-jre-or-jdk-is-installed Once this is done, you can export the XDCTOOLS_JAVA_HOME variable to the jdk path, and it should build. Regards Shravan | |
Hi Shravan, I'm sorry I missed an important message. I didn't get any error if i reinstall VisionSDK on 'Machine-2'. In addition, why should i export XDCTOOLS_JAVA_HOME variable manually? snippet from ti_components/os_toos/linux/xdctools_3_32_01_22_core/packages/xdc/bld/xdc_rules.mak: XDCTOOLS_JAVA_HOME ?= $(XDCROOT)/jre my jre directory : gan.liu@ubuntu:~/server/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/os_tools/linux/xdctools_3_32_01_22_core/jre$ ls | |
bin lib man README THIRDPARTYLICENSEREADME-JAVAFX.txt Welcome.html | |
COPYRIGHT LICENSE plugin release THIRDPARTYLICENSEREADME.txt | |
So I think the variable ‘XDCTOOLS_JAVA_HOME ’ should be set automatically by Makefile,am i right? BTW, my workmates need use the code from svn for their own jobs. That's why i must solve the problem. Regards, Liu Gan | |
Hi Liu, Whenever you build on another machine, its recommended you build perform a clean build. Does make clean, make depend etc. work and its failing only during 'make -s -j'? If this is the case, what are the changes you're committing to your SVN? It could be that you're modifying some of the make files which is updating the build path for some tools preventing the make from executing. Regards Shravan | |
Hi Shravan, Yes, you are right. Only 'make -s -j' reported the error. I executed 'make clean' and 'rm -rf vision_sdk/binary/' before I committed the code to SVN. I compared the vision_sdk/build/tools_path.mk files from the check out code and newly installed, they are all the same... So, can you provide some other makefiles for me to review? Regards, Liu Gan | |
Hi Liu, Can you please review the changes you're committing to SVN. Also it is recommended you have separate repository for Vision-SDK alone (not bundle everything into one component). Also can you follow the suggestion here in this post and see if it helps (Ensure you aren't running using sudo). e2e.ti.com/.../512844 Regards Shravan | |
Hi Shravan, Thanks for your help. I solved this by accident. It is a stupid mistake. I found that all .so/.a files are missed in the checked out code. May be i executed command like 'find . -name --delete', before i committed the code to svn. It was about two monthed ago, I can't remember exactly...... Regards, Liu Gan | |
Hi Shravan It's the svn "global-ignores" feature that cause this problem. When i try to commit all the files to svn, it ommits the following filse types by default. Regards, Liu Gan | |