You Are Here:

Community: Developer Discussion Boards

#1 Old Compiling additional module - 2007-02-14, 21:01

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
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???
Reply With Quote

#2 Old Re: Compiling additional module - 2007-02-14, 21:56

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
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
Reply With Quote

#3 Old Re: Compiling additional module - 2007-02-15, 08:21

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
Quote:
Originally Posted by lfd
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
I downloaded the Pys60 sdk and unpacked epoc32 folder in my emulator folder.
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.
Reply With Quote

#4 Old Re: Compiling additional module - 2007-02-15, 08:25

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
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.
Reply With Quote

#5 Old Re: Compiling additional module - 2007-02-15, 10:10

Join Date: Jan 2007
Posts: 135
Location: Oulu, Finland
GameDude
Offline
Regular Contributor
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:
  • Setup your command line environment for building WINSCW using Carbide's tools
  • Build your extension in command line( abld build winscw udeb )
  • In Carbide, Select File->Import->Symbian OS Executable
  • Select your dll(or exe) as the executable (in Epoc32\release\winscw\udeb)
  • In Debug window, remember to set the Epoc32\release\winscw\udeb\epoc.exe as the emulator.
  • There should be a new project containing the files of your extension
  • Put breakpoint to somewhere
  • Start the debugger
  • It complains about not being able to set temporary breakpoint in main. This can be ignored
  • Browse to Python and run a script using your extension.
  • If all is well, Carbide should hit the breakpoint you set earlier.

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
Reply With Quote

#6 Old Re: Compiling additional module - 2007-02-15, 11:10

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
Quote:
Originally Posted by GameDude
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:
[list][*]Setup your command line environment for building WINSCW using Carbide's tools
It would be very interesting to know how to do this... I'm asking it myself since a long time...
Reply With Quote

#7 Old Re: Compiling additional module - 2007-02-15, 11:23

Join Date: Jan 2007
Posts: 135
Location: Oulu, Finland
GameDude
Offline
Regular Contributor
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia