Software Archive
Read-only legacy content
17061 Discussions

Creating or duplicating Eclipse Project

Anonymous
Not applicable
3,900 Views

Hi everyone. I have spent 7 hours trying to get a simple copy or new IoT project working, i have followed the info in the code examples, the documentation in the tutorial and nothing works. Does anyone have an real tutorial on how to do this please I am almost ready to give up with the Eclipse IDE, how can something as simple as creating or copying a project be so hard ?

0 Kudos
24 Replies
Anonymous
Not applicable
3,284 Views

Attached is where I end up evrytime when creating a new project using the following tutorial:

https://software.intel.com/en-us/articles/guide-to-eclipse-ide-0

NewProject.gif

This example is completely wrong the features it tells you to use for creating a new project do not even exist:

https://software.intel.com/en-us/articles/getting-started-with-eclipse-on-intel-iot-platforms

Copying a project always ends up with errors such as:

Error starting process.
Cannot run program "C:\Users\Usuario\Transporter\TechBubble\_IoT\IntelGalileo\_SOFTWARE\iotdk-ide-win\iotdk-ide-win\iot-devkit\workspace\TechBubble_CPP_LinGalileo_Security\Debug\TechBubble_CPP_LinGalileo_Security": Launching failed
Cannot run program "C:\Users\Usuario\Transporter\TechBubble\_IoT\IntelGalileo\_SOFTWARE\iotdk-ide-win\iotdk-ide-win\iot-devkit\workspace\TechBubble_CPP_LinGalileo_Security\Debug\TechBubble_CPP_LinGalileo_Security": Launching failed
Cannot run program "C:\Users\Usuario\Transporter\TechBubble\_IoT\IntelGalileo\_SOFTWARE\iotdk-ide-win\iotdk-ide-win\iot-devkit\workspace\TechBubble_CPP_LinGalileo_Security\Debug\TechBubble_CPP_LinGalileo_Security": Launching failed
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Don't know how to run.  Try "help target".
Don't know how to run.  Try "help target".

I cannot find documentation that covers any of this. Getting very disheartened with the Dev Kit IDEs and documentation, I have been a developer for about 15 or so years and have never had as many problems as I have faced in the last two days :( The Arduino IDE works great apart from the issues I posted yesterday with the Ip issues but I want to do more advanced stuff that will require the Eclipse IDE but not able to get my foot off the starting block.

0 Kudos
Jayesh_K
Beginner
3,284 Views

Hi AdamMiltonBarker,

  I tried on Ubuntu 14.10(do not have Win7/8 handy) and followed instructions given at: https://software.intel.com/en-us/articles/guide-to-eclipse-ide-0, and I was able to setup Eclipse, Create new projects, copy projects etc. 

Did you ensure to download the right version of Eclipse? As per the guide - Please download Intel Version of Eclipse.

To get started the Intel version of Eclipse IDE for C/C++ developers should be downloaded. Other versions can produce applications, but may be missing Intel® Galileo and Edison-specific elements necessary for deployment.

Please let know if you are still facing the issue.

 

 

0 Kudos
Anonymous
Not applicable
3,284 Views
Hi thanks for the reply yes I have the correct version and it is launched by clicking the .bat file.
0 Kudos
Anonymous
Not applicable
3,284 Views
The existing projects work they detect my proximity sensor and show the readings in the eclipse console and the led also blinks as expected the only issue is creating a new project or duplicating one.
0 Kudos
Joseph_B_Intel
Employee
3,284 Views

AdamMiltonBarker, thanks for the feedback.  Making it easier to create a new project is something we're working on improving. I didn't see in your post, what version of the IDE are you using ? Help > About

2015-02-19_10-26-56_0.png 

0 Kudos
Joseph_B_Intel
Employee
3,284 Views

Helpful FAQ for Eclipse, will be updated periodically.

https://software.intel.com/en-us/articles/eclipse-faq-for-iot-build

 

0 Kudos
Anonymous
Not applicable
3,284 Views

Hi Joseph sorry it is the same build number you show there I redownloaded it yesterday as I thought maybe I had an out of date IDE but it is the same as above.

Thanks for the link will check it out,

0 Kudos
Anonymous
Not applicable
3,284 Views

Hi Joseph, the FAQ just leads me back to the article I followed and still have same results, I have terminated the rnning projects I worked that one out the other day so its not that it is just giving me the above errors when duplicating and the screen shot showing errors on things like namespace etc when creating new project.

0 Kudos
Anonymous
Not applicable
3,284 Views

Hi guys does anyone have any other ideas ?

0 Kudos
Anonymous
Not applicable
3,284 Views

A bit more info that may help, in the case of duplicating project these are the steps I took: ( Windows 8.1, re downloaded IDE again from Intel website)

1. Right click and copied cpp_mraa_analog_input

2. Right click and pasted

3. Changed name of project, this did not change the cpp file name if this helps.

4. Cleaned project

5. Built project

6. Pressed debug.

Response came back as encountered problem, Error in final launch sequence. Also does not show the debug link when selecting the dropdown next to the run button.

More details:

Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Don't know how to run.  Try "help target".
Don't know how to run.  Try "help target".

errors.jpg

Really getting held back by this issue and issues with the Arduino IDE Web Server issue, also the iot agent script in eclipse fails with the same errors as show above every time. Would really appreciate if anyone can help me get to the bottom of this as I am totally out of solutions for this and creating new project issue. Thanks to all who have helped so far.

 

 

 

0 Kudos
Anonymous
Not applicable
3,284 Views

More info for creating new project from following the guide after re downloading the IDE again.

1. On create project, project folder was totally empty not sure if this should of set up the cpp file etc. ( After getting this result twice previously I tried with a hello world project here and ended up with the above image towards the top of the page where it was showing errors in the source code and basically the same failure notices as I have posted throughout this topic when attempting to run.)

2. Followed rest of settings through until got to run as config. Manually created Remote application by pressing New as none existed, also manually created Debug folder as there was none, copied set up of the analog input project replacing with the new project name, also tried browsing to the location.

3. Closed the run as settings/

4. Noticed red x over project name checked run as configs again and says program does not exist.

5. Created new source folder, created new c++ class tried to debug says no binary exists.

program_not_exist.jpg

0 Kudos
Anonymous
Not applicable
3,284 Views

Moved over to node.js with Notepad and WinSCP, would still like to get to the bottom of this though if anyone has any ideas.

0 Kudos
samontab
Valued Contributor II
3,284 Views

You could try using Qt Creator and CMake. I prefer that setup over eclipse and manual copy of the project files. Take a look here:

https://software.intel.com/en-us/forums/topic/542253

0 Kudos
Anonymous
Not applicable
3,284 Views
Hi I'm really pretty happy with node.js and notepad at the moment. I would like to get to the bottom of this at some point I'm just a suprized how little responses are. I have tried on two computers with the same effect so has to be something I'm not doing right maybe the docs missed a few steps. Anyway for now I am happy I have managed to rebuild my client app as a server in node.js and moving fast so a good for now. If there are any other suggestions on where this could be going wrong I would still like to find a solution though. Thanks for the reply.
0 Kudos
NagaVenkat_K_Intel
3,284 Views

Steps to create a project from an existing project:

In eclipse, copy and paste the project in the project explorer, you will be asked to give a name (default would be copy of xxx)

Now if you build the new project, you will see the binary created with same name under the project.

If you want to run the new binary right-click on the project and select Run as -> Run Configuration and right click on an existing configuration and select duplicate.

Now replace the Name, Project and all the references of the duplicated project with the earlier created project/binary name. Apply and click run now you will be able to run the new binary on the board.

Yes, the process is a bit frustrating but the Intel IoT Developer Kit v1.0 comes with the option to add a new IoT project, you can download it here https://software.intel.com/en-us/iot/downloads

0 Kudos
samontab
Valued Contributor II
3,284 Views

Now this should not be needed with the new SDK...

0 Kudos
NagaVenkat_K_Intel
3,284 Views

True the new devkit fixed most of these issues.

0 Kudos
Anonymous
Not applicable
3,284 Views

I just download the C++ IDE from 1.0 and only now do I see similar to the screen shots in the guide ie the home page has the IoT Developer Kit tab etc, I had the correct download before which included the example IoT samples but the tab was none existent. Will check it out and reply back here if I still have issues.

0 Kudos
Anonymous
Not applicable
3,284 Views

By the way Raghu Kona (Intel)  your link to the v1.0 sends me to a not authorized page.

0 Kudos
Joseph_B_Intel
Employee
3,169 Views

This is the correct link AdamMiltonBarker

https://software.intel.com/en-us/iot/downloads

 

0 Kudos
Reply