diff python/pydc/README.txt @ 0:0cfcc391201f

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:26:28 +0100
parents
children 4c5019f00f5b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/pydc/README.txt	Thu Mar 19 22:26:28 2015 +0100
@@ -0,0 +1,60 @@
+dyncall python bindings
+(C) 2007 Daniel Adler.
+2007 04. December
+
+API
+
+libhandle = load(libpath)
+funcptr = find(libhandle, symbolname )
+call( funcptr,signature, ... )
+
+SIGNATURE FORMAT
+
+  is a formated string
+
+  format: "xxxxx)y"
+
+    x is positional parameter-type charcode
+
+    'b' C++: bool         <- Python: PyBool
+    'i' C: int            <- Python: PyInt
+    'l' C: long long      <- Python: PyLongLong
+    'p' C: void*          <- Python: PyCObject
+    's' C: const char*    <- Python: PyString
+
+    y is result-type charcode  
+
+    'v' void
+    'i' int               -> PyInt
+    'l' long              -> PyLong
+    'p' ptr               -> PyCObject encapsulating a void*
+    'f' float             -> PyFloat (upcast to double)
+    'd' double -> PyFloat
+
+BUGS
+
+* build on osx/ppc - link error i386 something...  [MacPython 2.4]
+
+  solution:
+  installation of latest pytho for os x (MacPython 2.5)  
+
+  build log:
+
+  python setup.py install
+  running install
+  running build
+  running build_py
+  creating build
+  creating build/lib.macosx-10.3-fat-2.4
+  copying pydc.py -> build/lib.macosx-10.3-fat-2.4
+  running build_ext
+  building 'pydcext' extension
+  creating build/temp.macosx-10.3-fat-2.4
+  gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I../../../dyncall -I../../../dynload -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c pydcext.c -o build/temp.macosx-10.3-fat-2.4/pydcext.o
+  gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.4/pydcext.o -L../../../dyncall -L../../../dynload -ldyncall_s -ldynload_s -lstdc++ -o build/lib.macosx-10.3-fat-2.4/pydcext.so
+  /usr/bin/ld: for architecture i386
+  /usr/bin/ld: warning ../../../dyncall/libdyncall_s.a archive's cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can't load from it)
+  /usr/bin/ld: warning ../../../dynload/libdynload_s.a archive's cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can't load from it)
+  running install_lib
+  copying build/lib.macosx-10.3-fat-2.4/pydcext.so -> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
+