[gdal-dev] Compile GDAL/OGR with SOSI support

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Apr 9 04:29:43 PDT 2013


Hi Graeme,

It would be great if you could place your SOSI build steps on the
BuildHints wiki: http://trac.osgeo.org/gdal/wiki/BuildHints

Thanks,

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/

On 2013-04-08 10:50 AM, Graeme B. Bell wrote:
> 
> Hi there
> 
>> Can somebody give me a hint on how to compile GDAL/OGR with support for the
>> Norwegian SOSI format?
> 
> 
> Not sure about this since I haven't done it myself, but some things to investigate would be: 
> 
> 1
> 
> grep -r "sosi" in the source. For me, with the svn version of gdal, this brings up:
> 
> nmake.opt:#SOSI_INC_DIR = e:/sosi
> nmake.opt:#SOSI_LIBS = e:/sosi/FYBA.lib e:/sosi/GM.lib e:/sosi/UT.lib
> 
> you could edit it to reflect your local libraries and try again. 
> 
> 
> 2
> 
> http://trac.osgeo.org/gdal/ticket/3638
> "	• To actually include SOSI support on windows you will have to edit the makefile.vc files in ogrsf_frmts to include:
> 		• "sosi" in DIRLIST
> 		• "sosi\*.obj" and the three FYBA .lib files in the "lib" list
> 	• and ogrsf_frmts/generic to include:
> 		• "-DSOSI_ENABLED" in BASEFORMATS (or make it optional)"
> 
> Did you do this?
> 
> 3
> 
> Save the compiler output to a log and grep for 'sosi' to see if an error is preventing the compile. 
> 
> 4
>  
> Contact the devs directly, ask for advice. Create an account on trac, file a bug, or message them directly. 
> 
> http://trac.osgeo.org/gdal/ticket/3638
> 
> In particular, 'relet' may be able to walk you through whatever he/she did to build it on linux, if you ask nicely.
> 
> Graeme.
> 
> 
>> Message: 4
>> Date: Mon, 8 Apr 2013 04:16:22 -0700 (PDT)
>> From: SBL <Stefan.Blumentrath at nina.no>
>> To: gdal-dev at lists.osgeo.org
>> Subject: [gdal-dev] Compile GDAL/OGR with SOSI support
>> Message-ID: <1365419782783-5045207.post at n6.nabble.com>
>> Content-Type: text/plain; charset=us-ascii
>>
>> Hi
>>
>> Can somebody give me a hint on how to compile GDAL/OGR with support for the
>> Norwegian SOSI format?
>> I tried to find a solution in http://trac.osgeo.org/gdal/ticket/3638 as good
>> as I can, but without success...
>>
>> I do have the (binary version of the) fyba library, but there is no
>> --with-sosi option (neither in GDAL 1.8 nor 1.9) when configuring GDAL...
>>
>> I also tried:
>> CFLAGS="-DSOSI_ENABLED" ./configure
> 



More information about the gdal-dev mailing list