|
Re: Using GCJ Builder on M$ Windows [message #120822 is a reply to message #120798] |
Thu, 23 March 2006 07:52 |
Eclipse User |
|
|
|
Originally posted by: newsgroups.eclipse.org
Bashir 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 .
>
>
> 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)
>
> ------------------------------------------------------------ --------------------------------------------------------
>
>
>
>
>
>
sorry for this mistake ....
|
|
|
Re: Using GCJ Builder on M$ Windows [message #612348 is a reply to message #120798] |
Thu, 23 March 2006 07:52 |
Eclipse User |
|
|
|
Originally posted by: newsgroups.eclipse.org
Bashir 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 .
>
>
> 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)
>
> ------------------------------------------------------------ --------------------------------------------------------
>
>
>
>
>
>
sorry for this mistake ....
|
|
|
Powered by
FUDForum. Page generated in 0.04387 seconds