|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Code without Eclipse!
Do you, like me, have an irrational aversion to IDEs? Do you just want to stick to your gedit, vi, or nano? Well, never fear, I have come to the rescue! After a few hours of digging through the Eclipse plugins and the FRC toolchain, I have created something to replace Eclipse: a makefile. Simply head over to https://github.com/brpylko/FRCMakeProject, download the repository as a zip archive, and you're ready to start coding. I've tried this on Ubuntu, but it should work on all Linux distros. I have no idea if it will work on Mac OS, but I'm sure it won't work on Windows. If you have any problems/suggestions, open an issue on GitHub.
|
|
#2
|
||||
|
||||
|
Re: Code without Eclipse!
Quote:
arm-frc-linux-gnueabi-g++ -I${HOME}/wpilib/cpp/current/include file.cpp -o file.o and link with arm-frc-linux-gnueabi-g++ -L${HOME}/wpilib/cpp/current/lib -lwpi files.o -o FRCUserProgram There is even a CMake toolchain file distributed with the ubuntu toolchains in the package frcmake (nothing prevents it from being distributed with windows and mac but that would require re-building the toolchains, while ubuntu it was a single package addition): https://bitbucket.org/byteit101/tool...ake?at=default Note it doesn't have a deploy target but I'll gladly accept pull requests. |
|
#3
|
|||
|
|||
|
Re: Code without Eclipse!
I don't really have any experience with CMake, that's why I wrote a makefile. If I have time I'll learn and submit a pull request with deploy capabilities.
So does the FRC toolchain just use the armel gcc with links to NI libraries? I haven't delved deep into gcc before but that's what it looked like when I was browsing your repository. |
|
#4
|
||||
|
||||
|
Re: Code without Eclipse!
Quote:
Quote:
|
|
#5
|
|||
|
|||
|
Re: Code without Eclipse!
Quote:
So the roboRIO supports C++14? I'll have to update my makefile accordingly if so. |
|
#6
|
||||
|
||||
|
Re: Code without Eclipse!
Quote:
|
|
#7
|
|||
|
|||
|
Re: Code without Eclipse!
That's awesome! So for a novice person to the in-depths of the roboRIO, how would you "deploy" it? Just ssh into it and replace the image with the one generated?
|
|
#8
|
|||
|
|||
|
Re: Code without Eclipse!
Quote:
You might also be able to just use ant to call that script, as I'm not sure how make does with ssh and scp. |
|
#9
|
|||
|
|||
|
Re: Code without Eclipse!
Yeah, that's what I meant
.I also just remembered: what does the "-t" option for the robot kill script actually do? I know it says something like start the program as a text program, but I don't know what that means. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|