Purexo-GoogleExportation / hunspell4eclipse

Automatically exported from code.google.com/p/hunspell4eclipse
0 stars 3 forks source link

x86/64 on OSX not supported #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I installed the plug-in on Eclipse 3.6 on OSX 10.6 using a 64 bit Eclipse 
version. Then if I try to select the spell checker, it throws an exception that 
the my platform is not supported:

Caused by: java.lang.UnsupportedOperationException: Unknown OS/arch: mac os 
x/x86_64
    at com.stibocatalog.hunspell.Hunspell.libNameBare(Hunspell.java:184)
    at com.stibocatalog.hunspell.Hunspell.<init>(Hunspell.java:85)
    at com.stibocatalog.hunspell.Hunspell.getInstance(Hunspell.java:63)
    at com.stibocatalog.hunspell.Hunspell.getInstance(Hunspell.java:49)
    at com.lorands.hunspell4eclipse.Activator.start(Activator.java:52)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
    ... 76 more

Can you tell me, what to do in order to make this work (e.g. I could build the 
corresponding native code, etc.), but I don't have the time to do a simple 
code-based research.

Thanks for your help in advance,
Zoltán Ujhelyi

Original issue reported on code.google.com by Stampie.hun@gmail.com on 27 Jul 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Bonjour,

I solved the problem by using the version 3.2.7 of the JNA library that I 
included in a new bundle made with the orginal sources of  the bundle 
"com.lorands.hunspell4eclipse.hunspelljna.ikea" 

I also refactored the bundle "com.lorands.hunspell4eclipse" to  replace the 
package dependency by a  dependency to the new bundle

I'm ready to contribute, how can I do ?

Olivier

Eclipse Helios SR1 + MacOsX 10.6.6 

Original comment by gattazol...@gmail.com on 10 Mar 2011 at 8:40

GoogleCodeExporter commented 9 years ago
For me it seems, development either stalled or is continued somewhere else - 
but do not know, where. However, I'm really interested in your working 
solution. Can you make it available somehow?

Thanks,
Zoltán

Original comment by Stampie.hun@gmail.com on 12 Mar 2011 at 10:00

GoogleCodeExporter commented 9 years ago
Olivier solution will merge in soon.

Original comment by lorand.s...@gmail.com on 13 Mar 2011 at 8:21

GoogleCodeExporter commented 9 years ago
After integrating the JNA lib 3.2.7 and correct a bug in the libName() method 
it works well in the version 0.8.3

Original comment by gattazol...@gmail.com on 11 May 2011 at 2:49

GoogleCodeExporter commented 9 years ago

Original comment by gattazol...@gmail.com on 11 May 2011 at 2:50

GoogleCodeExporter commented 9 years ago
I'm trying to use Hunspell in my java code running on a mac.  I get a similar 
error - Unknown OS/arch: mac os x/x86_64

Is there a fix for this?

thanks

tim (timhot@hotmail.com)

Original comment by supp...@mifrenz.com on 31 Jul 2011 at 5:56

GoogleCodeExporter commented 9 years ago
Hi Tim,

Are you trying to use the plug-in on your mac ? or are you trying to use 
Hunspell in an application you develop ?

In the first case it would be fine if you report the bug with a trace. Look at 
the documentation to learn how do that :

http://hunspell4eclipse.googlecode.com/svn/trunk/com.lorands.hunspell4eclipse/ht
ml/help.html

In the second case I propose you to look at the source code of the 
"com.lorands.hunspell4eclipse.hunspelljna" plugin to understand how the name of 
the native library is generated and how the right native library is loaded.

http://code.google.com/p/hunspell4eclipse/source/browse/#svn%2Ftrunk%2Fcom.loran
ds.hunspell4eclipse.hunspelljna

A+

Olivier

Original comment by gattazol...@gmail.com on 31 Jul 2011 at 1:16