Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   using eclipse (http://www.chiefdelphi.com/forums/showthread.php?t=37736)

prograid 08-06-2005 23:54

Re: using eclipse
 
Quote:

Originally Posted by dasRatsel
yea -- nothin -- did i forget to set some variable to tell it to make the output file or something?

linker output:
Code:

Building target: FRCfalcon.hex
mplink /Files/FIRST/code/falcon/18f8520user.lkr /aINHX32 /o FRCfalcon.hex encoder.o gyro.o ifi_startup.o ifi_utilities.o main.o pid.o printf_lib.o robot.o user_routines.o user_routines_fast.o  /l/opt/mcc18/lib /Files/FIRST/code/falcon/FRC_alltimers.lib
WARNING: Cannot find /etc/mcc-wrapper/mplink.conf. Run mcc-setup
Microchip Linker
Linux WINE wrapper version CVS-HEAD
Copyright (c) 2004 Adambots-Live
http://adambots-live.sourceforge.net


Do you think that you could post a screen shot of Eclipse after it has done building? Expand all the folders in your project under the C/C++ Projects column.

Quote:

Originally Posted by dasRastel
(oh yea -- is there a way to supress those things that say compiling -- they're just junking up the output window to the point where i cant read the outputs from the compiler 'n' linker)

I'm not sure if you're asking about this, but try this:
Go to the project menu and select properties. Go to C/C++ Build and selct miscellaneous under C18 Compiler. Uncheck verbose output.

By the way, compiler (not linker) errors and warnings should show up at the bottom of of the screen under the problems tab. If it doesn't click on the little button at the right that has an arrow on it. A window saying filters should show up. Make sure that C/C++ Problems is checked.

dasRatsel 11-06-2005 11:40

Re: using eclipse
 
hmmm -- sry -- i dont really know how to take screenshots w/ KDE ... but here's what i got:
FRC Debug
|-> all *.o files
|-> makefile
|-> objects.mk
|-> source.mk
|-> subdir.mk

.cdtbuild
.cdtproject
.project
18f8520user.lkr
all *.h files
all *.c files
FRC_altimers.lib
FTC_library.lib
README.txt

i went into windows land and successfully compiled -- but at the end of the windows output there was the output for the mp2hex program -- i dont get that in linux -- i'm guessing thats my problem -- but why doesnt the linux build run that program?

tux 11-06-2005 14:22

Re: using eclipse
 
> hmmm -- sry -- i dont really know how to take screenshots w/ KDE ...

ctrl-print for a desktop screenshot
alt-print for a window screenshot

(of course you then need to paste in to some program that knows how to accept that clipboard item. Something like kword works nicely)

Or, if you want to use a program, you can use GIMP or KSnapshot to take your screenshots.


Regarding the verbose output. I rewrote the adambots Makefile to be much quieter (see previous post for link) but of course I am not using eclipse, so I think it is a different issue.

dasRatsel 11-06-2005 18:34

Re: using eclipse
 
1 Attachment(s)
here's the shot (in 2 parts)

prograid 11-06-2005 19:21

Re: using eclipse
 
Quote:

Originally Posted by tux
Regarding the verbose output. I rewrote the adambots Makefile to be much quieter (see previous post for link) but of course I am not using eclipse, so I think it is a different issue.

Just to let you know, the plugin he's using automatically generates a makefile to be used with Microchip's software. I'm thinking the problem might have something to do with Windows' directory structure and its difference from Linux. I'll make a few changes to the plugin for Linux and post it in a bit.

prograid 11-06-2005 19:31

Re: using eclipse
 
Do you think that you could give me the exact path of of the header files and libraries included with the C18 compiler? It'll help with altering the plugin for linux.

Thanks,
Ben

dasRatsel 11-06-2005 20:58

Re: using eclipse
 
everything is pretty much in /opt/mcc18

headers -- /opt/mcc18/h
libraries -- /opt/mcc18/lib
linker ----- /opt/mcc18/lkr
compiler linker etc... /opt/mcc18/bin
mpasm --- /opt/mcc18/mpasm

if u need any other directories just lemme know

~Xavier

Ryan M. 12-06-2005 08:09

Re: using eclipse
 
For the CDT, do we want the SDK or the other thing? (or both) They both say "runtime" in the description. :confused: I can just try it, I suppose. :)

Thanks for your work on this, prograid.

--EDIT--
It appears the SDK includes the other part, so my question is basically answered.

--EDIT--
Well... I got it mostly working once, but I deleted the project and tried to move it down to hte root directory. :/ Now when I go in to set my linker options, I get this:

Image removed because of solution to problem.

The project title comes from me getting angry. :)

prograid 12-06-2005 14:08

Re: using eclipse
 
Quote:

Originally Posted by dasRastel
everything is pretty much in /opt/mcc18

headers -- /opt/mcc18/h
libraries -- /opt/mcc18/lib
linker ----- /opt/mcc18/lkr
compiler linker etc... /opt/mcc18/bin
mpasm --- /opt/mcc18/mpasm

if u need any other directories just lemme know

The linker in /opt/mcc18/bin is still called mplink right and the compiler is mcc18, right?

In addition, i'm not too familiar with Linux, but have you added /opt/mcc18/bin to your path.

I'll try including the entire path in the plugin.

Quote:

Originally Posted by Ryan M.
Well... I got it mostly working once, but I deleted the project and tried to move it down to hte root directory. :/ Now when I go in to set my linker options...

First, just try restarting eclipse. The plugin is sometimes just finicky. It might fix the problem. Anyway, are you having any problems opening your source code from inside eclipse, if this is happening try creating another new project, you can delete the old one.
If none of this works, check where you have installed eclipse. C:\directories \eclipse\workspace This is probably your default workspace. Try moving the entire eclipse folder to the root. That way you can put your robotics projects in your default workspace. If you have broadband (or still have the original zip file download from eclipse), you'd probably be better off unzipping the zip file from eclipse into the new directory and redownloading the CDT SDK (you were right about that) and reinstalling my plug-in. Then try creating a new project and importing your robotics code into it:
Click on file, import and then select file system and click next.
Choose the directory in which your code is stored. Select all the *.c, *.h, *.lib, and 18f8520user.lkr files. Then click finish.

Now try changing linker settings. Some you can't change but most you can. most of the functionality is for the compiler right now. If you would like to change something by your self check out the Managed Build Extensibility reference document that came with the CDT (it's in the help menu). If you think any other additional features would be useful PM me.

Ryan M. 12-06-2005 20:06

Re: using eclipse
 
Most odd... I had deleted the project, but that doesn't remove the actual project (not source) files. When I created the "new" project after that, it didn't clean the messed up project files, so it must have just corrupted somehow.

Well, got it working. If I can find the MCC compiler. ;)

Thanks for all your work on this This thread gets a sig spot. :D

prograid 12-06-2005 21:26

Re: using eclipse
 
Quote:

Originally Posted by Ryan M.
Most odd... I had deleted the project, but that doesn't remove the actual project (not source) files. When I created the "new" project after that, it didn't clean the messed up project files, so it must have just corrupted somehow.

Well, got it working. If I can find the MCC compiler. ;)

Thanks for all your work on this This thread gets a sig spot. :D

Just out of curiosity, how did you fix the problem, did you create a new project in a new directory, or somehow delete everything from outside eclipse and create the project in a new directory.

And about the compiler, have you simply not installed it or is it a problem with eclipse?

Ryan M. 13-06-2005 06:49

Re: using eclipse
 
Quote:

Originally Posted by prograid
Just out of curiosity, how did you fix the problem, did you create a new project in a new directory, or somehow delete everything from outside eclipse and create the project in a new directory.

I "deleted" the project from inside Eclipse (choosing the "leave files" option), then removed all the Eclipse project files from the folder. There's 3 files which begin with a period (hidden under linux, I assume), and one folder.

Quote:

Originally Posted by prograid
And about the compiler, have you simply not installed it or is it a problem with eclipse?

I don't have it installed. I'll have to yank in from my laptop. :)

dasRatsel 13-06-2005 09:23

Re: using eclipse
 
yea --- 's called mplink.exe (there's also _mplink.exe, i'm not quite sure what that is .. but yea). and i haven't tried adding it to my path -- i thought i'd tried everlything -- i'll check when i get home and let u know if it helped any

thanks
~Xavier

prograid 13-06-2005 15:29

Re: using eclipse
 
Quote:

Originally Posted by dasRatsel
yea --- 's called mplink.exe (there's also _mplink.exe, i'm not quite sure what that is .. but yea). and i haven't tried adding it to my path -- i thought i'd tried everlything -- i'll check when i get home and let u know if it helped any

thanks
~Xavier

Just clarifying, but this is found in opt/mcc18/bin right?

dasRatsel 13-06-2005 17:21

Re: using eclipse
 
yea -- no dice when adding it to the $PATH

something kinda funny i noticed though ::
mplink.exe and mcc18.exe are in /opt/mcc18/bin/
but mplink and mcc without the .exe extention are in /usr/bin directory

but of course the files mp2hex.exe and _mplink.exe are only found in /opt/mcc18/bin

thanks

~Xavier

PS: its still complaining that there's no /etc/mcc-wrapper/mplink.conf and i should run mcc-setup == i dont have mcc-setup anywhere -- and it's only stated as a "warning" -- this couldn't be part of the problem -- could it?


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

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