Go to Post I wouldn't need a bullet proof vest I would need bullet proof shorts. - rees2001 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2008, 15:31
neutrino15's Avatar
neutrino15 neutrino15 is offline
plɹoʍ ollǝɥ
AKA: Jordan Perr
FRC #0694 (Stuypulse)
 
Join Date: Feb 2007
Rookie Year: 2007
Location: New York City
Posts: 162
neutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really nice
Makefile Errors

Hello Awesome Programmers:

I was trying to get the adambots configure.py script to work with a mac once and for all last night, and was up 'till 3 or so trying to debug this one error. I installed MCC18 in wine, set my path variable. I installed GAWK via fink (a darwin ports thing) and set my path accordingly. I then modified the configure.py script so that it matched the proper commands needed. The python script executes marvelously, and it makes a proper makefile. I plan on releasing this on CD when I am finished, However, when I executed the makefile, i got this:

Code:
-e Compiling adc.o...
-e 1.   Checking Dependencies for adc.o
i686-apple-darwin9-gcc-4.0.1: c: No such file or directory
make: *** [adc.o] Error 1
Now, neither ADC.c nor ADC.h is requiring anything called "c:"
The line of makefile that is causing this is the line that forces cpp to look for dependencies that MCC18 apparently uses to compile. Here is the line:

Code:
@cpp -nostdinc -isystem $(INCLUDE_PATH) -D __$(PIC) -M -MP ./$< -MF .deps/$*.deps
The $(INCLUDE_PATH) seems to be whats messing it up, but when I tried to echo include path, i got:

Code:
/Users/jordanperr/.wine/drive_c/MCC18/h
(which is correct)
For your information, the definitions at the top of the Makefile are below:
Code:
MCC18=wine mcc18.exe
PIC=18F8722
LIBNAME=FRC_library.lib
ARGS=-D_FRC_BOARD -w3 pa=3
LINKER=wine mplink
MP2HEX=wine mp2hex
IFILOAD=wine picloader
SERIAL_DEV=/dev/ttyS0
READLOG=./read.log
LIB_PATH=/Users/jordanperr/.wine/drive_c/MCC18/lib
CODE_PATH=Z:\\Users\\jordanperr\\Documents\\School\\Robotics\\FRC\\2008\\code\\
INCLUDE_PATH=/Users/jordanperr/.wine/drive_c/MCC18/h
INCLUDE_PATHW=C:\\MCC18\\h
ALL_TARGETS=adc.o gyro.o ifi_startup.o ifi_utilities.o main.o point_drive.o serial_ports.o user_routines.o user_routines_fast.o 
INCLUDE_FILES=adc.h delays.h gyro.h ifi_aliases.h ifi_default.h ifi_utilities.h point_drive.h serial_ports.h user_routines.h

Last edited by neutrino15 : 29-01-2008 at 15:43.
  #2   Spotlight this post!  
Unread 29-01-2008, 15:45
neutrino15's Avatar
neutrino15 neutrino15 is offline
plɹoʍ ollǝɥ
AKA: Jordan Perr
FRC #0694 (Stuypulse)
 
Join Date: Feb 2007
Rookie Year: 2007
Location: New York City
Posts: 162
neutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really nice
Re: Makefile Errors

Ok, I think I am on to something. The makefile is not creating any .o object files to begin with. So it makes sense that CPP is having trouble. I will try and fix this tonite. Got a dentist's appointment in like, 15 minutes and the office is a good 30 minutes away, so gahh..
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code::Blocks IDE interface (Tutorial/Makefile) Cjmovie Programming 8 25-01-2008 02:18
Makefile fauxnominal Programming 10 21-01-2007 18:16
Makefile and stripped down compiler Venkatesh Programming 0 09-01-2005 18:55
Adambots-Live Linux Makefile -- version 0.1 RELEASE jdong Programming 4 17-11-2004 18:41
Makefile for programming under Windows with cygwin wun Programming 17 20-09-2004 00:44


All times are GMT -5. The time now is 17:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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