Go to Post Elevator speeches too - everyone should have one. - Swan217 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 11-05-2015, 12:22
zehcorah zehcorah is offline
Registered User
AKA: Ryan French
FRC #4917 (Sir Lancer Bots)
Team Role: Mechanical
 
Join Date: May 2015
Rookie Year: 2014
Location: Elmira
Posts: 4
zehcorah is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

i followed the steps that you provided and im still getting cc1plus.exe has stopped working and the error
mingw32-make: ***[src/robot.o] Error 1
if you have any ideas on how to fix this i would greatly appreciate it
Reply With Quote
  #17   Spotlight this post!  
Unread 11-05-2015, 12:34
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: New tool for C++ Programming for old cRIOs

Quote:
Originally Posted by zehcorah View Post
i followed the steps that you provided and im still getting cc1plus.exe has stopped working and the error
mingw32-make: ***[src/robot.o] Error 1
if you have any ideas on how to fix this i would greatly appreciate it
Did you elect to move the workspace to a path without spaces, or did you try fixing the quoting issue in the settings?

If you didn't try moving the workspace yet and re-creating the project files (make a new project entirely in the new workspace, then re-import your sources to it), I would strongly suggest trying that. If that does not work, can you provide more details about your computer system and eclipse version?
Reply With Quote
  #18   Spotlight this post!  
Unread 12-05-2015, 09:18
zehcorah zehcorah is offline
Registered User
AKA: Ryan French
FRC #4917 (Sir Lancer Bots)
Team Role: Mechanical
 
Join Date: May 2015
Rookie Year: 2014
Location: Elmira
Posts: 4
zehcorah is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

I moved the work space and it got rid of that error now there is a error with START_ROBOT_CLASS (SimpleRobotDemo); we noted it out and the 3 errors went away. All 3 are semantic errors for the same line.
Reply With Quote
  #19   Spotlight this post!  
Unread 12-05-2015, 16:36
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 93
Crossle86 is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

I have an Eclipse Luna with only Java support installed. So I added the C++ CDT via "Install New Software" from the luna cdt site. Then I installed the tool chain. Then I installed the Thunder cRio Tools. This all appeared to work correctly.

When I try to create a C++ project, under the shared library folder, there is no "FRC cRio Binary" option as described in the documentation. Also, the tool chain does not appear in the right hand window (at least not that I can identify...there are tool chains listed but no FRC specific name) if it is supposed to.
Reply With Quote
  #20   Spotlight this post!  
Unread 13-05-2015, 08:24
zehcorah zehcorah is offline
Registered User
AKA: Ryan French
FRC #4917 (Sir Lancer Bots)
Team Role: Mechanical
 
Join Date: May 2015
Rookie Year: 2014
Location: Elmira
Posts: 4
zehcorah is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

Quote:
Originally Posted by Crossle86 View Post
I have an Eclipse Luna with only Java support installed. So I added the C++ CDT via "Install New Software" from the luna cdt site. Then I installed the tool chain. Then I installed the Thunder cRio Tools. This all appeared to work correctly.

When I try to create a C++ project, under the shared library folder, there is no "FRC cRio Binary" option as described in the documentation. Also, the tool chain does not appear in the right hand window (at least not that I can identify...there are tool chains listed but no FRC specific name) if it is supposed to.
Do you have JDK installed? if not then install that and also make sure you read and follow the instructions given on the website carefully. i had the same issue and uninstalling everything and re doing it fixed it for me.
Reply With Quote
  #21   Spotlight this post!  
Unread 13-05-2015, 16:23
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 93
Crossle86 is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

Yes, JDK 1.8 is installed. I found that if I look in Windows/Preferences/C++/New Project Wizard settings, I can see FRC cRio listed as a project type and the Thunder Rio tool chain is shown. I set this project type as the default.

However, when I try to create a new C++ project, the FRC cRio project type is not offered.

I have reinstalled the tool chain, the plugin, the C++ CDT with no apparent problems but I still can't create a new C++ project as described by the documentation.
Reply With Quote
  #22   Spotlight this post!  
Unread 13-05-2015, 17:54
MultipleMono's Avatar
MultipleMono MultipleMono is offline
Programmer & IT Guy
FRC #3128 (Aluminum Narwhals)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2013
Location: San Diego
Posts: 7
MultipleMono is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

If you're not seeing the library configuration under shared libraries, than then Eclipse is not detecting the toolchain. There is a checkbox on that dialog which causes it to show all possible configurations. Check that and it should work.
Reply With Quote
  #23   Spotlight this post!  
Unread 13-05-2015, 19:47
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 93
Crossle86 is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

On luna, the box says "show project types and chains only if supported on the platform". If this box is checked, shared library does not show up. If I uncheck this box, shared library shows up, but the FRC cRIO Binary project and thunder toolchain do not show as options.

Again, I see FRC cRIO Binary and toolchain in the preferences settings for New C++ Project Wizard.

Since I started with Java only Eclipse, and added the CDT afterwards, I only installed the basic CDT components. Maybe there is something on the optional CDT components list that I need to make this work...?...
Reply With Quote
  #24   Spotlight this post!  
Unread 14-05-2015, 15:38
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 93
Crossle86 is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

Good news. I found the problem. When I added the C++ CDT to my existing Eclipse Java setup, I forgot to install the FRC C++ tools plug in. Thought I had done that but turns out not. All seems to be working for now.
Reply With Quote
  #25   Spotlight this post!  
Unread 15-05-2015, 16:44
MultipleMono's Avatar
MultipleMono MultipleMono is offline
Programmer & IT Guy
FRC #3128 (Aluminum Narwhals)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2013
Location: San Diego
Posts: 7
MultipleMono is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

Oddly enough, this plugin worked fine for me without the FRC C++ plugin installed. I do have the Java one though.

I had a different problem, though. At first, I had issues with make, but I set it to use the internal builder by default, and it worked fine.

Moreover, the commands that it tried to run as a post-build step (the ones that make, build, and link the constructors and destructors file) failed on the first step. It seems like eclipse was not honoring the pipe characters. I suspect that there may have been an issue with me having Git's included posix tools in my path, but thought that I tried removing them and it still failed. Then, I noticed that Eclipse seemed to be putting backslashes in front of every double quote.

So, I tried executing the commands one-by-one in cmd, removing the backslashes, and they worked fine. I then moved them into a batch file, and they kept working fine. I then set it so that eclipse executed the batch file as a post-build step.

The batch file is here.

Did anyone else have this problem?
Reply With Quote
  #26   Spotlight this post!  
Unread 28-05-2015, 18:14
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: New tool for C++ Programming for old cRIOs

Quote:
Originally Posted by Crossle86 View Post
Good news. I found the problem. When I added the C++ CDT to my existing Eclipse Java setup, I forgot to install the FRC C++ tools plug in. Thought I had done that but turns out not. All seems to be working for now.
When you say "FRC C++ Tools Plugin" do you mean the 2015 FRC C++ plug-ins from WPI? If so, there should be no requirement to have those.... I just tested it here on a clean Eclipse Luna (C++ CDT) and with only Thunder cRIO Tools installed, the example robot.cpp compiles and links properly. I suspect you may have missed parts of CDT when you installed the base eclipse C++ stuff into your Java-only Eclipse, and something in the WPI FRC C++ plugins pulled those parts in. Perhaps we are missing some dependency declarations in the Thunder cRIO plugins; I'll take a look at that in the future if I have time.

In either event, I'm glad you got it working.

For anyone reading the thread and planning to install Thunder cRIO tools, please be sure you are using the CDT-capable eclipse in the first place as described on the installation Wiki page. It will save you a lot of time and frustration.

Last edited by heydowns : 28-05-2015 at 18:34. Reason: Reflect experience trying it myself
Reply With Quote
  #27   Spotlight this post!  
Unread 28-05-2015, 18:29
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: New tool for C++ Programming for old cRIOs

Quote:
Originally Posted by MultipleMono View Post
I had a different problem, though. At first, I had issues with make, but I set it to use the internal builder by default, and it worked fine.
Can you elaborate? See below for why.

Quote:
Moreover, the commands that it tried to run as a post-build step (the ones that make, build, and link the constructors and destructors file) failed on the first step. It seems like eclipse was not honoring the pipe characters. I suspect that there may have been an issue with me having Git's included posix tools in my path, but thought that I tried removing them and it still failed. Then, I noticed that Eclipse seemed to be putting backslashes in front of every double quote.
This is because you swapped to the Internal Builder (I just replicated it here by changing to internal builder from Thunder cRIO Tools builder on a working project, seeing it fail in this manner, then changing it back and seeing it work again).

If you can elaborate on the problem with the Thunder cRIO Tools builder I can look into it.
Reply With Quote
  #28   Spotlight this post!  
Unread 02-06-2015, 14:13
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 93
Crossle86 is an unknown quantity at this point
Re: New tool for C++ Programming for old cRIOs

Quote:
Originally Posted by heydowns View Post
When you say "FRC C++ Tools Plugin" do you mean the 2015 FRC C++ plug-ins from WPI? If so, there should be no requirement to have those.... I just tested it here on a clean Eclipse Luna (C++ CDT) and with only Thunder cRIO Tools installed, the example robot.cpp compiles and links properly. I suspect you may have missed parts of CDT when you installed the base eclipse C++ stuff into your Java-only Eclipse, and something in the WPI FRC C++ plugins pulled those parts in. Perhaps we are missing some dependency declarations in the Thunder cRIO plugins; I'll take a look at that in the future if I have time.

In either event, I'm glad you got it working.

For anyone reading the thread and planning to install Thunder cRIO tools, please be sure you are using the CDT-capable eclipse in the first place as described on the installation Wiki page. It will save you a lot of time and frustration.
Yes, the FRC C++ tools. Would not work and after I added the C++ tools, it worked. All seems good except for the two errors that appear whenever I open a project: g++ not found in Path and gcc not found in path. Been all over the net looking at this issue and tried all kinds of fixes with no joy. It all seems to work so been ignoring those errors...but if you have a solution that would be nice.
Reply With Quote
  #29   Spotlight this post!  
Unread 02-06-2015, 15:07
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: New tool for C++ Programming for old cRIOs

Quote:
Originally Posted by Crossle86 View Post
Yes, the FRC C++ tools. Would not work and after I added the C++ tools, it worked. All seems good except for the two errors that appear whenever I open a project: g++ not found in Path and gcc not found in path. Been all over the net looking at this issue and tried all kinds of fixes with no joy. It all seems to work so been ignoring those errors...but if you have a solution that would be nice.
Right. Those should not impact anything, except being slightly obnoxious.
They stem from the way the project is built up where Eclipse's build system tries (too) early to build the project, before the project has been fully configured internally with the toolset (which never invokes g++/gcc by those names). The error is recorded and never cleared.

The toolset does attempt to clear out those errors and force an initial build when the project has completed all configuration though and in all my tests this works here (you'll see the error briefly upon creation of a new project, then it will go away as soon as the rebuild is done, about 20 seconds later on my personal and all our school machines).

You should be able to select those errors in the list, right click, and delete them and they should not reappear.


Also whilst I am here - we have not forgotten about the "space in workspace path" problem noted earlier in the thread. Just have not had time yet to address it.
Reply With Quote
  #30   Spotlight this post!  
Unread 15-06-2015, 17:13
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 503
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: New tool for C++ Programming for old cRIOs

My team and I were trying to use this today and when we went to download the code to the robot it said binary files not found any suggestions?
Reply With Quote
Reply


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 13:34.

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