Hi,I am trying to build the STAF Python support on Mac OS X so it will be compatible with Python 2.5. I have built the STAF core per instructions. But when I run make for the Python project I get:
office-dhcp-252:staf admin$ make *** Compiling PYSTAF.o ***/Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:9:20: error: Python.h: No such file or directory /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:23: error: expected initializer before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:24: error: expected initializer before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:25: error: expected initializer before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:26: error: expected initializer before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:27: error: expected initializer before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:28: error: expected initializer before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:29: error: expected initializer before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:31: error: ‘PyMethodDef’ does not name a type /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp: In function ‘void initPYSTAF()’: /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:57: error: ‘PyObject’ was not declared in this scope /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:57: error: ‘module’ was not declared in this scope /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:57: error: ‘PYSTAF_Methods’ was not declared in this scope /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:57: error: ‘Py_InitModule’ was not declared in this scope /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp: At global scope: /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:65: error: expected constructor, destructor, or type conversion before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:78: error: expected constructor, destructor, or type conversion before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:111: error: expected constructor, destructor, or type conversion before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:142: error: expected constructor, destructor, or type conversion before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:155: error: expected constructor, destructor, or type conversion before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:168: error: expected constructor, destructor, or type conversion before ‘*’ token /Users/admin/Documents/staf/src/staf/lang/python/python23/../ PYSTAF.cpp:181: error: expected constructor, destructor, or type conversion before ‘*’ token make: *** [/Users/admin/Documents/staf/obj/macosx/staf/retail/lang/ python/python23/PYSTAF.o] Error 1
My environment is this: BUILD_ARCH=i386 BUILD_TYPE=retailLD_LIBRARY_PATH=/Users/admin/Documents/staf/rel/macosx/staf/retail/ lib:/Users/admin/Documents/staf/rel/macosx/staf/retail/lib/java12:
OSTYPE=darwin9.0 OS_NAME=macosxPATH=/Users/admin/Documents/staf/rel/macosx/staf/retail/bin:/Users/ admin/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/ Home/bin:/opt/subversion/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ bin:/usr/X11/bin
PROJECTS=pythonPYTHON_INCLUDEDIRS=/System/Library/Frameworks/Python.framework/ Versions/2.5/include/python2.5 PYTHON_LIBDIRS=/System/Library/Frameworks/Python.framework/Versions/ 2.5/lib/python2.5
PYTHON_LIBS=python25 PYTHON_ROOT=/System/Library/Frameworks/Python.framework/Versions/2.5 STAFCONVDIR=/Users/admin/Documents/staf/rel/macosx/staf/retail/codepage STAFHome=/Users/admin/Documents/staf/rel/macosx/staf/retail STAF_USE_IPV6= STAF_USE_SSL=Since my PYTHON_INCLUDEDIRS has Python.h, I'm not sure about the first error. The errors are also curious that they initially reference the src/staf/lang/python/python23/ directory instead of python25.
Any advice to get this going? Thanks. Kind regards, Cynthia
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users