![]() |
Universal C++ Project - C++ programming for Linux, and more
While WindRiver provides an excellent programming environment, it is not suitable for everyone. The Universal C++ Project (UCPP) aims to provide development tools that allow programmers in different environments, such as Linux, Mac OSX, Eclipse, command line, and others. At the same time, we intend to remain compatible with WindRiver projects, allowing WindRiver and UCPP users to collaborate on projects.
Project Pages and Downloads: FIRST Forge project: http://firstforge.wpi.edu/sf/projects/ucpp Releases (zip files): 0.1+git20110208 Source code via git: https://github.com/nikitakit/ucpp Instructions for installing and using UCPP are in the readme file accompanying the source code. Platforms currently supported: Linux with WindRiver files -- Compile C++ code on Linux with a WindRiver installation (ideal for dual-boot systems with WindRiver installed on the Windows drive). There is a command line interface for generating Linux makefiles for a C++ project and runs WindRiver gcc under wine in order to compile the project. Linux without WindRiver files -- Same as above, except that the compiler, VxWorks, and WPIlib are automatically downloaded from the Internet Windows using the MSYSgit command line -- Still requires WindRiver to be installed, but if you prefer to use another IDE or text editor you can now compile and deploy code from the command line. Platforms coming soon... Windows/Cygwin command-line interface (this should be possible with just a minor bit of tweaking) MacOS X port of the Linux environment Cross-platform Eclipse IDE plugin (about half done) Explorer/Nautilus(/Finder?) right click build and deploy options Project Members: nikitakit byteit101 andreboos Special thanks to: AustinSchuh |
Re: Universal C++ Project - C++ programming for Linux, and more
Interesting, I'll be looking forward to this next year when we program in C++. (That is if we do)
|
Re: Universal C++ Project - C++ programming for Linux, and more
I'll definitely try this out tomorrow--cool stuff.
|
Re: Universal C++ Project - C++ programming for Linux, and more
Is there support for reading the target console output without NetConsole?
|
Re: Universal C++ Project - C++ programming for Linux, and more
Quote:
Code:
socat UDP4-RECV:6666 STDOUT |
Re: Universal C++ Project - C++ programming for Linux, and more
While playing around with it, the compiling appears to be working great. However, I am having a small problem with the Makefile in the root directory of the project. Using the default configuration, I get the following error when attempting to run make (I get the same output when running make deploy):
Code:
cd PPC603gnu && exec make -f Makefile_linux "Makefile" Code:
#UCPP makefileI'm running Ubuntu 10.04 with GNU Make 3.81 if it helps. I'm about to head to the shop, so I'll keep you posted on whether or not it successfully deploys and runs. |
Re: Universal C++ Project - C++ programming for Linux, and more
My best guess at what is happening is that "Makefile" is a default target of sorts, and it gets matched by the wildcards. For some reason, I don't have any problems on my machine. Maybe it's because I have a WindRiver makefile so the "Makefile" target is skipped instead of giving an error.
I think I've finally figured out how to fix it: Code:
#UCPP makefile |
Re: Universal C++ Project - C++ programming for Linux, and more
Quote:
|
Re: Universal C++ Project - C++ programming for Linux, and more
Quote:
|
Re: Universal C++ Project - C++ programming for Linux, and more
I keep all of my tasks in a separate folder in my root directory named Tasks. It looks like by default, UCPP is only looking for files in the root directory to add to the Makefile. Is there a way to add those files in the folder? I solved my own problem. I created a file named .ucppdirs in my root directory of the code, then edited ucpp_gen_makefile.py as such: Code:
# Find all the C++ files in the current directory |
Re: Universal C++ Project - C++ programming for Linux, and more
I managed to try this out today, and it worked flawlessly. Thanks guys!
|
Re: Universal C++ Project - C++ programming for Linux, and more
I found myself in need of the latest version of WPILib, and didn't want to go through the process of installing the update. So, I came up with a workaround. Here's some shell code that will get the latest version of WPILib. I present it here in the hopes that you will find it useful.
Code:
#!/bin/bash |
Re: Universal C++ Project - C++ programming for Linux, and more
Thank you everyone for your comments!
A quick update on the status of things: I only made a few minor changes in the past few weeks, hopefully I'll get around to making a new release by Monday. Major items on my to-do list: * Make the C++-file-finder recurse into subdirectories * Fix the problem with non-recent WPILib versions AustinSchuh, thank you for all of your comments. I still haven't gotten around to testing your version of gcc, but I'm definitely going to do that this weekend. Also, if anyone reading this thread uses Cygwin and feels like taking on a challenge: the Cygwin version of ucpp runs into some pretty nasty problems. If you can come up with some kind of fix I'd be very grateful. |
Re: Universal C++ Project - C++ programming for Linux, and more
Version 0.2 is now available for download
Key changes: * Cleaner commands: many arguments now have auto-detected default values, so there's less to type and remember * The default environment for linux is now gccdist. No manual WindRiver installation is required: just run "ucpp setup" and wait for it to download everything on its own. * On Linux, the latest WPILib is automatically downloaded using AustinSchuh's script. It doesn't have to be compiled manually because the WPILib update already comes with the compiled version * C++ files are searched for recursively |
Re: Universal C++ Project - C++ programming for Linux, and more
Ok, sounds like a stupid question, but does the debuggers and watches and breakpoints and ect work? Those are some very, very important tools that most people seem to overlook here.
|
| All times are GMT -5. The time now is 13:32. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi