<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>as you can read in the mail object, i need to add new GRASS modules in qgis. Actually I have other questions related, so I will divide this mail in&nbsp;2 different parts:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1. I'm recently using QGIS 0.9 under windows xp; I need to use a module, called r.horizon,&nbsp;developed by JRC (<A href="http://ec.europa.eu/dgs/jrc/index.cfm">http://ec.europa.eu/dgs/jrc/index.cfm</A>) researchers. I have source files (C) and i would compile them to create a GRASS command to run under QGIS. Reading the following article <A href="http://wiki.qgis.org/qgiswiki/Adding_New_Tools_to_the_GRASS_Toolbox">http://wiki.qgis.org/qgiswiki/Adding_New_Tools_to_the_GRASS_Toolbox</A>, I found how to create a new QGIS GRASS module usging existing GRASS commands compiled for win32 platform, but I'm not able to build my r.horizon.exe starting from source code. I tried using Visual Studio C++ 2008 (Express), but it seems I have problems linking libraries, locating headers, and so on.... So my question is: "can I&nbsp;build a win32 GRASS command on windows using only the resources I find in Quantum GIS\grass folder?"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>From this location </FONT><A href="https://grasssvn.itc.it/grasssvn/grassaddons/trunk/grassaddons/r.sun_horizon/r.horizon/#_trunk_grassaddons_r.sun_horizon_r.horizon_"><FONT face=Arial size=2>https://grasssvn.itc.it/grasssvn/grassaddons/trunk/grassaddons/r.sun_horizon/r.horizon/#_trunk_grassaddons_r.sun_horizon_r.horizon_</FONT></A><FONT face=Arial size=2> I downloaded source code files: main.c, local_proto.h and Makefile.make; main.c includes the followings:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#include &lt;stdio.h&gt;<BR>#include &lt;stdlib.h&gt;<BR>#include &lt;string.h&gt;<BR>#include &lt;math.h&gt;<BR>#include &lt;malloc.h&gt;<BR>#include &lt;grass/gis.h&gt;<BR>#include &lt;grass/gprojects.h&gt;<BR>#include &lt;grass/glocale.h&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>local_proto.h has no includes, while Makefile is:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>MODULE_TOPDIR = ../..</FONT></DIV>
<DIV><FONT face=Arial size=2>PGM = r.horizon</FONT></DIV>
<DIV><FONT face=Arial size=2>LIBES =&nbsp; $(GPROJLIB) $(GISLIB)<BR>DEPENDENCIES = $(GPROJDEP) $(GISDEP)<BR>EXTRA_INC = $(PROJINC)</FONT></DIV>
<DIV><FONT face=Arial size=2>include $(MODULE_TOPDIR)/include/Make/Module.make</FONT></DIV>
<DIV><FONT face=Arial size=2>default: cmd</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT size=2>2. I noticed that in QGIS some GRASS commands are missing, like NVIZ and d.3d module; actually I'm very interested in creating 3D imaging starting from DEM rasters (imported in GRASS from ArcInfo ASCII files)... can I do that using QGIS? or should I use GRASS directly via cygwin?</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thank you for all your help,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Marco</FONT><FONT></DIV></FONT></BODY></HTML>