Friday, August 3, 2007

Building s60 pyrex libraries

Pyrex is a great tool for building python extensions. Generally, pyrex libraries help you build a wrapper around a standard c++ library, which looks like any other c++ library, to allow accessing this library from python.

See the following Nokia forum post on pyrex To start, you need to make sure that the python SDK is installed. You need to make sure that python-port-s60\symbian_python\symbian\pyconfig.h in the SDK directory has BAD_STATIC_FORWARD defined.

When building s60pyrex libraries, it is important to freeze the library exports, otherwise only the .dll library (not the .lib) will be built:

Here are the sequence of commands
- abld reallyclean
- bldmake bldfiles
- abld build armi urel
- abld freeze armi (freeze exports for DLL)
- abld clean (*important - rebuild dll*)
- abld build armi urel

No comments: