Discussion:
[Aspell-user] Help configuring library
Ian Sidor
2011-01-31 19:34:38 UTC
Permalink
Hello, I'm new to Aspell. I'm looking for a dictionary SDK that can be used in my own application.
Static libraries are disabled by default since static libraries will not work right due to the mixing of C and C++. When a C program links with the static libraries in Aspell it is likely to crash because Aspell's C++ objects are not getting initialized correctly. However, if for some reason you want them, you can enable them via `--enable-static'.
Using a static library is the only option I have because I would like to compile for iOS devices also. My program will be written in Objective-C with mixed C++. I assume I will not suffer from the warning in this message?
./configure --enable-static
make
.. but I couldn't find a dylib afterwards.

What am I doing wrong?

Thanks in advance.
Kevin Atkinson
2011-01-31 20:36:59 UTC
Permalink
Post by Ian Sidor
Hello, I'm new to Aspell. I'm looking for a dictionary SDK that can be used in my own application.
...
./configure --enable-static
make
.. but I couldn't find a dylib afterwards.
I do not know what I dylib is, but due to the way libtool works the static
library can be found in the ".libs" dir under the name
".libs/libaspell.a".
Ian Sidor
2011-02-06 21:28:19 UTC
Permalink
Hi sorry for the late reply.

I found the libs in the directory you suggested. The problem was that Mac OSX hides directories with a preceding '.' and therefore I simply couldn't see it.

However, I'm having trouble linking the libraries into my project. Let me explain more about what I'm doing....

I'm using XCode on Mac OSX and I'm writing an application that runs on iOS devices (iPhone/iPod/iPad). I would like to use Aspell to do some spell checking which means I need to configure a static library as there is no other option on iOS.

iOS devices use ARM architecture and the Simulator uses i386.

When it comes to configuring makefiles, I'm pretty much a fish out of water ... almost zero experience. How to I configure Aspell to build a library that will work within my project?

I suspect I will need to generate a dylib that is a universal binary (like most things on Mac).

This is the current error when I link with the default configuration:

(Simulator Build)
ld: warning: in libpspell.15.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

(Device Build)
ld: warning: in libpspell.15.dylib, file was built for unsupported file format which is not the architecture being linked (armv6)
Post by Ian Sidor
Hello, I'm new to Aspell. I'm looking for a dictionary SDK that can be used in my own application.
...
./configure --enable-static
make
.. but I couldn't find a dylib afterwards.
I do not know what I dylib is, but due to the way libtool works the static library can be found in the ".libs" dir under the name ".libs/libaspell.a".
Loading...