[gdal-dev] How to compile dumpoverviews

Jorge Arévalo jorge.arevalo at gmail.com
Wed Aug 5 15:35:18 EDT 2009


Hello,

2009/8/5 Frank Warmerdam <warmerdam at pobox.com>:
> Jorge Arévalo wrote:
>>
>> Hello,
>>
>> How should I compile GDAL to get "dumpoverviews" executable tool? I've
>> tested by "make all" in the apps directory, but I'm not sure if it's
>> the best way.
>>
>> Anyway, after compiling it with "make all", I can't debug it. I add
>> --enable-debug option to configure script, but after executing "make
>> all",  ddd dumpoverviews returns an error:
>>
>> not in executable format: File format not recognized
>>
>> It's strange, because dumpoverviews has been created properly, and I
>> can execute it, but not debug it...
>
> Jorge,
>
> Is this your first attempt to debug a gdal executable?  It should work
> similarly to the others.

No, I've debugged gdalinfo and gdal_translate, for example.

>
> I suspect you are building with libtool and the gdal/apps/dumpoverviews
> is just a script running the binary in the gdal/apps/.libs directory.  You
> can try running gdal/apps/.libs/dumpoverviews in ddd, but that can be tricky
> because library stuff might not be setup properly.
>
> I suggest configuring --without-libtool and doing a clean build.  Libtool
> is just a big pain in the butt while developing (IMHO).
>

Ok, I think that's the reason. I disabled libtool for compiling after
you recommended me to do, but I'm using it again just now (I can't
remember why...). I'll disable it again.

Many thanks!

Best regards,
Jorge


> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
>


More information about the gdal-dev mailing list