|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: I want a version of the mplab compiler for Linux.
Bump.
Quote:
|
|
#17
|
|||
|
|||
|
Re: I want a version of the mplab compiler for Linux.
Quote:
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. Last edited by Goldeye : 04-02-2006 at 20:27. Reason: added the [/b] to the quote |
|
#18
|
|||
|
|||
|
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. Last edited by tux : 07-10-2006 at 14:01. |
|
#19
|
|||
|
|||
|
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. Last edited by tux : 07-10-2006 at 15:13. |
|
#20
|
|||
|
|||
|
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.
|
|
#21
|
|||
|
|||
|
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?
|
|
#22
|
|||
|
|||
|
Re: I want a version of the mplab compiler for Linux.
Quote:
|
|
#23
|
|||
|
|||
|
Re: I want a version of the mplab compiler for Linux.
Things hosted on adambotslive are gone.
|
|
#24
|
|||
|
|||
|
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. |
|
#25
|
||||
|
||||
|
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. |
|
#26
|
|||
|
|||
|
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] |
|
#27
|
|||
|
|||
|
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
OpenADC( ADC_FOSC_RC & ADC_RIGHT_JUST & ADC_0_TAD, ADC_channel & ADC_INT_OFF & ADC_VREFPLUS_VDD & ADC_VREFMINUS_VSS,15); Last edited by meatmanek : 20-02-2007 at 15:40. Reason: Added lines that are erring. |
|
#28
|
|||
|
|||
|
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. |
|
#29
|
|||||
|
|||||
|
Re: I want a version of the mplab compiler for Linux.
Quote:
Why? We have no source. Unless someone wants to convince Microchip that there is a legitimate market for a linux compiler. |
|
#30
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MPLAB C18 problem | Justyn | Programming | 0 | 09-03-2005 11:37 |
| IMPORTANT regarding the new C Compiler | dlavery | General Forum | 12 | 14-01-2005 05:05 |
| Makefile and stripped down compiler | Venkatesh | Programming | 0 | 09-01-2005 18:55 |
| MPLAB IDE 6.60 Error | mchan1111 | Programming | 8 | 08-11-2004 20:17 |
| using the MPLAB IDE MPLAB SIM simulator | WizardOfAz | Programming | 1 | 03-11-2003 01:24 |