[GRASS-dev] Seeking advices for image segmentation algorithms and windows compile question
Yang, Bo (yangb2)
yangb2 at mail.uc.edu
Thu May 19 11:38:55 PDT 2016
Hi Helmut,
Thanks for the prompt reply. Now I am able to compile and start GRASS, but still have a small issue. Below are my procedures:
1. I changed back to 64bit packages because I can't go through in the 32bit environmental follow the tutorial [0] (I think might because my OS is 64bit).
2. Thanks for your advice, after deleted:
https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/osgeo4w/package.sh#L178
there no lidar error reported (r.in.lidar, r3.in.lidar, v.out.lidar, v.in.lidar). GRASS can be built successfully.
3. As mentioned in the previous threads, the C:\OSGeo4W64\bin\grass71svn#L8 need to be changed to e.g. "SET OSGEO4W_ROOT= C:\OSGeo4W64"
4. Then run grass71svn, it reported 3 dll files are missing respectively: "libintl-8.dll/ libsystre-0/ libiconv-2 is missing from your computer"; each time it report one dll missing, I copy this file from "C:\msys64\mingw64\bin" to " C:\OSGeo4W64\bin". I don't know why still come dll missing. I installed all the components required in [0]
5. Afterward GRASS can be started in both text mode and g.gui mode.
6. I change to i.segment folder and run 'make'. It reported:
$ make
if [ "/usr/src/grass_trunk/dist.x86_64-w64-mingw32/bin/i.segment.exe" != "" ] ; then GISRC=/usr/src/grass_trunk/dist.x86_64-w64-mingw32/demolocation/.grassrc71 GISBASE=C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32 PATH="/usr/src/grass_trunk/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk/dist.x86_64-w64-mingw32/scripts:$PATH" PYTHONPATH="C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH" PATH="/usr/src/grass_trunk/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk/dist.x86_64-w64-mingw32/scripts:/usr/src/grass_trunk/dist.x86_64-w64-mingw32/lib:/usr/src/grass_trunk/dist.x86_64-w64-mingw32/lib:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/ProgramData/Oracle/Java/javapath:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Skype/Phone" LC_ALL=C /usr/src/grass_trunk/dist.x86_64-w64-mingw32/bin/i.segment.exe --html-description < /dev/null | grep -v '</body>\|</html>' > i.segment.tmp.html ; fi
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/bin/i.segment.exe: error while loading shared libraries: libgrass_imagery.7.1.svn.dll: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'i.segment.tmp.html' failed
make: *** [i.segment.tmp.html] Error 1
rm i.segment.tmp.html
This error appeared previous, I go to C:\msys64\usr\src\grass_trunk\include\Make\ Html.make#14 and comment line14:
# if [ "$(HTMLSRC)" != "" ] ; then $(call htmldesc,$<,$@) ; fi
Then run make in this folder, no error reported, and i.segment can be start via GRASS GUI or i.segment --ui itself.
Do you know will it be anything wrong in the future if commenting this line?
Thanks again for the help.
Best,
Bo Yang
[0] https://trac.osgeo.org/grass/wiki/CompileOnWindows
-----Original Message-----
From: Helmut Kudrnovsky [mailto:hellik at web.de]
Sent: Thursday, May 19, 2016 3:15 AM
To: grass-dev at lists.osgeo.org
Subject: Re: [GRASS-dev] Seeking advices for image segmentation algorithms and windows compile question
>3. I checked out codes from trunk and build it:
>svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk
>PACKAGE_POSTFIX=-daily ./mswindows/osgeo4w/package.sh
>
>After built it reported:
>Started compilation: Thu May 19 00:45:39 EDT 2016
>--
>Errors in:
>/usr/src/grass_trunk/raster/r.in.lidar
>/usr/src/grass_trunk/raster3d/r3.in.lidar
>/usr/src/grass_trunk/vector/v.out.lidar
>/usr/src/grass_trunk/vector/v.in.lidar
>--
>In case of errors please change into the directory with error and run
'make'.
>If you get multiple errors, you need to deal with them in the order
>they appear in the error log. If you get an error building a library,
>you will also get errors from anything which uses the library.
as already mentioned in an earlier reply, please delete
https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/osgeo4w/package.sh#L178
i.e.
--with-liblas=$PWD/mswindows/osgeo4w/liblas-config \
from your local package.sh
-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Seeking-advices-for-image-segmentation-algorithms-and-windows-compile-question-tp5264642p5267138.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
More information about the grass-dev
mailing list