Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse GUI Addition/Modification source code & CDT Cross-Compile.
Eclipse GUI Addition/Modification source code & CDT Cross-Compile. [message #173389] Fri, 21 July 2006 06:08 Go to next message
Eclipse UserFriend
Originally posted by: srimks.yahoo.co.in

Hey All.

I wish to know the source code which does the GUI of Eclipse v3.2. Is
there any option to add small addition to parent GUI. If YES, how does one
proceed.
Since Eclipse is open source, making small changes w.r.t requirement
should be possible.(Example: To do changes in GCC, GCC had a nice document
and resources to make it add or port an application.)

Also, can Eclipse v3.2 provide cross-compiling. If YES, how does one
proceed to do cross-compile for ARM & ARM-Xscale both.(Here, I mean w.r.t
C/C++.) Since I am new to Eclipse, any clue to proceed is appreciated.

Rgds.
Re: Eclipse GUI Addition/Modification source code & CDT Cross-Compile. [message #173559 is a reply to message #173389] Mon, 24 July 2006 05:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mschnell.lumino.de

> Also, can Eclipse v3.2 provide cross-compiling. If YES, how does one
> proceed to do cross-compile for ARM & ARM-Xscale both.(Here, I mean
> w.r.t C/C++.) Since I am new to Eclipse, any clue to proceed is
> appreciated.

I also am trying to set up cross-compile for ARM.

I do this on a Linux box, so that I don't need the additional complexity
of cygwin (that should be possible, too.)

It already did work and I was able to compile a "hallo World" project.

I did this by setting up appropriate Makefiles in a "standard make file
project" that set the environment for cross compilation.

Right now I am facing two problems.

1) After closing Eclipse and reopening it several times, I now get an
error message while Eclipse is "loading Workbench": "Error notifying a
preference change listener". After that I need to force eclipse down by
"kill" messages"

I'm lost with that.

2) To do a decent project I need to use a "managed project" that
auto-creates the make files. Here is a discussion "Managed Build project
with cross compile SUCCESS" that describes how to do that. Due to the
first problem I still was not able to get into that.

-Michael
Re: Eclipse GUI Addition/Modification source code & CDT Cross-Compile. [message #173573 is a reply to message #173559] Mon, 24 July 2006 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: srimks.yahoo.co.in

Hi Michell.

Can you tell the steps how you went to do cross-compile for hello world?
Are you able to load multiple folders/files and do cross-compile?

Mukesh.
Re: Eclipse GUI Addition/Modification source code & CDT Cross-Compile. [message #173622 is a reply to message #173573] Tue, 25 July 2006 05:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mschnell.lumino.de

Mukesh K Srivastava wrote:
> Hi Michell.
>
> Can you tell the steps how you went to do cross-compile for hello world?

I got a cross compiling environment that is able to compile the Kernel
together with the ARM development board I bought.

Here I have the GCC cross compiling installation for the ARM processor
that resides in /usr/local/arm/3.3.4 and the ARM Kernel sources and
necessary "linux" includes in a directory /eco920/ in the workspace
directory (here the resulting elf is installed in a directory /tootfs/
to become the root file system in the target, too).

I have a master Makefile that sits in the project directory (/hallo/ in
the workspace directory (see below).

I have a dedicated makefile that compiles the sources in /hallo/main
(see below)

> Are you able to load multiple folders/files and do cross-compile?
>

I did not test this yet. At the moment (using a "standard make project")
I suppose I would need to do explicit links to the directories in the
Makefile(s). In the future I'd like to do this with an Eclipse !managed
project", that should automatically create the appropriate Makefiles.

Anyway I'm totally stalled at the moment, as I can't start Eclipse
(other than after deleting all .metatada by hand and thus deleting all
the projects, before, as otherwise I get the "Error notifying a
preference change listener" and Eclipse hangs with the greeting splash
screen. I have no idea what that error message means.

I urgently need help on this !

-Michael



============================================================ =========
Main Makefile:
===============

export ARCH := arm
export CROSS_COMPILE := /usr/local/arm/3.3.4/bin/arm-linux-
export TFTPBOOT := /tftpboot/
ROOT := $(shell /bin/pwd)
OS := $(shell /bin/uname)
ROOTFS_PATH := $(shell if [ "$(OS)" = "Linux" ]; then echo $(ROOT)/; \
else echo "/"; fi)
export INSTALL_MOD_PATH := $(ROOTFS_PATH)rootfs
all:
make main_all

clean:
rm -f *~
make main_clean

install:
main_install

hallo:
make -C main hallo

main_all:
make -C main all

main_clean:
make -C main clean

main_install:
make -C main install

help:
@echo 'Please check the variables at top of this file.'
@echo
@echo 'Cleaning:'
@echo ' clean - delete temporary files created by build all'
@echo ' main_clean - delete temporary files created by build main'
@echo
@echo 'Build:'
@echo ' all - build images, executable and documentation'
@echo ' main_all - build all main programs'
@echo ' hallo - build the hallo program'
@echo
@echo 'Installation:'
@echo ' main_install - install the main programs'
@echo


============================================================ =========
dedicated Makefile:
===================

AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CROSS_COMPILE)gcc
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
STRIP = $(CROSS_COMPILE)strip

CFLAGS = -Wall -g -O2
-I../../eco920/linux-2.4.27-vrs1-ATMEL/drivers/at91/bob920/

Files = hallo

all: $(Files)
make install

hallo: hallo.c

install:
cp -av $(Files) ../../eco920/rootfs/usr/local/bin/
cd ../../eco920/rootfs/usr/local/bin/; $(STRIP) $(Files)

clean:
rm -f *~
rm -f $(Files)
What to do when Eclipse doesn't start anymore [message #173663 is a reply to message #173622] Tue, 25 July 2006 09:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: markus.milleder.generali.at

Michael Schnell wrote:

> Anyway I'm totally stalled at the moment, as I can't start Eclipse
> (other than after deleting all .metatada by hand and thus deleting all
> the projects, before, as otherwise I get the "Error notifying a
> preference change listener" and Eclipse hangs with the greeting splash
> screen. I have no idea what that error message means.

> I urgently need help on this !

Just for completeness: Try starting Eclipse with -clean (which re-scans
the installed plugins and rebuilds the caches in
$ECLIPSE_HOME/configuration).

Generally, you get back your projects after removing .metadata with
import->existing projects.

Alteratively, some project's .settings may be damaged.

Look at the error stack (in .metadata/.log) to find out which plugin is
making problems, and try to remove its prefs.

An easy way to try all this is to create a new workspace (start eclipse
with -data if you don't get the dialog) and to manually copy the projects
over.

Your question would have better chances in its own thread and is actually
not specific to CDT.

HTH,
Markus
Re: What to do when Eclipse doesn't start anymore [message #173697 is a reply to message #173663] Tue, 25 July 2006 10:33 Go to previous message
Eclipse UserFriend
Originally posted by: mschnell.lumino.de

Markus Milleder wrote:
> Michael Schnell wrote:
>
>
> Your question would have better chances in its own thread and is
> actually not specific to CDT.

Done as "NullPointerException occurred in CDT"

Thanks a lot !!!

-Michael
Previous Topic:Refactoring transforms
Next Topic:Using Qt with Eclipse/CDT
Goto Forum:
  


Current Time: Mon Sep 01 17:40:31 EDT 2025

Powered by FUDForum. Page generated in 0.03845 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top