[GRASS-user] Compiling a module in Win OsGEO4w

Jenny Turner jennyturner1980 at gmail.com
Tue Apr 5 19:01:19 EDT 2011


Greetings

I have developed a function, which also includes a shared lib
(libsegmentimage.dll) and I have compiled with success in OSGEO4W in
winGRASS. (before that I needed to place  libsegmentimage.dll in
C:\OSGeo4W\usr\src\grass-6.4.svn_src\dist.i686-pc-mingw32\lib .

It has places my binary (i.segment.exe) in
c:\C:\OSGeo4W\usr\src\grass-6.4.svn_src\dist.i686-pc-mingw32\bin\ and
now I want to place it in C:\OSGeo4W\apps\grass\grass-6.4.1. TO do
that I just copied the exe to bin folder but the bin it seems not to
be working because I get this error:
Traceback (most recent call last):
  File "C:/OSGeo4W/apps/grass/grass-6.4.1svn/etc/wxpython/wx
gui.py", line 486, in OnRunCmd

self.goutput.RunCmd(cmd, switchPage=False)
  File "C:\OSGeo4W\apps\grass\grass-6.4.1svn\etc\wxpython\gu
i_modules\goutput.py", line 368, in RunCmd

menuform.GUI().ParseCommand(cmdlist, parentframe=self)
  File "C:\OSGeo4W\apps\grass\grass-6.4.1svn\etc\wxpython\gu
i_modules\menuform.py", line 1866, in ParseCommand

xml.sax.parseString(getInterfaceDescription(cmd[0]).decode(e
nc).split('\n',1)[1].replace('', '<?xml version="1.0"
encoding="utf-8"?>\n', 1).encode("utf-8"),
IndexError
:
list index out of range

By the way I have complied like this:

 make -C i.segment MODULE_TOPDIR=/C/OSGeo4W/usr/src/grass-6.4.svn


Can anyone help me?

Thanks
Jenny


More information about the grass-user mailing list