trouble trying to write an extension

6 posts / 0 new
Last post
Dez Day
mosyncday's picture
Offline
Joined: 23 Nov 2010
Posts:
trouble trying to write an extension

i got this error trying the example "Writing Extensions for MoSync" :

fatal error C1083: Cannot open include file: 'maapi.h': No such file or directory

need help to solve this matter

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

Hi, what stage are you at? Are you trying to build MoSync still, or have you done that and now you're writing the extension?

Dez Day
mosyncday's picture
Offline
Joined: 23 Nov 2010
Posts:

Actually im trying the tutorial in the link below to understand how extension writing work

http://www.mosync.com/documentation/manualpages/writing-new-extensions-mosync

i got the error trying to run the idl2 tool according to the tutorial.

Do i need to build mosync first before trying the extension writing?

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

I think so. The tutorial certainly suggests that this is the case, and you'll need to be able to build it all to add in the code for the new syscall. Have a go at building MoSync, but I think it is non-trival.

There is going to be a new extension system Q1 2012 though, which I think will make it *much* easier.

fmcicreate
fmcicreate's picture
Offline
Joined: 24 Feb 2012
Posts:
rival wrote:

I think so. The tutorial certainly suggests that this is the case, and you'll need to be able to build it all to add in the code for the new syscall. Have a go at building MoSync, but I think it is non-trival.

There is going to be a new extension system Q1 2012 though, which I think will make it *much* easier.

Hi,
About this new extension system, is it out yet in this new 3.0 release? Does the new system require to build MoSync, or is it more straightforward?

My idea is to create an extension without having the need to rebuild MoSync, which loads an external Library. (is there any equivalent function in MoSync that gives the ability to load an external .net library? )

Thank you

Rubizm
Rubizm's picture
Offline
Mobile Conjurer
Joined: 6 Jan 2012
Posts:

Would also like to know how to create an extension.
Native code is the reason for using MoSync in the first place.. When it is available again (I got version 3.0) ??