It is currently Thu Dec 14, 2017 10:48 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Feb 25, 2010 4:38 pm 
Offline
User avatar

Joined: Mon Jun 15, 2009 6:55 pm
Posts: 79
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

_________________
Image


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 26, 2010 11:03 pm 
Offline

Joined: Thu Mar 12, 2009 11:19 pm
Posts: 6
The way to compile things is this:

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


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 01, 2010 10:34 pm 
Offline
User avatar

Joined: Mon Jun 15, 2009 6:55 pm
Posts: 79
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 03, 2010 3:35 pm 
Offline
User avatar

Joined: Mon Jun 15, 2009 6:55 pm
Posts: 79
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group