开发者

python/c++ wrapping on Snow Leopard

I create a dynamic library and 开发者_如何学Cthen using swig under snow leopard but when I import my module it returns always ImportError: No module named blabla. I've all compiled in 64 bit, download and install python 2.7 64 bit. This test library has been created with cmake, and when I was with leopard 32 bit, it worked.


Given that it worked on 32 bits, I would first check whether the library has 64 bits code. You can use the file command I think to check the arch in a multi-arch mach-o binary.

If the library is indeed 64 bits, then please give us the exact exception in python, and more importantly, a build log from cmake. Build issues for python extensions on mac are quite tricky because of the multi-arch support, and some incompatibilities between gcc versions, hence the need for more details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜