From eadc8c595c140114914b61978a06a9bb29826fbc Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Wed, 4 Dec 2002 01:14:36 +0000 Subject: [PATCH] Updated to include Windows information. --- NATIVE-COMPILE | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/NATIVE-COMPILE b/NATIVE-COMPILE index 5eb4bdd..227685d 100644 --- a/NATIVE-COMPILE +++ b/NATIVE-COMPILE @@ -6,8 +6,7 @@ Issues: 1) Need SWT code and need to compile it for all interested platforms. 2) Unable to handle graphics in native mode. Need to patch code in compile process for this. -3) Main cannot reside within a package - need to patch code in compile - process for this. +3) Need to find stable Windows compile environment/tool. ********************* @@ -32,17 +31,32 @@ com.webcodepro.applecommander.test: ================================== If JUnit is not available (or wanted), remove any references to JUnit. (Make sure the assert statements have been removed also.) The main method -should execute tests directly. This class cannot be in a package, else GCJ +should execute tests directly. The full package must be specified, else GCJ will not be happy with it. Commands used to compile: gcj --classpath=AppleCommander-1.1.1b.jar -c DoIt.java - gcj --main=DoIt -o DoIt DoIt.o storage.so + gcj --main=com.webcodepro.applecommander.test.DoIt -o DoIt DoIt.o storage.so -"DoIt" was a highly modified version of DiskHelperTest. +"DoIt" was a highly modified version of DiskHelperTest. Have not tested with +real data as of yet - may have same problems as the Windows code. ********************** ** WINDOWS ** ********************** -Not attempted yet. Need to get a Windows version of GCJ! +Using MinGW, am able to compile AppleCommander tests. Command sequence is +similar to this. + +1) Compile storage package: + cd <...>\storage + gcj --classpath=AppleCommander-1.1.1b.jar -c *.java + Unable to build a *.so file as on Linux. +2) Compile DoIt in test: + cd ..\test + gcj --classpath=AppleCommander-1.1.1b.jar -c DoIt.java + gcj --main=com.webcodepro.applecommander.test.DoIt -o DoIt DoIt.o ..\storage\*.o + strip -x DoIt.exe + The executable is 2.7MB and crashes when gnu.java.locale.Calendar is not + found (must be part of MinGW). +