Dear diary,
It's lonely the life of a PyS60 hacker around the Forum Nokia. You get no love at all... and hackers have feelings, too - but, of course, you know that.
You also know that I've been trying to build that camera module thingy, without much success. Well, I advanced a bit more: I finally got it compiled, with:
Code:
cd ext\amaretto\camera\group
bldmake bldfiles
abld build gcce urel
abld freeze gcce
abld build gcce urel
Then I created a "camera2" folder in the module repository with the required files (copied from the camera folder, then renamed and edited), and I added my newly compiled file:
Code:
C:
mkdir "C:\Program Files\PythonForS60\module-repo\dev-modules\camera2"
copy T:\epoc32\release\gcce\urel\kf__camera.pyd "C:\Program Files\PythonForS60\module-repo\dev-modules\camera2\kf__camera2.pyd"
Finally, I created a small test program, packed it with ensymble and tried it on my device. The result? The error below, just as the newly compiled file is imported:
Code:
Traceback (most recent call last):
File "launcher.py", line 43, in <module>
execfile('default.py', default_namespace)
File "default.py", line 11, in <module>
import camera2
File "c:\resource\python25\python25.zip\site.py", line 86, in platsec_import
return _original_import(name, globals, locals, fromlist, level)
File "i:camera_tests_174851\camera2.py", line 21, in <module>
File "c:\resource\python25\python25.zip\site.py", line 104, in platsec_import
return imp.load_dynamic(name, module '.pyd')
SystemError: dynamic module not initialized properly
OK, now I have this SystemError watchamacalit... if it's not one thing, it's another!
But I'm worried that this might be caused by a binary incompatibility, meaning I would have to build not just the module, but the whole Python distro!
Dear diary, I think I will post my findings on Forum Nokia anyway, just in case another suffering developer looking for the same answers might find, if not a solution, another kindred spirit and, with that, feel a bit less lonely in this huge Symbian development world.
XOXO