[Geoserver-users] JGDAL

Hello, senior programmers.

I try to compile GDAL for JAVA and have an error:
C:\gdal\swig\java>nmake -f makefile.vc

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

        cd ogr
        nmake /nologo /f makefile.vc
NMAKE : fatal error U1073: don't know how to make 'ogr_wrap.obj'
Stop.

The files org_wrap.cpp, gdal_wrap.cpp and others exists in build directory. It was successfully created by previos step.

I have read JGDAL build instruction and get it step by step.
I try 1.4.2 release and trunc version.
Did anybody solve this problem?

P.S. I build gdal.jar with ant without incedents. But I think it will not working without gdaljni.dll and other *jni.dll.

Hello Cemehehko,
could you provide me more information about the steps you performed?
Furthermore, could you provide me a copy of your “makefile.vc” files contained in your gdal/swig and gdal/swig/java folders?

I guess there are some incoherencies on folders settings on makefiles.
As an instance, when I run “c:\gdal\swig>nmake /f makefile.vc -java” it produces the proper *.cpp and *.obj files in “c:\gdal\swig\java\ogr”, “c:\gdal\swig\java\osr”, “c:\gdal\swig\java\const”, “c:\gdal\swig\java\gdal”.
Moreover, “c:\gdal\swig\java” contains (in my case), all *.obj and *jni.dll files.
My “c:\gdal\swig\java\build” directory does not contain any *.cpp files… only java classes (properly packaged).

Let me know.

PS: Sorry if I misspelled your name :slight_smile:

Best Regards,
Daniele Romagnoli

On 10/24/07, Simone Giannecchini < simone.giannecchini@…1107…> wrote:

---------- Forwarded message ----------
From: Семененко Андрея <cemehehko@…1386…>
Date: Oct 24, 2007 10:49 AM
Subject: [Geoserver-users] JGDAL
To: simone.giannecchini@…1107…, Geoserver Users
<geoserver-users@lists.sourceforge.net>,
geotools-gt2-users@lists.sourceforge.net

Hello, senior programmers.

I try to compile GDAL for JAVA and have an error:
C:\gdal\swig\java>nmake -f makefile.vc

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

cd ogr
nmake /nologo /f makefile.vc
NMAKE : fatal error U1073: don’t know how to make ‘ogr_wrap.obj’
Stop.

The files org_wrap.cpp, gdal_wrap.cpp and others exists in build
directory. It was successfully created by previos step.

I have read JGDAL build instruction and get it step by step.
I try 1.4.2 release and trunc version.
Did anybody solve this problem?

P.S. I build gdal.jar with ant without incedents. But I think it will
not working without gdaljni.dll and other *jni.dll.


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Eng. Simone Giannecchini
President /CEO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it



Best Regards,
Daniele Romagnoli