| Reply | « Previous Thread | Next Thread » |
|
I downloaded Keypress module and I tried to compile it.
I unpacked the keypress folder in D:\temp\pys60sources\src folder I imported MMP file from within Carbide.c++ , and all works fine. When I try to compile, I obtain this error: 'No tool found that can build the extension specified ith the build artifact name all' I guess this is because of the "pyd" target in MMP file. So, what's the procedure to compile new python modules??? ![]() |
|
Hi cassioli,
Here is a link to the official Wiki which describe the different steps http://wiki.opensource.nokia.com/pro...ing_extensions If you still have problems after that, just ask. LFD Devices: Nokia E61 3rd Edition - pys60 1.4.0 Tips and modules: http://www.lfdm.net/thesis |
|
Quote:
I donwloaded the Pys60 sources and I unpacked it somewhere. Then I put Keypress folder (containing a SRC folder) in pys60 SRC folder. I imported the MMP file in carbide.c++, and the project has been correctly created. But when I try to compile, compiler complains about not finding any tool suitable to compile to "PYD" target. I tried changing PYD to EXE, but now compiler complains about not finding py[something].lib files, which actually are in the epoc32 folder I just unpacked. |
|
Besides that, can I compile a python extensions as a JNI module? I commented out the whole code of Keypress module, and I added just a couple of lines from a JNI module example, but with no success in compiling: JNIEXPORT is not recognized by the carbide compiler, and if I try with cl.exe compiler from Visual C++ 2005 Express Edition, it just does not do ANYTHING! Not an error message, not an output, just NOTHING.
![]() |
|
I recommend to build from the command line for both emulator and device since the Carbide's mmp import causes problems most of the time. Forget the mmp import. Carbide can still be used for debugging your extension. This works for me with Carbide.c++ Express v1.1:
Note: If you use the old imp.load_dynamic in your script pointing to C:\sys\bin you'll need to copy the PYD to \Epoc32\winscw\c\sys\bin |
|
Quote:
I'm asking it myself since a long time... ![]() |
|
Check this thread:
http://discussion.forum.nokia.com/fo...ad.php?t=83677 If you use Carbide v1.1, you'll need to modify the version numbers of the paths. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| ImportError: No module named _appuifw | ernesto.ferrari | Mobile Web Server | 9 | 2008-04-18 06:36 |
| Carbide.j 1.5 and Netbeans 5.5 beta 2 | ovjo12 | Mobile Java Tools & SDKs | 5 | 2007-06-11 06:43 |
| problem compiling a module to control the IR | xchip | Python | 2 | 2006-07-31 22:39 |
| SMS I/O Control Application via Evaluation Module | alokghosh | Nokia M2M | 2 | 2003-06-18 18:05 |
| GPS Module LAM-1 | ZeZinh0 | PC Suite API and PC Connectivity SDK | 1 | 2003-03-06 10:44 |