Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   C++ Robot Programming in CMake/CLion (http://www.chiefdelphi.com/forums/showthread.php?t=149450)

alexboz 15-07-2016 03:53

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?

wireties 15-07-2016 07:43

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/

connor.worley 06-10-2016 05:59

Re: C++ Robot Programming in CMake/CLion
 
We have been working on exactly this:

https://github.com/Team5499/frc-cpp-project-skeleton


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

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