I'd like to compile c/c++ source code on my laptop (Windows 7), then upload the executable onto the Edison and run it on the Edison without the source code ever being on the Edison.
I was hoping to be able to handle it as described above instead of compiling on the Edison and then deleting the source code.
I've made some attempts to no avail thus far. I compiled a c++ HelloWorld program with "g++ HelloWorld.cpp -o HelloWorld", copied the executable to the Edison, set its permissions to 777 and tried running it with "./HelloWorld" at the Edison command prompt (and even "./HelloWorld.exe").
Got the error message: -sh: ./HelloWorldTest.exe: cannot execute binary file: Exec format error
Any help would be appreciated. Maybe I'm looking for info on cross-compiling? Kind of a newbie...
Link Copied
Just figured it out. Eclipse is the answer.
Just figured it out. Eclipse is the answer.
Hi canthackit,
Thanks for your interest in the Intel Edison Platform.
I'm glad to hear that you figure it out by your own!
Still I will leave this information hear:
There are two approaches to writing C++ code in the Edison: Using the Eclipse IDE (Intel System Studio) or through the console using GCC and a command line directly on the Edison.
I would recommend to use the Eclipse IDE if you want to upload directly an executable file to the Edison. If you are using the console know that you will have to copy the .cpp file and use the GCC in order to compile your code.
Here is a link that elaborates more what I'm trying to explain (https://learn.sparkfun.com/tutorials/programming-the-intel-edison-beyond-the-arduino-ide Programming the Intel® Edison: Beyond the Arduino IDE - learn.sparkfun.com ). I hope you find this information useful.
I will be waiting for your reply, have a nice day.
Best Regards,
-Jose.
Is there a way to use OpenCV with the Intel Edison version of Eclipse?
Hi canthackit,
Yes it is possible to use OpenCV with the Eclipse IDE. There are several ways to accomplish this, below I provide you two different tutorials, please refer to them and let me know your results.
https://software.intel.com/sites/default/files/article/366464/building-opencv-using-intel-system-stu... https://software.intel.com/sites/default/files/article/366464/building-opencv-using-intel-system-stu...
http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html# linux-eclipse-usage Using OpenCV with Eclipse (plugin CDT) — OpenCV 2.4.13.1 documentation
I will be waiting for your reply, have a nice day.
Best Regards,
-Jose.
For more complete information about compiler optimizations, see our Optimization Notice.