retrohackers.com
http://retrohackers.com/

cc65 and Contiki-2.4 Source
http://retrohackers.com/viewtopic.php?f=4&t=565
Page 1 of 1

Author:  mistermsk [ Thu Feb 25, 2010 4:38 pm ]
Post subject:  cc65 and Contiki-2.4 Source

Hey All,

Just seeing if anyone has tried compiling Contiki 2.4 with cc65? I used C back in the day with Circle MUD so a little rusty at it. Anyway, I don't see how to compile the Makefile. I worked on cc65 samples and can compile them fine with cl65. So, I tried coping all needed files into the webserver apps dir of contiki. Core, Correct Platform files, and the cpu (6502) files but still no dice. Seeing if anyone has compiled it before. I wanted to make some suddle changes to a few apps but I just need to be able to compile it first. :)

Thanks,
MisterMsk

Author:  asn [ Fri Feb 26, 2010 11:03 pm ]
Post subject:  Re: cc65 and Contiki-2.4 Source

The way to compile things is this:

cd contiki-2.4/examples/webserver
make TARGET=c64

Author:  mistermsk [ Mon Mar 01, 2010 10:34 pm ]
Post subject:  Re: cc65 and Contiki-2.4 Source

Thanks. I got Cygwin installed. Moved over the contiki folder to root on that, as well as the cc65 folder.

Question, though. It asks for CC65_HOME. I used:

make TARGET=c64 CC65_HOME=/cc65 but it still does not find the files.

I did a export PATH=$PATH:/cc65/bin so it can find the bin file. However, when I add the paths for the helper files it still can not find them. Know what I might of missed?
Code:
../../core/net/routing/rimeroute.c(44): Error: Include file `string.h' not fou

../../cpu/6502/./6502def.h(39): Error: Include file `ctype.h' not found
../../cpu/6502/./6502def.h(40): Error: Include file `conio.h' not found
../../cpu/6502/./6502def.h(41): Error: Include file `fcntl.h' not found
../../cpu/6502/./6502def.h(42): Error: Include file `stdio.h' not found
../../cpu/6502/./6502def.h(43): Error: Include file `stdint.h' not found
../../cpu/6502/./6502def.h(44): Error: Include file `unistd.h' not found
../../cpu/6502/./6502def.h(47): Error: `;' expected
../../cpu/6502/./6502def.h(47): Warning: Implicit `int' is an obsolete feature
../../cpu/6502/./6502def.h(48): Error: `;' expected
../../cpu/6502/./6502def.h(48): Warning: Implicit `int' is an obsolete feature
../../cpu/6502/./6502def.h(49): Error: `;' expected
../../cpu/6502/./6502def.h(49): Warning: Implicit `int' is an obsolete feature
../../cpu/6502/./6502def.h(50): Error: `;' expected
../../cpu/6502/./6502def.h(50): Fatal: Too many errors
make: *** [obj_c64/rimeroute.o] Error 255


Code:
 Directory of C:\cygwin\cc65\include

01/02/2010  10:24 PM             4,883 string.h

Author:  mistermsk [ Wed Mar 03, 2010 3:35 pm ]
Post subject:  Re: cc65 and Contiki-2.4 Source

Ok. I got it to compile by putting everything from the cc65 directory in the examples/webbrowser, etc... directories. I just back the directories up if I want to re-compile them again. I made another directory and put everything in it an copy it over to the example/webbrowser directory. I know, not the way it is suppose to be done but, it works.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/