[Gdal-dev] pct2rgb.py

Dobmeyer, Todd tdobmeye at ball.com
Tue Oct 19 09:02:01 EDT 2004


Frank

I downloaded the OPENEV_FW zip file that you recommended. I unzipped it
into the same folder that has the gdal folder. So both OpenEV_FW and
gdal are in their own folders inside the same "parent" folder. I typed
in the command:

gdal_merge.py -o rgb.tif blue.tif green.tif red.tif -separate

With the proper filenames of course. When I press Enter in command
prompt, I receive the following errors. What do they mean?

Traceback (most recent call last):
  File "C:\Support Libraries\OpenEV_FW\pymod\gdal_merge.py", line 76, in
?
    import gdal
  File "C:\Support Libraries\OpenEV_FW\pymod\gdal.py", line 152, in ?
    import _gdal
ImportError: DLL load failed: The specified procedure could not be
found.

Thanks again for your help!

Todd

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: Thursday, October 14, 2004 2:25 PM
To: Dobmeyer, Todd
Cc: gdal-dev at xserve.flids.com
Subject: Re: [Gdal-dev] pct2rgb.py

Dobmeyer, Todd wrote:
> I honestly do not remember how I built gdal, if I did it with python
> support or not. I might rebuild this to make sure that I do add python
> support. I am on Windows XP Pro and am very new to gdal yet. To make
> sure I get python support, I should go out and find one of the
OpenEV_FW
> builds? Or what exactly should I do? Thanks for your continued help
and
> I am glad I chose to work with gdal!

Todd,

If you don't need to build everything yourself, I would suggest just
using the OpenEV_FW release for this task.

   http://gdal.org/dl/openev/OpenEV_FW_182.zip

It includes everything built nicely together, including the Python
numeric
package which would be needed for gdal_merge.py to work (as noted by
another
user).  On Windows when building GDAL you need to explitely set the
PYDIR
in nmake.opt to get python support working.  I think there are some
additional
complications related to the numeric support.  This is within your
ability to
handle, but unless you need to build things yourself for some reason I
would
suggest you avoid it.

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