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.

Error building DVSDK


Dear All,

I am trying to 'make' DVSDK (dvsdk_2_10_01_18) on Ubuntu. I am getting missing JVM error  during configuration. Here is the error message.


======== Building linux/image_decode_io1_dm365 ========
Configuring application using linux/image_decode_io1_dm365.cfg

--/dvsdk_2_10_01_18/xdctools_3_15_01_59/xs.x86U: error: can't create session manager: can't find JVM


The environment variables are set as below:
export JAVA_PATH=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin


Please help me fixing this issue.

Regards,

 

  • Are JAVA_HOME and JAVA_PATH the same?  You need to find where the executable is and add that path to your PATH environment variable.

     

    [edit] also, the following may help, though I have not tried it: http://wiki.davincidsp.com/index.php/Linux_Host_Configuration_-_Ubuntu

  • Juan,

     

    Thanks for prompt response.

     

    Yes both are same.

    My current setting:

    ajay@ubuntu:~/BLUE/ipnc$ echo $JAVA_HOME
    /usr/lib/jvm/java-6-sun
    ajay@ubuntu:~/BLUE/ipnc$ echo $PATH
    /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_5.0/montavista/pro/bin:/opt/mv_pro_5.0/montavista/common/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin

    Error I am geting is as follows

    ======== Building linux/image_decode_io1_dm365 ========
    Configuring application using linux/image_decode_io1_dm365.cfg

    /home/ajay/BLUE/ipnc/dvsdk_2_10_01_18/xdctools_3_15_01_59/xs.x86U: error: can't create session manager: can't find JVM
    make[6]: *** [linux/image_decode_io1_dm365_config/compiler.opt] Error 1
    make[6]: Leaving directory `/home/ajay/BLUE/ipnc/dvsdk_2_10_01_18/dmai_1_21_00_10/packages/ti/sdo/dmai/apps/image_decode_io1'
    make[5]: *** [image_decode_io1/.dm365_al] Error 2
    make[5]: Leaving directory `/home/ajay/BLUE/ipnc/dvsdk_2_10_01_18/dmai_1_21_00_10/packages/ti/sdo/dmai/apps'

  • Which version of Ubuntu are you using? I tried this on 9.10 and it worked ok.

    Mark

  • I am using 9.04.

    Is there any problem with this version of JVM (java-6)?

     

    Regards,

     

  • The XDCtools product includes a JVM which it should automatically find and use. It includes a copy so it is self-contained and does not have "guess" about compatibility with whatever is on the user's machine. Can you try running the JVM that comes with the XDCtools? Something like the following:

    cd path-to-where-installed/xdctools

    ./jre/bin/java -version

    and post the results.

  • Dear Mark,

    I got following error messages:

    Error: could not find libjava.so
    Error: could not find Java 2 Runtime Environment.

    It implies that XDCtools doesn't include a JVM. Do I need to install/update version of Java? Or is there any other problem?

    Thanks & Regards,

    Ajay

     

     

  • Ajay,

    The jre subdirectory in the XDCtools directory is the Java Runtime Environment (JRE) which includes the JVM. Since running the jre/bin/java executable failed, the next thing I would try is to re-install the XDCtools product. Perhaps there was an error or problem during the original install which corrupted the jre subdirectory in some fashion.

    Mark