[GRASS-user] grass program compilation

Vaclav Petras wenzeslaus at gmail.com
Thu May 14 14:36:36 PDT 2015


On Thu, May 14, 2015 at 5:20 PM, alassane toure <atourej at gmail.com> wrote:

> Group,
> I need your help after all to compile the example code provided
> "r.example".  In the Makefile, i defined MODULE_TOPDIR to point to the
> location where Module.make is stored. However, when I key in "make
> Makefile" (from the directory where main.c Makefile and r.example.html are
> located) the response was
> make: Nothing to be done for 'Makefile'
>
> Any help to compile r.example and run it under GRASS is appreciated.
>
>
Hi, there is probably more ways how to do it but I do

cd into/dir/with/my/src
make MODULE_TOPDIR=/path/to/grass/src/

The path provided in MODULE_TOPDIR should be absolute if you have
subdirectories which you compile too. For simple cases (just one Makefile,
one module), relative path is OK too.

I'm using GRASS GIS which I compiled myself (./configure... && make). In
this case, the module binary goes into dist... directory inside the source
code where rest of compiled GRASS GIS.



Regards,
>
> Alassane
>
> On Wed, May 6, 2015 at 7:35 PM, alassane toure <atourej at gmail.com> wrote:
>
>> Thank you all for your help.  The compilation went through without any
>> error!
>> Now I need to compile an example program.  I hope your help will not be
>> necessary.
>>
>> My regards,
>> Alassane
>>
>> On Wed, May 6, 2015 at 3:39 PM, Blumentrath, Stefan <
>> Stefan.Blumentrath at nina.no> wrote:
>>
>>>  Hei Alassane,
>>>
>>>
>>>
>>> As a general strategy, when I get this kind of compilation errors I use
>>> the locate command in order to find the file ./configure is searching for
>>> in this case:
>>>
>>> locate ft2build.h
>>>
>>> It will print the folder where this file can be found on your system (if
>>> the relevant module/package is installed), so you can point ./configure to
>>> that, like Eric showed. If locate does not find the required file either,
>>> you are missing the module/package and have to install it in order to meet
>>> the dependencies.
>>>
>>>
>>>
>>> Cheers
>>>
>>> Stefan
>>>
>>>
>>>
>>> *From:* grass-user-bounces at lists.osgeo.org [mailto:
>>> grass-user-bounces at lists.osgeo.org] *On Behalf Of *alassane toure
>>> *Sent:* 6. mai 2015 18:07
>>> *To:* Vaclav Petras
>>> *Cc:* GRASS user list
>>> *Subject:* Re: [GRASS-user] grass program compilation
>>>
>>>
>>>
>>> Correct!  Configure did fail ....unable to locate FreeType includes.
>>>
>>> checking for location of FreeType includes...
>>> checking for ft2build.h... no
>>> configure: error: *** Unable to locate FreeType includes.
>>>
>>> Any suggestions from this point?  Thanks!
>>>
>>> Alassane
>>>
>>>
>>>
>>> On Wed, May 6, 2015 at 9:59 AM, Vaclav Petras <wenzeslaus at gmail.com>
>>> wrote:
>>>
>>>
>>>
>>> On Wed, May 6, 2015 at 11:53 AM, alassane toure <atourej at gmail.com>
>>> wrote:
>>> >
>>> > Group,
>>> > I am still not making any progress compiling Grass70 on Ubuntu.  Here
>>> is where i am at:
>>> > 1. able to run configure without any problem (with your help);
>>> > 2. unable to compile using the following commands:
>>> > make -j2  &&  sudo make install  &&  sudo ldconfig
>>> >
>>> > And the system response was ....
>>> >
>>> > include/Make/Vars.make:1: include/Make/Platform.make: No such file or
>>> directory
>>> > make: *** No rule to make target `include/Make/Platform.make'.  Stop.
>>>
>>> What was the output of configure? Perhaps it fails. Make cannot find a
>>> makefile which should be generated by configure.
>>>
>>> Note that for running make, you need to be in the directory with the
>>> source code (as needed for configure).
>>>
>>>
>>> > Your help is appreciated.
>>> >
>>> > Alassane
>>> >
>>> > On Tue, May 5, 2015 at 2:13 PM, alassane toure <atourej at gmail.com>
>>> wrote:
>>> >>
>>> >> Great! ./configure worked!   However compilation and installation did
>>> not.
>>> >>
>>> >> I run the following command:
>>> >> make -j2  &&  sudo make install  &&  sudo ldconfig
>>> >>
>>> >> and the system response was:
>>> >> include/Make/Vars.make:1: include/Make/Platform.make: No such file or
>>> directory
>>> >> make: *** No rule to make target `include/Make/Platform.make'.  Stop.
>>> >>
>>> >> I appreciate your comments/suggestions.
>>> >>
>>> >> Alassane
>>> >>
>>> >>
>>> >> On Tue, May 5, 2015 at 2:03 PM, Markus Neteler <neteler at osgeo.org>
>>> wrote:
>>> >>>
>>> >>> On Tue, May 5, 2015 at 9:59 PM, alassane toure <atourej at gmail.com>
>>> wrote:
>>> >>> > Great! ./configure worked!
>>> >>>
>>> >>> great!
>>> >>>
>>> >>> > However compilation and installation did not.
>>> >>> > I run the following command:
>>> >>> > make -j2  &&  sudo make install  &&  sudo ldconfig
>>> >>> >
>>> >>> > and the system response was:
>>> >>> > include/Make/Vars.make:1: include/Make/Platform.make: No such file
>>> or
>>> >>> > directory
>>> >>> > make: *** No rule to make target `include/Make/Platform.make'.
>>> Stop.
>>> >>> >
>>> >>> > I appreciate your comments/suggestions.
>>> >>>
>>> >>> please send it to the list, I am on Fedora...
>>> >>>
>>> >>> Markus
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> > _______________________________________________
>>> > grass-user mailing list
>>> > grass-user at lists.osgeo.org
>>> > http://lists.osgeo.org/mailman/listinfo/grass-user
>>>
>>>
>>>
>>
>>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150514/dd5d718a/attachment-0001.html>


More information about the grass-user mailing list