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.

errors in running: "xs xdc.tools.cdoc.sg", why?

Other Parts Discussed in Thread: TCI6630K2L, CCSTUDIO

Why the executing of the following command stops with errors?

xs xdc.tools.cdoc.sg

root@am:/opt/ti/xdctools_3_32_00_06_core# echo $MOZILLA_FIVE_HOME
/opt/ti/ccsv6/eclipse/xulrunner/run-mozilla.sh
root@am:/opt/ti/xdctools_3_32_00_06_core# echo $LD_LIBRARY_PATH
/opt/ti/ccsv6/eclipse/xulrunner/run-mozilla.sh/plugins:/opt/ti/ccsv6/eclipse/xulrunner/run-mozilla.sh:
root@am:/opt/ti/xdctools_3_32_00_06_core# xs xdc.tools.cdoc.sg
**** warning: package xdc.tools.sg.linux_swt depends on the
Mozilla browser for some functionality. Your environment doesn't
currently point to Mozilla, so some XDC graphical tools may fail.
To prevent this, please set up the following in your environment:

 - set the MOZILLA_FIVE_HOME environment variable. Its value
   should be the directory that contains the file run-mozilla.sh,
   which you can find using the command:
       locate run-mozilla.sh
 - include $MOZILLA_FIVE_HOME and $MOZILLA_FIVE_HOME/plugins on
   the LD_LIBARARY_PATH, for example using bash syntax:
       export LD_LIBRARY_PATH="$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH"
       export LD_LIBRARY_PATH="$MOZILLA_FIVE_HOME/plugins:$LD_LIBRARY_PATH"

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/libswt-gtk-3346.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3346 or swt-gtk in swt.library.path, java.library.path or the jar file
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
    at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:159)
    at org.mozilla.javascript.NativeJavaClass.constructInternal(NativeJavaClass.java:266)
    at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:205)
    at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:166)
    at org.mozilla.javascript.NativeJavaClass.call(NativeJavaClass.java:147)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at xdc.services.intern.xsr.Invoke.call(Invoke.java:92)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
    at org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
    at config.Shell.evaluateReader(Shell.java:847)
    at config.Shell.processReader(Shell.java:512)
    at config.Shell.processFile(Shell.java:571)
    at config.Shell.exec(Shell.java:781)
    at config.Shell.main(Shell.java:1414)

  • I corrected MOZILLA_FIVE_HOME but It still needs some libraries:
    libnullplugin.so, libgtkembedmoz.so
    How I can get them?
  • the error seems not related to the above libraries, something is searching 'libswt-gtk-3346.so' and it can not find it:

    root@am:/opt/ti/xdctools_3_32_00_06_core# ls packages/xdc/tools/sg/swt_linux/java/
    libcairo-swt.so libswt-cairo-gtk-3232.so libswt-gtk-3232.so libswt-pi-gtk-3232.so
    libswt-atk-gtk-3232.so libswt-glx-gtk-3232.so libswt-mozilla-gcc3-gtk-3232.so swt.jar
    libswt-awt-gtk-3232.so libswt-gnome-gtk-3232.so libswt-mozilla-gtk-3232.so

  • Hi Ali,

    I need some more info from you:

    - which TI device you are using?
    - which TI SDK you are using?
    - what is your host OS?
    - which version of CCS6 you are using? XDCtools 3.32 must only be used in CCS 6.1.x (or above)


    Can you also provide the exact steps to reproduce this issue?

    See the XDCtools Getting Started Guide for information on using the xdc.tools.cdoc.sg tool to generate and view documentation for repositories:

    rtsc.eclipse.org/.../XDCtools_Getting_Started_Guide.pdf

    See also the below e2e thread:
    e2e.ti.com/.../53098

    Regards,
    Pavel
  • Thank you Pavel for the reply.

    I am using the followings:
    SOC: TCI6630K2L
    TCIEVMK2LX
    ti-processor-sdk-rtos-k2l-evm-03.00.00.04-Linux-x86-Install_2
    Ubuntu 14.04, Trusty
    CCS6.1.3.00034_linux

    Producing the error is simple, please execute the following instruction:

    root@am:/opt/ti/xdctools_3_32_00_06_core# xs xdc.tools.cdoc.sg
    **** warning: package xdc.tools.sg.linux_swt depends on the
    Mozilla browser for some functionality. Your environment doesn't
    currently point to Mozilla, so some XDC graphical tools may fail.
    To prevent this, please set up the following in your environment:

    - set the MOZILLA_FIVE_HOME environment variable. Its value
    should be the directory that contains the file run-mozilla.sh,
    which you can find using the command:
    locate run-mozilla.sh
    - include $MOZILLA_FIVE_HOME and $MOZILLA_FIVE_HOME/plugins on
    the LD_LIBARARY_PATH, for example using bash syntax:
    export LD_LIBRARY_PATH="$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH"
    export LD_LIBRARY_PATH="$MOZILLA_FIVE_HOME/plugins:$LD_LIBRARY_PATH"

    Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/libswt-gtk-3346.so which might have disabled stack guard. The VM will try to fix the stack guard now.
    It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3346 or swt-gtk in swt.library.path, java.library.path or the jar file
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
    at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:159)
    at org.mozilla.javascript.NativeJavaClass.constructInternal(NativeJavaClass.java:266)
    at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:205)
    at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:166)
    at org.mozilla.javascript.NativeJavaClass.call(NativeJavaClass.java:147)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at xdc.services.intern.xsr.Invoke.call(Invoke.java:92)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
    at org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
    at config.Shell.evaluateReader(Shell.java:847)
    at config.Shell.processReader(Shell.java:512)
    at config.Shell.processFile(Shell.java:571)
    at config.Shell.exec(Shell.java:781)
    at config.Shell.main(Shell.java:1414)
  • Ali,

    As this is not related to linux kernel, I would suggest you to ask/post in the device forum or in CCStudio forum. The teams there might have some hints for you.

    Regards,
    Pavel