-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello again!
morphis suggested to me to use bitbake (thank you for that) but unfortunately, I do not know how to use bitbake. But i managed to at least compile the module using the toolchain. The key was to use "environment-setup" and not "setup-env", or more specifically, add "export LIBTOOL_SYSROOT_PATH=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi" to setup-env. Other difficulties showed up because of different compilation settings for python (pyconfig.h) and because some "-I /usr/include/python2.5" somehow managed to get into my compilation command (it then uses the include file settings of my desktop system). If someone searches for the error, it was "undefined symbol: PyUnicodeUCS4_DecodeUTF8". If someone is interested, my compilation commands are (after setting up the toolchain environment): $CC -march=armv4t -mtune=arm920t -fno-strict-aliasing -DNDEBUG -g - -fwrapv -O2 -Wall -Wstrict-prototypes - -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include - -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os - -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -fPIC - -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/python2.5/ - -c MYPROJECT.c -o MYPROJECT.o $CC -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions - -L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib - -Wl,-rpath-link,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib - -Wl,-O1 - -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include - -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os - -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include ./MYPROJECT.o -ldl -lutil -lm -lpython2.5 -o MYPROJECT.so The .c file obtained after running cython should be quite platform-independent... Kind regards, Christian Christian Reitwießner schrieb: > Hi! > > I would like to develop some software using cython (write python modules > in python and compile them into c code). I have setup some rather old > toolchain and don't know if it still works. Can someone give me hints > how to successfully compile such an application? > > I think the community would profit much from a good HOWTO on this topic > as cython is a good compromise between fast running programs and rapid > software development. > > Kind regards, > Christian Reitwießner _______________________________________________ devel mailing list [email protected] https://lists.openmoko.org/mailman/listinfo/devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkld/bcACgkQBDeV5+aXu2oxXACgsem69MbitlgbL3ll9HMm7YDr FugAoOefDbnSDOQ9GiT2NXlZ0zYJnaP2 =k6mX -----END PGP SIGNATURE----- _______________________________________________ devel mailing list [email protected] https://lists.openmoko.org/mailman/listinfo/devel
