[Gvsig_desarrolladores] gvSIG Mobile DLLs

Carlos Sánchez Periñán csanchez en prodevelop.es
Mie Feb 2 19:12:35 CET 2011


Hi Stefano,

 

You can download the native C libraries from the OSOR gvSIG Mobile Repository

https://svn.forge.osor.eu/svn/gvsig-mobile/pilots/trunk/JNI_Sep_2009 <https://svn.forge.osor.eu/svn/gvsig-mobile/pilots/trunk/JNI_Sep_2009> 

 

Be aware with Java.lang.Unsatisfied.LinkError 

 

This error is produced when java JNI and the dll C files don't match each other. The method names and arguments must be the same.

 

This libraries are generated compiling them on C... If you need generate those libraries for Windows Mobile, you need to follow more or less those steps:

 

Using Visual Studio for instance you can follow those steps

 

1) File > New > Project... > Visual C++ > Smart Device > Win32 Smart Device Project

2) Write a name of the project and click OK.

3) Next > Insert needed SDKs (like WM5 and WM6 ) > Next > Click on DLL > Finish

4) Right click on Source folder and select Add > New

5) Find .def file name it the same as the dll name and click OK.

Now in def You need to write something like this:

LIBRARY    "dllName"

EXPORTS

exactFunctionName1                        DATA
exactFunctionName2                        DATA

In dllName.cpp You need to add those two methods (exactFunctionName1, exactFunctionName2) and write code for them.
You don't need to state more then a method names in def (plus <tab><tab>DATA next to name).



Or follow this http://www.vb-helper.com/howto_vcc_dll.html <http://www.vb-helper.com/howto_vcc_dll.html> 

 

Regards!!

 

Carlos Sánchez Periñán

GIS Developer Team

Prodevelop S.L. <http://www.prodevelop.es/> 

 

 

 

De: gvsig_desarrolladores-bounces en listserv.gva.es [mailto:gvsig_desarrolladores-bounces en listserv.gva.es] En nombre de Stefano Orlando
Enviado el: miércoles, 02 de febrero de 2011 12:18
Para: gvsig_desarrolladores en listserv.gva.es
Asunto: [Gvsig_desarrolladores] gvSIG Mobile DLLs

 

Hi, could someone instruct me how the Dynamic-Link Libraries: 'j2seecw.dll', 'j2seshp.dll', 'j9ecw.dll', 'j9shp.dll', in the 'resource\lib' folder of gvSIG Mobile, was generated from the 'libFMap' project?

Thank you in advance.

Stefano

------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://listserv.gva.es/pipermail/gvsig_desarrolladores/attachments/20110202/678d6881/attachment.htm 


Más información sobre la lista de distribución gvSIG_desarrolladores