|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Errors with install of Eclipse
I followed the manual on screensteps about how to install Eclipse and the FRC 2015 Toolchains. I've got them installed, and when I compile a sample program it always generates the FRCUserProgram.out file just fine. However, I keep getting two errors: Program "g++" not found in PATH and Program "gcc" not found in PATH. Does anyone know how to get rid of these errors?
|
|
#3
|
|||
|
|||
|
Re: Errors with install of Eclipse
you need to add the g++ compiler to the PATH
|
|
#4
|
|||
|
|||
|
Re: Errors with install of Eclipse
Try uninstalling the toolchains, reboot, make sure that the toolchain installer is on your root drive, install the toolchains, then open Eclipse.
|
|
#5
|
|||
|
|||
|
Re: Errors with install of Eclipse
All right. It works now. Thanks for the help!
|
|
#6
|
|||
|
|||
|
Re: Errors with install of Eclipse
Just for so others know cause I just spent enough time trying things, what worked for me was:
download minGW (http://sourceforge.net/projects/ming...e=typ_redirect) and put it on the c drive (you only have to install the c++ gcc option when it asks you). Add the bin folder in minGW to the environmental variable named path. Open Eclipse and the error messages were gone! |
|
#7
|
|||
|
|||
|
Re: Errors with install of Eclipse
Tried both suggestions posted here, still getting same error. Anyone fix this in another way?
|
|
#8
|
|||
|
|||
|
Re: Errors with install of Eclipse
I used the mingw installer and added to the path also. I've heard from some places that going to Window->Preferences->C/C++->Build->Settings and then using Restore Defaults on the Discovery tab can help. Also, if you've changed your PATH you need to restart Eclipse for it to see.
|
|
#9
|
|||
|
|||
|
Re: Errors with install of Eclipse
Thanks for the guidance on this thread. Having the same problems on Windows 8 after following the instructions, I think. I'm a little mystified about how having the _windows_ mingw toolchain installed (which would logically compile to x86 code) would help with the ARM toolchain needed for the roboRIO. Tried uninstalling the FRC toolchain AND the Eclipse FRC extensions, then re-installing both. No joy.
|
|
#10
|
||||
|
||||
|
Re: Errors with install of Eclipse
Note: This should not cause any errors if you are only doing FRC dev.
You can safely ignore them. If you are doing more than FRC dev, install G++ on your path via MinGW as already suggested. Having said that, you can make them go away by prefixing the value listed in the error with "arm-frc-linux-gnueabi-". I'm afraid I don't remember where it is off the top of my head but can provide the exact value if you copy-paste the entire error. The cause is eclipse CDT (C/C++ Developer tools) expects `g++` to be on the PATH for global header parsing. However the FRC projects use their own version of g++ with a different name (arm-frc-linux-gnueabi-g++) and the global tools don't realize it. It is only a problem if you are doing native development. |
|
#11
|
|||
|
|||
|
Re: Errors with install of Eclipse
Quote:
However, the libstdc++.so.6 library is missing. so the link step fails. Actually it is in the WPI toolset, but the linker never sees it. Any ideas? Must be another path somewhere I need to update. |
|
#12
|
|||
|
|||
|
Re: Errors with install of Eclipse
Quote:
|
|
#13
|
|||
|
|||
|
Re: Errors with install of Eclipse
Thanks - did try installing MinGW (did so) and adding c:\MinGW\bin\ to the path variable. Still didn't fix that error. Good to know the libstdc++ error can be ignored, but would be nicer to not have the distraction for myself or team programmers. Continued guidance welcome.
|
|
#14
|
|||
|
|||
|
Re: Errors with install of Eclipse
Just in case anyone is having problems with the install, I actually wrote an automated installer for my own team. It needs the x86 JDK to be installed, cause it's the 32 bit version of Eclipse for now, but it should get you the up and running at least.
http://botsmiths.org/index.php/botne...auto-installer |
|
#15
|
|||
|
|||
|
Re: Errors with install of Eclipse
Any word on this? I've installed Eclipse and the FRC Toolchain but I'm still getting the g++ and gcc not found in PATH error. It's added to my PATH. I've tried setting defaults, and everything listed in that stackoverflow thread. Still getting the same error.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|