[libvoikko] VoikkoSpellService (MacOS X) fails to build on OS X 10.6
Harri Pitkänen
hatapitk at iki.fi
Tue Apr 27 19:40:37 EEST 2010
On Tuesday 27 April 2010, Sjur Moshagen wrote:
> Now I'm at the following errors:
>
>
> /Users/sjur/voikko/osxspell/VoikkoSpellService.m: In function 'main':
> /Users/sjur/voikko/osxspell/VoikkoSpellService.m:111: warning: class
> 'VoikkoSpellService' does not implement the 'NSSpellServerDelegate'
> protocol
This looks like OS X 10.6 may have broken source compatibility with something.
Or maybe this is just a harmless warning.
> ld: warning: directory '/Users/sjur/voikko/inst/lib' following -L not found
> ld: warning: in /usr/local/lib/libvoikko.1.dylib, file was built for
> unsupported file format which is not the architecture being linked (i386)
> Undefined symbols:
> "_voikko_next_token_cstr", referenced from:
> -[VoikkoSpellService
> spellServer:findMisspelledWordInString:language:wordCount:countOnly:] in
> VoikkoSpellService.o "_voikko_suggest_cstr", referenced from:
> -[VoikkoSpellService spellServer:suggestGuessesForWord:inLanguage:]
> in VoikkoSpellService.o "_voikko_spell_cstr", referenced from:
> _voikkoCheckWord in VoikkoSpellService.o
> "_voikko_set_bool_option", referenced from:
> _main in VoikkoSpellService.o
> _main in VoikkoSpellService.o
> "_voikko_free_suggest_cstr", referenced from:
> -[VoikkoSpellService spellServer:suggestGuessesForWord:inLanguage:]
> in VoikkoSpellService.o "_voikko_init_with_path", referenced from:
> _main in VoikkoSpellService.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
You should check if linker settings in the XCode project file
(VoikkoSpellService.xcodeproj/project.pbxproj) match the name of the libvoikko
library that gets built. Apparently the linker just can't find the library to
link against. The project file contains at least one reference to
libvoikko.1.7.0.dylib but current development version of libvoikko is already
at version 1.11.0, maybe this is causing problems?
I have no OS X installation available so I cannot help much with debugging
this particular problem.
Harri
More information about the Libvoikko
mailing list