neutrino15
29-01-2008, 15:31
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. :eek: 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:
-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:
@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:
/Users/jordanperr/.wine/drive_c/MCC18/h
(which is correct)
For your information, the definitions at the top of the Makefile are below:
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
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. :eek: 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:
-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:
@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:
/Users/jordanperr/.wine/drive_c/MCC18/h
(which is correct)
For your information, the definitions at the top of the Makefile are below:
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