Code Generation and PO_FuncTransform


16-02-2009 17:20:34

I'm having trouble finding where "PO_FuncTransform" is declared from common_utils/

Traceback (most recent call last):
File "", line 28, in <module>
import common_utils
File "../common_utils/", line 21, in <module>
import PO_FuncTransform
ImportError: No module named PO_FuncTransform

Also as a side note can we have a flag in the Config/environment file for the SConstruct linux visibility flags(gcc 4.2.x). Since the resultant .so file is reduced by 50% it greatly reduces the link time for test builds.


17-02-2009 00:48:37

Added the missing file to the trunk...

On the Linux side can you clarify which options you used and on what platform/gcc version etc, as I know these flags didn't work on older versions of gcc so we probably need to check the system before enabling them...




17-02-2009 03:29:49

Ok thanks for the update to svn.

Platform details:
- Python 2.6, boost 1.3.8, gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12) , Ubuntu 8.10.
- Ogre 1.6.1 patched only for <tr1/unordered_map> / <ext/hash_map>.
- The visibility flags were those as defined in the SConstruct file.

The problem with visibility flags was a bug with gcc4.1.2 on certain distros (Ubuntu). I posted a link to the bug on the python ogre developers group. I'm pretty sure this was resolved for gcc4.2.x onwards, so enabling visibility for gcc >=4.2 should be OK.