View Single Post
  #6   Spotlight this post!  
Unread 12-02-2011, 11:54
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
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" 
make[1]: Entering directory `/home/wiredcats/code/Wiredcats2011/PPC603gnu'
make[1]: *** No rule to make target `Makefile'.  Stop.
make[1]: Leaving directory `/home/wiredcats/code/Wiredcats2011/PPC603gnu'
make: *** [Makefile] Error 2
My quick hack replaced the Makefile with this:

Code:
#UCPP makefile

# For the default target, use the WindRiver makefile
all: force
        cd PPC603gnu && exec $(MAKE) -f Makefile_linux

# TODO: insert targets that download gcc and WPIlib

# For all other targets, use the WindRiver makefile
deploy: force
        cd PPC603gnu && exec $(MAKE) -f Makefile_linux deploy 

force: ;
Everything works as expected in terms of building/deploying (or at least, it appears it does. I haven't tested it on a cRIO yet). But of course, it isn't ideal as it only lets me use the "deploy" target. I'm not too proficient in make, so I'm not positive as to how to fix it myself.

I'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.
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.