View Single Post
  #2   Spotlight this post!  
Unread 07-15-2016, 07:43 AM
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