I'm attempting to compile Arduino code in the Eclipse IDE using WinAVR and the AVR IDE plugin, and I'm running into one major stumbling block - when I try to compile the code I get the following error:
/usr/bin/sh: g++: command not found
make: *** [main.o] Error 127
Yeah, I bet not...I'm using Windows Vista. I have the paths to WinAVR's avr-g++ all set correctly in the preferences tab, does anyone know why it might be doing this?
Did you set your paths like this?
avr preference panel http://img534.imageshack.us/img534/5996/avreclipsepath.png
I followed the instructions on http://www.arduino.cc/playground/Code/Eclipse and everything worked fine on my Vista box with Eclipse 3.5.
The easiest way now to use arduino in eclipse is by using the arduino eclipse plugin.
It is build on the same software stack CDT +win AVR but it sets all the options correctly for you. It even comes with a library import functionality.
Look at eclipse.baeyens.it for installation instructions an FAQ.
Related
I develop software on Eclipse Mars IDE, under MS Windows 10 OS, based on Java v7. And now I've got some configuration problems related to the IDE. What I want, is that to run into JDK source code from the IDE once I click on the 'step into' (or in other way). I've included the 'src.zip' on the path in the way provided by the IDE. Yet, when I attempt to run into the source code, the IDE says the 'source code not found'.
I want this feature in order to be able to debug some things related to my current app.
Regards
You need to set this through the Java->Installed JRE's found in Eclipse -> Window ->Preferences. See screen shot below.
I'm new to C++ and is trying to use the NetBeans IDE to create a C++ project. However, I have encountered the following error. I have downloaded the sygwin compiler but after mending around for a hour and half, I still couldn't get the NetBeans C++ compiler working? Could someone please give me a hand? I apologise if this sounds silly to some of you. Thanks in advance for any help!
The NetBeans C/C++ bundle does not include a C/C++ compiler.
You have to download an environment like Cygwin or MinGW which includes the compiler and then add it as build host.
https://netbeans.org/community/releases/72/cpp-setup-instructions.html#compilers_windows
Hi i am in Ubuntu 13 and i have installed PTP to work with MPI in my Eclipse 3.8. Problem is after creating a project and trying to open the source file to work on it i have this message.
An error has occurred. See error log for more details.
org.eclipse.ptp.internal.rdt.ui.editor.RemoteCEditor.getInputCElement()Lorg/eclipse/cdt/core/model/ICElement;
I have looked on the web but so far no results about this message, could you help me please ?
Just crossed this problem now.
Try using another editor, shouldn't affect the way it is compiled.
Assuming your using C/C++, you can right click on the source file in Eclipse and then select
Open with > C/C++ Editor
I work on Ubuntu 10.04 and I develop in CUDA on nsight eclipse edition 5.0.0.
I have to use nsight eclipse edition to make a profiling of my code with nvprof. I can launch nvprof in the terminal to profile my code but when I want to launch profiling in nsight, it switch to the profile perspective but send me this error message
org.eclipse.core.runtime.CoreException: unable to find nvprof
I put the folder in the PATH but it did not work. For the debugger, there is a box where you can put the link to the debugger launcher but I did not find the same for the profiler configuration.
If somebody use nsight eclipse edition to make profiling please help me because there is nothing on the web and I really need it.
I will be appreciated if you can help me.
Thanks in advance
Did you try specifying path in the launcher script? CUDA 5.0 preview toolkit did not add path, this is how /usr/local/cuda/bin/nsight will look like in the upcoming toolkit realeases:
#!/bin/sh
PATH=$PATH:/usr/local/cuda-5.0/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-5.0/lib:/usr/local/cuda-5.0/lib64 UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 /usr/local/cuda-5.0/libnsight/nsight
Make sure the script points to the proper toolkit install location.
I installed eclipse Helios a week ago. First I installed it without the CDT.
Today I installed the CDT along with the autotool (this it what can be seen in the list of possible updates). Afterwards, I installed also the minGW (Wascana) as written in the manual of CDT.
but after I create an Hello World project in eclipse I get this error (blinking non stopable) in the console tab:
Invoking autoreconf in build directory: D:/eclipse/proj/workspace/testcpp
Configuration failed with error
(Cannot run program "autoreconf": Launching failed)
Can anyone help me with this? What else do I need to install or config so my CDT will work?
thanks,
Eli
The autotools plug-in doesn't work on Windows yet. There is a fix in place for the upcoming Indigo Eclipse release.
The main problem is that Windows doesn't know how to run shell scripts (which is what autoreconf is). You have to launch the shell manually and ask it to run it. And that's what the fix is.