Go to Post If FIRST is going to succeed in its goals, then we need to help it. - jcatt [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 04-02-2006, 18:58
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
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?
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)
  #17   Spotlight this post!  
Unread 04-02-2006, 20:26
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
Re: I want a version of the mplab compiler for Linux.

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.
Attached Files
File Type: tgz configure.py.tgz (2.9 KB, 110 views)
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)

Last edited by Goldeye : 04-02-2006 at 20:27. Reason: added the [/b] to the quote
  #18   Spotlight this post!  
Unread 07-10-2006, 11:49
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
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   Spotlight this post!  
Unread 07-10-2006, 14:13
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
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   Spotlight this post!  
Unread 10-10-2006, 00:46
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
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.
__________________
Don Reid
  #21   Spotlight this post!  
Unread 26-10-2006, 18:09
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
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   Spotlight this post!  
Unread 27-10-2006, 13:47
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
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.
__________________
Don Reid
  #23   Spotlight this post!  
Unread 18-02-2007, 23:50
meatmanek meatmanek is offline
Programmer/physicist/mathematician
FRC #0868 (TechHounds)
Team Role: Programmer
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Carmel, Indiana
Posts: 142
meatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to behold
Re: I want a version of the mplab compiler for Linux.

Things hosted on adambotslive are gone.
  #24   Spotlight this post!  
Unread 19-02-2007, 00:42
bagawk bagawk is offline
Registered User
AKA: LeeP
FRC #0997 (Spartan Robotics)
Team Role: College Student
 
Join Date: Jan 2007
Rookie Year: 2005
Location: Oregon
Posts: 9
bagawk is an unknown quantity at this point
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   Spotlight this post!  
Unread 20-02-2007, 06:46
ScottWalls ScottWalls is offline
Registered User
FRC #0245 (AdamBots)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2003
Location: Rochester Hills
Posts: 31
ScottWalls will become famous soon enoughScottWalls will become famous soon enough
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   Spotlight this post!  
Unread 20-02-2007, 14:29
meatmanek meatmanek is offline
Programmer/physicist/mathematician
FRC #0868 (TechHounds)
Team Role: Programmer
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Carmel, Indiana
Posts: 142
meatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to behold
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   Spotlight this post!  
Unread 20-02-2007, 15:37
meatmanek meatmanek is offline
Programmer/physicist/mathematician
FRC #0868 (TechHounds)
Team Role: Programmer
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Carmel, Indiana
Posts: 142
meatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to behold
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);

Last edited by meatmanek : 20-02-2007 at 15:40. Reason: Added lines that are erring.
  #28   Spotlight this post!  
Unread 20-02-2007, 16:02
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
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   Spotlight this post!  
Unread 21-02-2007, 00:19
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: I want a version of the mplab compiler for Linux.

Quote:
Originally Posted by jdejoannis View Post
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.
  #30   Spotlight this post!  
Unread 21-02-2007, 11:08
meatmanek meatmanek is offline
Programmer/physicist/mathematician
FRC #0868 (TechHounds)
Team Role: Programmer
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Carmel, Indiana
Posts: 142
meatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to behold
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 17:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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