[Gvsig_desarrolladores] R: gvSIG Mobile DLLs

Stefano Orlando orste en libero.it
Mie Feb 2 23:13:31 CET 2011


Thank you Carlos for your tutorial. I’ll try your instructions to get a
build for the DLLs.

Bye, Stefano.

 

Da: gvsig_desarrolladores-bounces at listserv.gva.es
[mailto:gvsig_desarrolladores-bounces at listserv.gva.es] Per conto di Carlos
Sánchez Periñán
Inviato: mercoledì 2 febbraio 2011 19:13
A: Lista de Desarrolladores de gvSIG
Oggetto: Re: [Gvsig_desarrolladores] gvSIG Mobile DLLs

 

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

 

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

 

Regards!!

 

Carlos Sánchez Periñán

GIS Developer Team

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

 

 

 

De: gvsig_desarrolladores-bounces at listserv.gva.es
[mailto:gvsig_desarrolladores-bounces at listserv.gva.es] En nombre de Stefano
Orlando
Enviado el: miércoles, 02 de febrero de 2011 12:18
Para: gvsig_desarrolladores at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_desarrolladores/attachments/20110202/22d5567b/attachment.htm 


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