Software Archive
Read-only legacy content
17061 Discussions

iotdk-ide for Linux not working in Ubuntu 14

Jose_S_
Beginner
2,700 Views

I have installed the iotdk-ide in Windows 8.1, MAC and Ubuntu 14. The Windows and the Mac versions work fine

However, the Ubunto installation complains that it cannot check the version of GDB because of a bad Python installation.

I can use Python in my Ubuntu installation but the iotdk is looking for a file which does not exist in the iotdk installation. 

Has anyone else experienced this problem?

Thanks,

0 Kudos
20 Replies
Matthias_H_Intel
Employee
2,665 Views

hmmm, interesting - can you send some more information (exact output; when do you see this error)

0 Kudos
Jose_S_
Beginner
2,665 Views

Mathias:

Thanks for the comment.

I will send more detailed info tomorrow, but the problem appears as soon as I try to DEBUG. Samples compile OK, and connection to my Galileo Gen 1 is good. But Eclipse complains that it cannot execute the --version of GDB because of a missing file.

I'll send the complete trace tomorrow.

0 Kudos
Jose_S_
Beginner
2,665 Views

 

Mathias:

Below is the detailed message from Eclipse when trying to debug any of the application examples that come with the iotdk-ide-linux. 

I do have Python 2.7 installed in my Ubuntu 14 64 bit.

Any help would be appreciated.

Could not determine GDB version using command: i586-poky-linux-gdb --version
Traceback (most recent call last):
  File "/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py", line 569, in <module>
    main()
  File "/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py", line 551, in main
    known_paths = addusersitepackages(known_paths)
  File "/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py", line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py", line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py", line 243, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/sysconfig.py", line 524, in get_config_var
    return get_config_vars().get(name)
  File "/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/sysconfig.py", line 423, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/sysconfig.py", line 302, in _init_posix
    raise IOError(msg)
IOError: invalid Python installation: unable to open /home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/include/python2.7/pyconfig.h (No such file or directory)

 

0 Kudos
Jose_S_
Beginner
2,665 Views

More bad news.

iotdk-ide-linux also cannot debug when installed in a Debian distribution or in a MAC OSX machine. They all have problems starting the gdb. I can only get it to work in Windows 8.1.

I really would like to use the Linux version

Is anyone else having these issues?

Need help

0 Kudos
NagaVenkat_K_Intel
2,665 Views

Can you check if you have the gdb file selected in the IDE.

Select a project right-click and select Debug Configurations..

go to the Debugger tab. Under Main tab check the debugger file name. I should look something like below,

GDB Debugger: i586-poky-linux-gdb

If it is not present, click browse and go to iotdk-ide-XXX -> iot-devkit -> devkit-debugger and select the file named i586-poky-linux-gdb.

Click apply and start debugging. Hope this helps.

Regards,

Ragu Kona

0 Kudos
Jose_S_
Beginner
2,665 Views

The debugger name is present in both the linux and the mac installations.

However, in the linux installation, the file i586-poky-linux-gdb is not present in iotdk-ide-linux/iot-devkit/devkit-debugger folder.

I will try re-installing the linux version and see what happens.

In the mac installation, the file i586-poky-linux-gdb is present in the folder you indicated, but the error says that it cannot start gdbserver on the remote host. I can start gdbserver in the Galileo by logging into it and executing it from the command line.

Thank you for your help

0 Kudos
Matthias_H_Intel
Employee
2,665 Views

pls find attached the missing files for Linux:

 

0 Kudos
Jose_S_
Beginner
2,665 Views

Mathias:

Thank you for the missing files, the iotdk now works OK in Ubuntu 14.

In the Debian installation, another error appears:

jsac@GalileoSDK:~/iotdk-ide-linux$ ./devkit-launcher
/home/jsac/iotdk-ide-linux
Relocating SDK
Setting variables
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/
jsac@GalileoSDK:~/iotdk-ide-linux$ /home/jsac/iotdk-ide-linux/eclipse-linux/eclipse: 5: /home/jsac/iotdk-ide-linux/eclipse-linux/eclipse: Syntax error: "(" unexpected

The mac iotdk also has errors, but we can handle those in another thread.

Two questions come to mind:

1) Why did my installation have missing files?

2) Is there a repository where updated versions of the iotdk can be found?

Thanks again for your help.

 

 

0 Kudos
Dallas_P_
New Contributor I
2,665 Views

I had the same issues under Ubuntu Jose and I gave my solutions here:

https://communities.intel.com/message/254694#254694

Looks like Matthias squared you away already for Ubuntu though.  I have a Debian machine here in my lab but I haven't installed the IOTDK on it as I got it working on one my main workstation under Ubuntu.  I'll try it tomorrow and see if I get the same issue.

As far as I know there isn't really a central repository for the the IOTDK and there haven't been any official updates since it's official release.  It has only been out for a short time.  There was an SDK of some kind released early on but I have never used it.  Just read some references to it.  I imagine when there is more than one version of the IOTDK, the quys will setup a central location to host them.

The missing files are just a result of the "newness" of the kit. I believe intel is still calling it 'beta' BTW.  You're one of the test subjects!  Welcome to the maze my brother!

I was really frustrated with it at first but hang in there, Matthias and the other folks here are really helpful and I'm sure he'll point ya to a solution for the script as well.  If I figure it out before he gets around to it I'll post up.

Good Luck,

Dallas

EDIT: Hey Jose I found this link right after I originally posted.  Matthias mentioned it in another post regarding libmraa issues:

http://iotdk.intel.com/

Looks like there is a 1.0 and a 1.1 version of the IOTDK Kernel at least, but I only see 1.1 of the SDK.

0 Kudos
Jose_S_
Beginner
2,665 Views

Thank you for the encouraging words, Dallas P!

I had the same problem with creating a new project, but arrived at the same solution you did.

I'll keep posting because the MAC installation still does not work like it should.

0 Kudos
Matthias_H_Intel
Employee
2,665 Views

Jose S. wrote:

Thank you for the missing files, the iotdk now works OK in Ubuntu 14.

Great it works now

Jose S. wrote:

In the Debian installation, another error appears:

jsac@GalileoSDK:~/iotdk-ide-linux$ ./devkit-launcher
/home/jsac/iotdk-ide-linux
Relocating SDK
Setting variables
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/jsac/iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/
jsac@GalileoSDK:~/iotdk-ide-linux$ /home/jsac/iotdk-ide-linux/eclipse-linux/eclipse: 5: /home/jsac/iotdk-ide-linux/eclipse-linux/eclipse: Syntax error: "(" unexpected

I am not sure but I guess it's irrespective of the OS an issue with a path.If you check the "devkit-launcher" script you can see that ${DEVKIT_HOME} is passed to Eclipse as a parameter. I'd recommend echoing ${DEVKIT_HOME}  -  probably you do have a path name Eclipse (or the shell) can't deal with 

Jose S. wrote:

The mac iotdk also has errors, but we can handle those in another thread.

Pls do

Jose S. wrote:

Two questions come to mind:

1) Why did my installation have missing files?

2) Is there a repository where updated versions of the iotdk can be found?

Thanks again for your help.

@1: well, things happen ... ;-) but it was a general issue and not only on your side. Thanks for finding it

@2: for libmraa / upm as described elsewhere on this forum

 

0 Kudos
Jose_S_
Beginner
2,665 Views

Mathias:

I checked your statement:

I am not sure but I guess it's irrespective of the OS an issue with a path.If you check the "devkit-launcher" script you can see that ${DEVKIT_HOME} is passed to Eclipse as a parameter. I'd recommend echoing ${DEVKIT_HOME}  -  probably you do have a path name Eclipse (or the shell) can't deal with.

But the value of ${DEVKIT_HOME} is /home/jsac/iotdk-ide-Linux which should be OK with eclipse and the shell. Also, I commented out the -data ${DEVKIT_HOME}/iot-devkit/workspace argument and it still gives me the same error.

My Ubuntu installation is 64 bit in a virtual box, while my Debian installation is 32 bit. Could that make a difference?

Thanks for you help.

0 Kudos
Nanda_s_
Beginner
2,665 Views

Hello,

 

I am using the iotdk-ide-linux tool for Intel Galileo Gen2.

 

Everytime I try to launch the "devkit-launcher" I do not see anything. And on terminal it gets stuck at the below:

ethercat@ethercat-HCL-Desktop:~/Downloads/iotdk-ide-linux$ /home/ethercat/Downloads/iotdk-ide-linux/eclipse-linux/eclipse: 5: /home/ethercat/Downloads/iotdk-ide-linux/eclipse-linux/eclipse: Syntax error: "(" unexpected

 

I am using Ubuntu 12.04 with CPU Architecture as below:

 

Architecture:          i686
 CPU op-mode(s):        32-bit, 64-bit

 

I suppose the Application requires an x86_64 architecture to get launched.

 

Can anyone suggest why I am not getting the Eclipse IDE launched and what needs to be done to make it work?

 

 

0 Kudos
Matthias_H_Intel
Employee
2,665 Views

Jose S. wrote:

My Ubuntu installation is 64 bit in a virtual box, while my Debian installation is 32 bit. Could that make a difference?

That definitely could make a big difference! Currently only x64 is supported on Linux. However, you might try what I suggested for Win32

on https://software.intel.com/en-us/forums/topic/531095#comment-1803649 - just use the "Linux 32" Arduino IDE rather than the "Windows 32" one I mentioned in my post.

Haven't tested it so no guarantee it works but might work.

0 Kudos
Matthias_H_Intel
Employee
2,665 Views

Nanda s. wrote:

Hello,

 

I am using the iotdk-ide-linux tool for Intel Galileo Gen2.

 

Everytime I try to launch the "devkit-launcher" I do not see anything. And on terminal it gets stuck at the below:

ethercat@ethercat-HCL-Desktop:~/Downloads/iotdk-ide-linux$ /home/ethercat/Downloads/iotdk-ide-linux/eclipse-linux/eclipse: 5: /home/ethercat/Downloads/iotdk-ide-linux/eclipse-linux/eclipse: Syntax error: "(" unexpected

 

I am using Ubuntu 12.04 with CPU Architecture as below:

 

Architecture:          i686
 CPU op-mode(s):        32-bit, 64-bit

 

I suppose the Application requires an x86_64 architecture to get launched.

 

Can anyone suggest why I am not getting the Eclipse IDE launched and what needs to be done to make it work?

 

 

Seems you are running the IDE on a 32 bit OS which is not currently supported. You may try the above suggestion 

0 Kudos
Jose_S_
Beginner
2,665 Views

Just a recap of my journey with the iotdk-ide-xxx:

The Windows installation works OK. I am using Windows 8.1 with all the latest updates.

The Ubuntu 14 64 bit installation works OK.

The Debian 32 bit does not work and it seems that it is due to the fact that it is 32 bit. I am not going to bother with the workaround since I have the Ubuntu working.

In all of the working installations, the debugging is not perfect. Stepping through the instructions sometimes does not make sense and just running the code with Resume command does not work as it should. I have found that running the code in the Galileo board by itself with a large number of fprintf() statements is less confusing. Then, again, I have had a lot of issues with gdb over the years. I wonder why we still use it.

Also, the STP files do show the My Home and the Root files. You have to set up a filter to get a given directory in the remote connection.

Also, in the debug perspective there is no way to reset.

The MAC installation in my Mac book Air with OS X works like the Ubuntu and Windows installations...so far.

Thanks for all your help and, please, send updates as they happen.

0 Kudos
Matthias_H_Intel
Employee
2,665 Views

thanks for this feedback!

0 Kudos
Jose_S_
Beginner
2,665 Views

New issue to report.

I had to upgrade to JRE 1.8 build 25 because of another software install in my Windows 8.1 64 bit computer.

Now the Eclipse in the iot-ide will not launch.

I get a lot of errors from Java. Unfortunately, I am not able to capture it.

 

Anybody else experiencing this?

0 Kudos
Matthias_H_Intel
Employee
2,665 Views

Jose S. wrote:

New issue to report.

I had to upgrade to JRE 1.8 build 25 because of another software install in my Windows 8.1 64 bit computer.

Now the Eclipse in the iot-ide will not launch.

I get a lot of errors from Java. Unfortunately, I am not able to capture it.

 

Anybody else experiencing this?

The "Kepler" Eclipse IDE currently used officially requires JRE 1.6. However, as far as I have seen so far it works with:

Windows: JRE 1.6, 1.7, not 1.8

OSX (Maverick): not with JRE 1.7 nor 1.8 

Linux: even with 1.8 (OpenJDK)

0 Kudos
Chye_Guan_N_
Beginner
2,400 Views

matthias-hahn (Intel) wrote:

pls find attached the missing files for Linux:

Thanks for the missing file.

0 Kudos
Reply