Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Using GCJ Builder on M$ Windows
Using GCJ Builder on M$ Windows [message #120800] Wed, 22 March 2006 14:01 Go to next message
Eclipse UserFriend
Originally posted by: newsgroups.eclipse.org

Hello swt folks :

i want to make native application of SWT app. ,so i downloaded GCJ
builder for this matter ,but i faced some problems with this plug-in ,so
plz ... can u help me to solve this matter ?

this is my steps for using GCJ builder :

1- i've downloaded the follwing files from :
http://www.mingw.org/download.shtml

gcc-core-3.4.5-20060117-1.tar.gz
gcc-java-3.4.5-20060117-1.tar.gz

and then extract them to :
c:\MinGW

2- i've downloaded the plug-in from :
http://gcjbuilder.sourceforge.net/download.html

and then install it normaly by follwing :
Add a new entry in:
"Window>Preferences>Java>Build Path>Classpath Variables"
Name: GCJLIB
Path:C:/MinGW/share/java/libgcj-3.4.5.jar

3- i've created new project depend on SWT package and then changed its
properties to:
clicked "Project>Properties" and selected "Java Build Path"
clicked "Libraries" tab and removeed "System Library" from list
clicked "Add Variable" button and select "GCJLIB"
selected main class from GCJ project settings

4- i've run my app as SWT app ,it's worked but i couldn't find any exe
file ,but i found 2 files :
makefile
makefile.template

### my questions are :

#1# are that steps is right or there is missed step ?
#2# if my steps are ok ,how i can get the exe file ?

thanks 4 u and i wish to help me .


this is make file content:
------------------------------------------------------------ -----------------------------------------------------
# Generated by Eclipse GCJ Builder
# http://gcjbuilder.sf.net

#global targets
ALL: main
all: main

#gcj variable
GCJ=gcj $(OPTLEVEL) $(DEBUGLEVEL) $(COMPILER_OPTIONS)

#binary output folder
BINOUT= debug

#compiler options
COMPILER_OPTIONS=

#linker options
LINKER_OPTIONS=

#object list
OBJ=MainFrame.o

#custom objects
CUSTOM_OBJ=

#jar objects
CPOBJ=

#jar so
CPSO=

#project classpath
CP="--classpath=./;"

#main class (or so output)
MAINCLASS=--main=MainFrame

#binary name (exe or so)
BIN=$(BINOUT)/NativeApp

#library path list
LIBRARYPATH=-L$(BINOUT)

#libraries (so) list
LIBRARIES=

#resource objects list
RESOB=

#compiler optimization level
OPTLEVEL= -O0

#compiler debug level
DEBUGLEVEL= -g


#object targets
%.o: %.java
$(GCJ) $(CP) -c $? -o $@

##################
#dummy targets (depend on config)

#classpath objects target


#classpath so target


#resource objects target



#################


#main target

main: setup $(CPOBJ) $(RESOB) $(OBJ) $(CPSO)
$(GCJ) $(LINKER_OPTIONS) $(MAINCLASS) $(CPOBJ) $(CUSTOM_OBJ) $(RESOB)
$(OBJ) -o$(BIN) $(LIBRARYPATH) $(LIBRARIES) $(CPSO)

#setup output folders
setup:
mkdir -p $(BINOUT)/resource

#clean target
clean:
rm -f `find . -name "*.o"`
rm -r $(BINOUT)

------------------------------------------------------------ --------------------------------------------------------
Re: Using GCJ Builder on M$ Windows [message #120802 is a reply to message #120800] Wed, 22 March 2006 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsgroups.eclipse.org

Eclipse.org wrote:
> Hello swt folks :
>
> i want to make native application of SWT app. ,so i downloaded GCJ
> builder for this matter ,but i faced some problems with this plug-in ,so
> plz ... can u help me to solve this matter ?
>
> this is my steps for using GCJ builder :
>
> 1- i've downloaded the follwing files from :
> http://www.mingw.org/download.shtml
>
> gcc-core-3.4.5-20060117-1.tar.gz
> gcc-java-3.4.5-20060117-1.tar.gz
>
> and then extract them to :
> c:\MinGW
>
> 2- i've downloaded the plug-in from :
> http://gcjbuilder.sourceforge.net/download.html
>
> and then install it normaly by follwing :
> Add a new entry in:
> "Window>Preferences>Java>Build Path>Classpath Variables"
> Name: GCJLIB
> Path:C:/MinGW/share/java/libgcj-3.4.5.jar
>
> 3- i've created new project depend on SWT package and then changed its
> properties to:
> clicked "Project>Properties" and selected "Java Build Path"
> clicked "Libraries" tab and removeed "System Library" from list
> clicked "Add Variable" button and select "GCJLIB"
> selected main class from GCJ project settings
>
> 4- i've run my app as SWT app ,it's worked but i couldn't find any exe
> file ,but i found 2 files :
> makefile
> makefile.template
>
> ### my questions are :
>
> #1# are that steps is right or there is missed step ?
> #2# if my steps are ok ,how i can get the exe file ?
>
> thanks 4 u and i wish to help me .
>
>

i noticed that when making process starts this error message appear into
console page :

--------Build Started--------
MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.
mkdir -p debug/resource
The syntax of the command is incorrect.

** error 1 ** deleting setup
Re: Using GCJ Builder on M$ Windows [message #120805 is a reply to message #120802] Wed, 22 March 2006 18:21 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hello,

This newsgroup is for the visual editor. Your question is about building
swt. A better place to ask quesions about swt is the
eclipse.platform.swt newsgroup.



--
Thanks,
Rich Kulp
Re: Using GCJ Builder on M$ Windows [message #612343 is a reply to message #120800] Wed, 22 March 2006 16:06 Go to previous message
Eclipse UserFriend
Originally posted by: newsgroups.eclipse.org

Eclipse.org wrote:
> Hello swt folks :
>
> i want to make native application of SWT app. ,so i downloaded GCJ
> builder for this matter ,but i faced some problems with this plug-in ,so
> plz ... can u help me to solve this matter ?
>
> this is my steps for using GCJ builder :
>
> 1- i've downloaded the follwing files from :
> http://www.mingw.org/download.shtml
>
> gcc-core-3.4.5-20060117-1.tar.gz
> gcc-java-3.4.5-20060117-1.tar.gz
>
> and then extract them to :
> c:\MinGW
>
> 2- i've downloaded the plug-in from :
> http://gcjbuilder.sourceforge.net/download.html
>
> and then install it normaly by follwing :
> Add a new entry in:
> "Window>Preferences>Java>Build Path>Classpath Variables"
> Name: GCJLIB
> Path:C:/MinGW/share/java/libgcj-3.4.5.jar
>
> 3- i've created new project depend on SWT package and then changed its
> properties to:
> clicked "Project>Properties" and selected "Java Build Path"
> clicked "Libraries" tab and removeed "System Library" from list
> clicked "Add Variable" button and select "GCJLIB"
> selected main class from GCJ project settings
>
> 4- i've run my app as SWT app ,it's worked but i couldn't find any exe
> file ,but i found 2 files :
> makefile
> makefile.template
>
> ### my questions are :
>
> #1# are that steps is right or there is missed step ?
> #2# if my steps are ok ,how i can get the exe file ?
>
> thanks 4 u and i wish to help me .
>
>

i noticed that when making process starts this error message appear into
console page :

--------Build Started--------
MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.
mkdir -p debug/resource
The syntax of the command is incorrect.

** error 1 ** deleting setup
Re: Using GCJ Builder on M$ Windows [message #612344 is a reply to message #120802] Wed, 22 March 2006 18:21 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hello,

This newsgroup is for the visual editor. Your question is about building
swt. A better place to ask quesions about swt is the
eclipse.platform.swt newsgroup.



--
Thanks,
Rich Kulp
Previous Topic:Using GCJ Builder on M$ Windows
Next Topic:JFace Binding for Swing
Goto Forum:
  


Current Time: Tue Apr 16 18:00:15 GMT 2024

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

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

Back to the top