[prev in list] [next in list] [prev in thread] [next in thread] 

List:       poi-dev
Subject:    Re: GCJ Native Library Success
From:       "Andrew C. Oliver" <acoliver () apache ! org>
Date:       2002-11-16 23:31:28
[Download RAW message or body]

Excellent!

TJ Mather wrote:

>Hi,
>
>Sounds good.  I'd like to donate the work/assign the copyright to 
>the ASF.
>
>Thanks,
>-TJ
>
>On Sat, 16 Nov 2002, Andrew C. Oliver wrote:
>
>  
>
>>Cool.  I plan to apply this patch when I get back from the Apachecon + 
>>catchup time if no one else beats me to it!
>>
>>I assume you're willing to donate your work to the project?
>>
>>-Andy
>>
>>TJ Mather wrote:
>>
>>    
>>
>>>Hi,
>>>
>>>I was able to get Apache POI to compile down to a shared library by
>>>compiling *.java -> *.class using Ant with Sun JDK, then running
>>>gcj -shared -o poi.so `cat classlist.txt` where the classlist contained
>>>the core HSSF files (not the ones that used Swing, etc)[1].  I had to
>>>compile FormulaParser.java, POIFSViewEngine.java, and HexRead.java to
>>>*.class using GCJ, because I got a "bad pc in exception_table" if I tried
>>>to compile the JDK *.class to *.so using GCJ.  Also note that *.java ->
>>>*.class using GCJ doesn't work for some *.java files.
>>>
>>>I was able to get the C++ native shared library to work with one of the
>>>test examples using an adaption of Martin's patch.  For more details on
>>>how to recreate the POI example in C++ see:
>>>http://tjmather.com/poifilter/
>>>
>>>The patch needed for POI to compile and run under GCJ is at
>>>http://tjmather.com/poifilter/gcjpoi.patch
>>>
>>>This is basically Martin's patch plus some fixes for the hpsf/*.java
>>>files required for ./build.sh compile to run, and (Object) typecast
>>>in poifs/dev/POIFSViewEngine.java required for GCJ to compile the
>>>shared library.
>>>
>>>-TJ
>>>
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>For additional commands, e-mail:
>>>      
>>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:poi-dev-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: <mailto:poi-dev-help@jakarta.apache.org>
>>
>>    
>>
>
>
>--
>To unsubscribe, e-mail:   <mailto:poi-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:poi-dev-help@jakarta.apache.org>
>
>
>  
>



--
To unsubscribe, e-mail:   <mailto:poi-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:poi-dev-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic