[Pyenchant-users] Mac OSX
Brought to you by:
rynklly
|
From: stephan n. <nie...@go...> - 2007-02-12 00:21:26
|
Hello Ryan, according to your roadmap you want to build a pkg for OSX. I recently tried your pyenchant with Abiwords binary enchant on OSX 10.4. Although i could not get through the python setup.py install, i might have some remarks that could help: if you already know your way in OSX just skip the rest of the mail. but recently I did some porting to OSX and had to learn the hard way about shared libraries in OSX so what is called libfoo.so on UNIX comes on OSX in 3 flavours: either as libfoo.dylib (compiled -dynamic or i think -dynamic_lib ) a bundle called foo (compiled -bundle ) or a framework.foo (compiled -framework) for exampe the enchant in Abiwords OSX package comes as a framework.enchant thus can't be found by -lenchant as in your setup.py. depending on the nature of the "library" you have to link in differnet ways for example you would import --L/pathtofoo -lfoo for a libfoo.dylib but for a framework it'll be: -framework foo for some reason some stuff has to be a "framework build" on OSX. even python itself is found on OSX as an "framework"- executeable pythonw. so try this if invoking just python doesn't do the trick. and AFAIK module import in python: >>> import foo will search for a bundle named foo.so by default (compiled using the -bundle flag and named foo.so) oh and what is called ldd on UNIX is libtool -L on OSX hope this'll save you some headaches Stephan |