Go to Post FIRST teams do not allow other FIRST teams to fail. - [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-07-2016, 03:53
alexboz alexboz is offline
Registered User
FRC #0358 (Robotic Eagles)
Team Role: Programmer
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Hauppauge, NY
Posts: 2
alexboz is an unknown quantity at this point
C++ Robot Programming in CMake/CLion

I would like to program in C++ this year, but I don't like eclipse. Last year I used IntelliJ IDEA and Java and that worked great. This year I want to use CLion which uses CMake. How would I go about setting up CMake to build and deploy code to the robot? Has anyone done something like this before?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-07-2016, 07:43
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: C++ Robot Programming in CMake/CLion

I've not used CLion but have no doubt it will work if ...

You can tell it the name and location of the cross compiler.
You can tell it where to find the WPI library to link against.
You can tell it where to find the WPI headers to compile against.

CMake is just another rules engine. Teach it how to generate a .o file from a .c file, a .out file from a C++ file and an ELF executable file with the linker. It should work.

CLion supports gcc and gdb. Check this out ...

https://youtrack.jetbrains.com/issue/CPP-871

https://dev.widemeadows.de/2015/02/1...ap-on-windows/
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #3   Spotlight this post!  
Unread 06-10-2016, 05:59
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 595
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: C++ Robot Programming in CMake/CLion

We have been working on exactly this:

https://github.com/Team5499/frc-cpp-project-skeleton
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
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 10:04.

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