Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   I want a version of the mplab compiler for Linux. (http://www.chiefdelphi.com/forums/showthread.php?t=36377)

HighLife 24-12-2007 16:53

Re: I want a version of the mplab compiler for Linux.
 
Quote:

Originally Posted by whitetiger0990 (Post 663506)
Could that be the pathlength thing of mcc18? Make a drive letter point directly into your code (or put your code in /tmp for testing) and try it.

Nope that didn't work. :(

Mark McLeod 24-12-2007 17:37

Re: I want a version of the mplab compiler for Linux.
 
Quote:

Originally Posted by HighLife (Post 663396)
I'm getting this same exact error.

The error you are getting means the type of PIC hasn't been defined, so the ifi_utilities.c file can pick the proper system defines that match what the PIC has built into it.

Simply put, you are missing a compile flag (-D__18F8722).

bagawk 24-12-2007 17:39

Re: I want a version of the mplab compiler for Linux.
 
Could you try the makefile that I wrote? I have been using it for almost 3 years now with no problems.

http://team997.org/files/software/Makefile

HighLife 24-12-2007 18:15

Re: I want a version of the mplab compiler for Linux.
 
Nvm guys I reinstalled mcc18 and everything worked! But thx for the help

Mark McLeod 24-12-2007 18:25

Re: I want a version of the mplab compiler for Linux.
 
Quote:

Originally Posted by HighLife (Post 663531)
I must have missed something when I setup mcc18.

What version of mcc18 are you using? It looks like it might be the latest version 3.x when it should be v2.4.

HighLife 24-12-2007 23:52

Re: I want a version of the mplab compiler for Linux.
 
Umm not really sure it's an older version (At least 2004).

sea_master 15-03-2008 09:22

Re: I want a version of the mplab compiler for Linux.
 
Hi.
I'm trying to compile some new code on a Xubuntu Linux machine.
I've modified the relatively newer makefile in:
http://team997.org/files/software/Makefile
I've modified it according to my needs and it all seemed to work well,
until I tried to remove the intermediate files . when it tries to
complie the source files, it can't get the headers from the include
dir of mcc even tough the path seems right.
I've checked and the syntax used by the Makefile is /i <path> while
mmc18.exe expects -I="<path>".
I tried to change the makefile anyway I thought might work, but could
not get it to work, so I gave up and
I've made a script shell, and it works, but since I'm unfamiliar with
the tricks of Linux shell, it's butt ugly (with lot's of lines like
this: wine c:/mcc18/bin/mcc18.exe -p=18f8722 -I="c:\mcc18\h"
"ifi_frc.c" -fo="ifi_frc.o" -k -mL -Ou- -Ot- -Op- -Or--Od- -Opa-)
So please Chief Delphi! pimp my script!

HighLife 16-03-2008 22:54

Re: I want a version of the mplab compiler for Linux.
 
You don't have to create your own makefile. You can just use this little python program that creates one for you based on the files in your code directory.


All times are GMT -5. The time now is 18:07.

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