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)

Goldeye 04-02-2006 18:58

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

Quote:

Originally Posted by psquared89
Sorry about the delay guys. I'm at Siemens (our build site) with the beloved John Dong right now, we've updated the configure.py script for the '06 stuff.

Put http://adambots.gotdns.com/adambots-...o/configure.py in your project folder, then run it with "python configure.py" to generate Makefiles. Re-run it every time you add/remove c/h files from the project.

Where can I find this now?

Goldeye 04-02-2006 20:26

Re: I want a version of the mplab compiler for Linux.
 
1 Attachment(s)
Quote:

Originally Posted by jdong
Ok, Three things:

(1) you should link mcc18-traditional to mcc18-traditional.exe using the command ln -sf /opt/mcc18/bin/mcc18-traditional.exe /opt/mcc18/bin/mcc18-traditional. This procedure must be repeated for cpp18 and _mplink.

(3) Get the MCC wrapper scripts:
http://adambots.gotdns.com/adambots-...s/mcc-wrapper/

An RPM is available for RPM users; else just copy the three scripts to /usr/local/bin, making sure that they are chmodded +x


Nevermind. I managed to fix it. Working configure.py attached. Do the above stuff (part 2 was excluded) to get it working. I made it compatible with both RCs, and also made it `make clean` when you run the configure. That can be disabled if you have a slow computer. Set CLEAN near the top to False.

Run ./configure.py old to make it build for the old rc.
Run ./configure.py alltimers to use FRC_alltimers.lib.
You can mix both for the expected effect.

I can't test upload till morning though.

tux 07-10-2006 11:49

Re: I want a version of the mplab compiler for Linux.
 
This link is dead:
http://adambots.gotdns.com/adambots-...o/configure.py

But I found this one...
http://adambots.gotdns.com/adambots-...k/configure.py

Ahh.. never mind. I see now that you posted a link to the updated version.

tux 07-10-2006 14:13

Re: I want a version of the mplab compiler for Linux.
 
I was getting an error while linking ...

Error - could not find definition of symbol 'Serial_Char_Callback' in file './user_SerialDrv.o'.


But I figured out that the function had been deleted from user_routines_fast.c

It is compiling and linking just fine now.

Don Reid 10-10-2006 00:46

Re: Wine version
 
We found that mcc18 doesn't work with recent versions of wine. One of the changes made between 0.9.18 and 0.9.19 seems to be the culprit. So you may want to stay with 0.9.18 or older.

114Klutz 26-10-2006 18:09

Re: I want a version of the mplab compiler for Linux.
 
Does 0.9.23 work well? Or does that one also have similar problems?

Don Reid 27-10-2006 13:47

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

Originally Posted by 114Klutz
Does 0.9.23 work well? Or does that one also have similar problems?

I don't think we have tried it yet.

meatmanek 18-02-2007 23:50

Re: I want a version of the mplab compiler for Linux.
 
Things hosted on adambotslive are gone.

bagawk 19-02-2007 00:42

Re: I want a version of the mplab compiler for Linux.
 
We have a makefile that originally was made by that script and has been heavily modified. Grab it here: http://www.chsrobotics.com/files/Makefile

It should be fairly self-explanatory.

ScottWalls 20-02-2007 06:46

Re: I want a version of the mplab compiler for Linux.
 
We have moved all of hour hosting. You can find everything (with Bazaar) at...
http://adambots.gotdns.com/bzr/mcc-wrapper/

Thank you all and keep on trucking.

meatmanek 20-02-2007 14:29

Re: I want a version of the mplab compiler for Linux.
 
I got configure.py and mcc-wrapper from adambots' bzr server. I copied mcc18 from our team's programming laptop, and put it into /opt/mcc18. I made symbolic links according to the suggestion earlier in this thread. I edited /opt/mcc18/h/p18cxxx.h. I ran configure.py, and when I run make, I get this error:

[code][Compiling ifi_utilities.o...
1. Checking Dependencies for ifi_utilities.o
2. Launching Compiler...
A thought to keep you occupied: /bin/sh: /usr/games/fortune: No such file or directory
Fortune not found.
Microchip MCC C18 Compiler
Version 0.0+SVN20050725
DEBUG:Using wine /opt/mcc18//bin/mcc18-traditional -p=18F8520 -fo ifi_utilities.o ifi_utilities.c /i"Z:\opt\mcc18\h" -D_FRC_BOARD -w3 pa=3 -O+ -nw=2066 -mL to launch MCC18
fixme:msvcrt:_spawnve only trying .exe when no extension given
Z:\home\meatmanek\techhounds\svn\test\ifi_utilitie s.c:0:Error: syntax error


Traceback (most recent call last):
File "/usr/local/bin/mcc18", line 49, in ?
raise Exception,"Compile FAILED"
Exception: Compile FAILED
make: *** [ifi_utilities.o] Error 1
/CODE]

meatmanek 20-02-2007 15:37

Re: I want a version of the mplab compiler for Linux.
 
Figured out my previous problem. Wine 0.9.22 has problems, so I updated to 0.9.29. Now I get a new error:

Code:

Compiling ifi_utilities.o...
1.  Checking Dependencies for ifi_utilities.o
2.  Launching Compiler...
A thought to keep you occupied:  /bin/sh: /usr/games/fortune: No such file or directory
Fortune not found.
        Microchip MCC C18 Compiler
        Version 0.0+SVN20050725
DEBUG:Using wine /opt/mcc18//bin/mcc18-traditional -p=18F8520 -fo ifi_utilities.o ifi_utilities.c /i"Z:\opt\mcc18\h" -D_FRC_BOARD -w3 pa=3 -O+ -nw=2066 -mL  to launch MCC18
fixme:msvcrt:_spawnve only trying .exe when no extension given
Z:\home\meatmanek\techhounds\svn\test\ifi_utilities.c:104:Message [3002] comparison of a signed integer to an unsigned integer detected

Z:\home\meatmanek\techhounds\svn\test\ifi_utilities.c:128:Message [3002] comparison of a signed integer to an unsigned integer detected

Z:\home\meatmanek\techhounds\svn\test\ifi_utilities.c:206:Error [1105] symbol 'ADC_0_TAD' has not been defined

Z:\home\meatmanek\techhounds\svn\test\ifi_utilities.c:207:Error [1204] too many arguments in function call


Traceback (most recent call last):
  File "/usr/local/bin/mcc18", line 49, in ?
    raise Exception,"Compile FAILED"
Exception: Compile FAILED
make: *** [ifi_utilities.o] Error 1

Lines 206 and 207 are:
OpenADC( ADC_FOSC_RC & ADC_RIGHT_JUST & ADC_0_TAD,
ADC_channel & ADC_INT_OFF & ADC_VREFPLUS_VDD & ADC_VREFMINUS_VSS,15);

jdejoannis 20-02-2007 16:02

Re: I want a version of the mplab compiler for Linux.
 
Even by workaround standards, wine is a bad solution.

What are possibilities for a native linux port of only the C18 compiler? Perhaps there are volunteers who are willing to help.

Astronouth7303 21-02-2007 00:19

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

Originally Posted by jdejoannis (Post 582578)
What are possibilities for a native linux port of only the C18 compiler? Perhaps there are volunteers who are willing to help.

That wouldn't be a port. That would be a whole new compiler.

Why? We have no source.

Unless someone wants to convince Microchip that there is a legitimate market for a linux compiler.

meatmanek 21-02-2007 11:08

Re: I want a version of the mplab compiler for Linux.
 
If we're lucky, SDCC will get support for pic18 soon.

I don't see anything wrong with using wine, though. This is exactly what it's meant for - running windows programs on linux.


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