Comment by dan.kozlowski:

I have successfully got the GWT and OOPHM working on Fedora 11 x86_64. here  
is what i did.

Downloaded the latest GWT form subversion ( r5632 ) and built it according  
to the directions linked above. then i had to extract the created SDK (  
build/dist/gwt-linux-0.0.0.tar.bz2 ) to some place in my home folder

Downloaded the oophm svn branch
{{{
svn checkout http://google-web-toolkit.googlecode.com/svn/branches/oophm  
oophm
}}}

Inside that project I had to make a few changes

{{{
[...@enigma oophm]$ svn diff
Index: plugins/firefox/ScriptableInstance.h
===================================================================
--- plugins/firefox/ScriptableInstance.h        (revision 5634)
+++ plugins/firefox/ScriptableInstance.h        (working copy)
@@ -70,6 +70,9 @@
    JavaObject* createJavaWrapper(int objectId);
    void destroyJavaWrapper(JavaObject*);

+  // Fix virtural void problem
+  void sendFreeValues(HostChannel& channel) { }
+
    static const uint32_t VERSION = 1;
  private:
    // Map of object ID to JavaObject
Index: plugins/firefox/Makefile
===================================================================
--- plugins/firefox/Makefile    (revision 5634)
+++ plugins/firefox/Makefile    (working copy)
@@ -1,6 +1,6 @@
  INC=-I. -I../common -Inpapi
-FLAG32BIT=$(shell ./get32bitflag arch)
-CFLAGS=-Wall -g -O2 -fPIC $(INC) -rdynamic -m$(FLAG32BIT) -DLINUX  
-DBROWSER_NPAPI
+FLAG32BIT=64
+CFLAGS=-Wall -g -O2 -fPIC $(INC) -rdynamic -m64 -DLINUX -DBROWSER_NPAPI
  CXXFLAGS=$(CFLAGS)

  INSTDIR := extension/platform/$(shell ./getarch arch)/plugins
Index: plugins/firefox/install-template.rdf
===================================================================
--- plugins/firefox/install-template.rdf        (revision 5634)
+++ plugins/firefox/install-template.rdf        (working copy)
@@ -12,7 +12,7 @@
          <!-- Firefox 1.5-3.0 supported -->
          <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
          <em:minVersion>1.5</em:minVersion>
-        <em:maxVersion>3.0.*</em:maxVersion>
+        <em:maxVersion>3.*</em:maxVersion>
        </Description>
      </em:targetApplication>

Index: plugins/common/Makefile
===================================================================
--- plugins/common/Makefile     (revision 5634)
+++ plugins/common/Makefile     (working copy)
@@ -26,7 +26,7 @@
  OBJ64= $(patsubst %.cpp,obj64/%.o,$(SRCS))

  #all:: libcommon32.a libcommon64.a
-all:: libcommon32.a
+all:: libcommon64.a

  libcommon32.a: $(OBJ32) obj32.dir
        ar -rv $@ $(OBJ32)
}}}

Then i entered the firefox folder and ran make
{{{
make
}}}

then install the build .xpi file with firefox

finally I downloaded the Google Plugin and created a default Web  
Application Project. For the GWT SDK i pointed it to the custom build one  
that i made earler ( it comes up as gwt-linux-0.0.0.0 )

After that I just put in the default app and let it fly, no problems so far




For more information:
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to