Forums - Questions about error at running HVX intrinsic code using Hexagon SDK and Hexagon SDK installation at Ubuntu18.04

4 posts / 0 new
Last post
Questions about error at running HVX intrinsic code using Hexagon SDK and Hexagon SDK installation at Ubuntu18.04
seongkyun.han
Join Date: 18 Oct 20
Posts: 2
Posted: Wed, 2021-03-31 00:55

Hello.

I have few question about Hexagon SDK. (Question 2 is more important)

Question 1.

I am currently developing some codes using HVX SDK 3.5.2 on Windows10 system.

I've installed the SDK successfully and tried the HVX intrinsic code, but an error occured.

 

Actually, there is no error during building, but whenever I tried to run the code with Debug mode, then it prints out the error code below:

==========================================================

'Launching PROJECT_NAME' has encountered a problem.
An internal error occurred during: "Launching PROJECT_NAME".

An internal error occurred during: "Launching PROJECT_NAME".
java.lang.NullPointerException

==========================================================

I've tried to find out more information on google but there was nothing.

What should I do to run the made binary file?

 

Question 2. (More important)

Now, I am trying to install Hexagon SDK 3.5.2 at my Ubuntu 18.04 LTS PC.

I've downloaded installer and unzipped it. (qualcomm_hexagon_sdk_3_5_2_eval.bin)
And "sudo chmod +x qualcomm_hexagon_sdk_3_5_2_eval.bin" to change the file mode and installed it with "Full Android SDK".
During installation process, It downloaded successfully Android NDK and Eclipse.

After the installation, I've changed the "Launch Hexagon IDE" file which is located at home directory to correct the location.
from: source "$(get_this_script_dir)"/setup_sdk_env.source
to: source "$(get_this_script_dir)"/Qualcomm/Hexagon_SDK/3.5.2/setup_sdk_env.source

And launched it with "./Launch Hexagon IDE", but only Eclipse photon  was poped up, not a Qualcomm hexagon launcher.

So, I moved into "Qualcomm/Hexagon_SDK/3.5.2" and typed the script below to install IDE plugins:
python2 scripts/manage_plugins.py -E tools/hexagon_ide -V tools/hexagon_ide/jre/bin -Z tools/hexagon_ide/ide_plugins/juno/IDE.zip

But it prints out below:
==========================================================================
Installing from jar:file:/tools/hexagon_ide/ide_plugins/juno/IDE.zip!/

Installing Hexagon plugins...
Please wait...
Installation failed.
 
Unable to load repositories.
Application failed, log file location: /home/han/Qualcomm/Hexagon_SDK/3.5.2/tools/hexagon_ide/configuration/1617178551091.log
 
Hexagon plugin Installation Done...
You are using the older version of Hexagon, please update the plugins.
==========================================================================
 
The log file info is below:
 
==========================================================================
!SESSION 2021-03-31 17:15:51.003 -----------------------------------------------
eclipse.buildId=4.8.0.I20180611-0500
java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product -application org.eclipse.equinox.p2.director -repository jar:file:/tools/hexagon_ide/ide_plugins/juno/IDE.zip!/ -installIU com.qualcomm.feature.ide.feature.group,com.qualcomm.feature.ide.hexagon.feature.group,com.qualcomm.feature.ide.hexagon.hlos.interface.feature.group,com.qualcomm.feature.ide.hexagon.opendsp.feature.group
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product -application org.eclipse.equinox.p2.director -repository jar:file:/tools/hexagon_ide/ide_plugins/juno/IDE.zip!/ -installIU com.qualcomm.feature.ide.feature.group,com.qualcomm.feature.ide.hexagon.feature.group,com.qualcomm.feature.ide.hexagon.hlos.interface.feature.group,com.qualcomm.feature.ide.hexagon.opendsp.feature.group
 
!ENTRY org.eclipse.equinox.p2.artifact.repository 4 1000 2021-03-31 17:15:52.468
!MESSAGE No repository found at jar:file:/tools/hexagon_ide/ide_plugins/juno/IDE.zip!/.
 
!ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2021-03-31 17:15:52.495
!MESSAGE No repository found at jar:file:/tools/hexagon_ide/ide_plugins/juno/IDE.zip!/.
 
!ENTRY org.eclipse.equinox.p2.core 4 0 2021-03-31 17:15:52.496
!MESSAGE Unable to load repositories.
==========================================================================

Please give me some advice to install it.

Thanks.

 

  • Up0
  • Down0
seongkyun.han
Join Date: 18 Oct 20
Posts: 2
Posted: Wed, 2021-04-21 23:03

I found some problems about your Hexagon SDK.

Firstly, The "manage_plugins.py" has wrong code.

Whenever I tried to install the Hexagon SDK, the hexagon_ide is automatically download and installed during the SDK installation process.

The installed hexagon_ide is "Eclipse photon"

Inside of the function "check_eclipse_version():", the "return "kepler" must be cahnged to return "photon".

And several faulties inside of installation scripts.

 

I think it is not managed anymore and anybody use it.

 

If somebody want to install the Hexagon installer, then install SDK firstly and turn on the eclipse photon inside of hexagon_ide folder, and nextly go to Help -> Install New Software and choose the ide_plugins/photon folder and install it on eclipse photon, and finally go to manage_plugins.py and change the script i've mentioned above and change the "uninstall_plugins(0)" to "#uninstall_plugins(0)", and run the script. It will prints out some errors but whenever you run the Launch Hexagon SDK, then it will be successfully turned on. (if fails, then the eclipse photon will be poped on.)

One more thing, you should change "Launch Hexagon IDE" script. The exact location of setup_sdk_env.source is not a "$(get_this_script_dir)"/setup_sdk_env.source. It is located in the "$(get_this_script_dir)"/Qualcomm/Hexagon_SDK/3.5.2 folder.

please change the modifications at next release. I can not understand the faulties about your "RELEASED" Hexagon SDK.

 

I think the Hexagon SDK will be deprecated.

Nobody cares about the problems.

  • Up0
  • Down0
hsinih
Join Date: 22 May 19
Posts: 3
Posted: Thu, 2021-04-22 09:17

Dear Seongkyun,

I apologize about the delay and our team is looking into your questions and comments and will get back to you.

Thanks

  • Up0
  • Down0
chopkins
Join Date: 7 Dec 18
Posts: 3
Posted: Thu, 2021-04-22 10:36

Hi Seongkyun,

We will look into the issue with the plugins not being installed automatically. In the mean time the manage_plugins.py script requires absolute paths for the flags that are provided. If you run the below commands the manage_plugins.py script should properly install all plugins.

1. source setup_sdk_env.source

2. python2 scripts/manage_plugins.py -E $HEXAGON_SDK_ROOT/tools/hexagon_ide -V $HEXAGON_SDK_ROOT/tools/hexagon_ide/jre/bin -Z $HEXAGON_SDK_ROOT/tools/hexagon_ide/ide_plugins/photon/IDE.zip

After running these you should be able to run Launch Hexagon IDE and see the Hexagon IDE splash screen with all plugins installed.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.