Go to Post We can't all be Dean. But with the right attitude and preparation, we can make careers out of our passions. - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 19 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 01-04-2015, 10:11 AM
DarthCoder DarthCoder is offline
Registered User
FRC #4309
 
Join Date: Aug 2012
Location: Washington
Posts: 37
DarthCoder is an unknown quantity at this point
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?
  #2   Spotlight this post!  
Unread 01-04-2015, 10:43 AM
nandeeka's Avatar
nandeeka nandeeka is offline
Registered User
FRC #1868
Team Role: Programmer
 
Join Date: May 2014
Rookie Year: 2013
Location: United States
Posts: 53
nandeeka is on a distinguished road
Re: Errors with install of Eclipse

Try looking at this stackoverflow thread.
  #3   Spotlight this post!  
Unread 01-04-2015, 10:49 AM
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: Errors with install of Eclipse

you need to add the g++ compiler to the PATH
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
  #4   Spotlight this post!  
Unread 01-04-2015, 11:01 AM
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
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   Spotlight this post!  
Unread 01-04-2015, 11:53 AM
DarthCoder DarthCoder is offline
Registered User
FRC #4309
 
Join Date: Aug 2012
Location: Washington
Posts: 37
DarthCoder is an unknown quantity at this point
Re: Errors with install of Eclipse

All right. It works now. Thanks for the help!
  #6   Spotlight this post!  
Unread 01-04-2015, 03:02 PM
DavisC DavisC is offline
Registered User
FRC #0539 (Titans)
Team Role: College Student
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Virginia
Posts: 200
DavisC is just really niceDavisC is just really niceDavisC is just really niceDavisC is just really nice
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!
__________________
FRC Team 539
Student Member: 2010 Breakaway - 2014 Aerial Assist
Mentor: 2015 Recycle Rush - present
  #7   Spotlight this post!  
Unread 01-04-2015, 05:39 PM
djdesjardins djdesjardins is offline
Registered User
FRC #2451
 
Join Date: Jan 2015
Location: Batavia
Posts: 1
djdesjardins is an unknown quantity at this point
Re: Errors with install of Eclipse

Tried both suggestions posted here, still getting same error. Anyone fix this in another way?
  #8   Spotlight this post!  
Unread 01-04-2015, 06:13 PM
DarthCoder DarthCoder is offline
Registered User
FRC #4309
 
Join Date: Aug 2012
Location: Washington
Posts: 37
DarthCoder is an unknown quantity at this point
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   Spotlight this post!  
Unread 01-04-2015, 07:14 PM
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
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   Spotlight this post!  
Unread 01-04-2015, 07:56 PM
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
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.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #11   Spotlight this post!  
Unread 01-05-2015, 12:02 AM
lbarello lbarello is offline
Registered User
None #0492
 
Join Date: Jan 2015
Location: Seattle
Posts: 1
lbarello is an unknown quantity at this point
Re: Errors with install of Eclipse

Quote:
Originally Posted by DarthCoder View Post
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?
Somewhere in settings you need to tell Eclipse that the tool path is "c:\frc\bin" (or put it on the path). Once I added that I was able to build a sample robot.

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   Spotlight this post!  
Unread 01-05-2015, 07:50 AM
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Errors with install of Eclipse

Quote:
Originally Posted by lbarello View Post
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.
That warning is expected and can be safely ignored per this page: http://wpilib.screenstepslive.com/s/...to-the-roborio
  #13   Spotlight this post!  
Unread 01-05-2015, 03:21 PM
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
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   Spotlight this post!  
Unread 01-05-2015, 04:30 PM
DarthCoder DarthCoder is offline
Registered User
FRC #4309
 
Join Date: Aug 2012
Location: Washington
Posts: 37
DarthCoder is an unknown quantity at this point
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   Spotlight this post!  
Unread 01-06-2015, 08:18 PM
WhipeeDip WhipeeDip is offline
Programmer
AKA: Elliot
FRC #4139 (Easy as Pi)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: San Diego, CA
Posts: 3
WhipeeDip is an unknown quantity at this point
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:13 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi