[GRASS-dev] problem com;
piling GRASS from source - r.in.gdal, r.out.gdal
Rainer M Krug
r.m.krug at gmail.com
Tue Oct 7 09:36:54 EDT 2008
On Tue, Oct 7, 2008 at 3:13 AM, Glynn Clements <glynn at gclements.plus.com> wrote:
>
> Rainer M Krug wrote:
>
>> I am trying to compile GRASS 6.3 from source, and am struggling with
>> the compilation of the modules r.in.gdal and r.out.gdal.
>
>> but the make results in:
>
>> Errors in:
>
> [snip]
>
>> /export/home/rkrug/source/grass-6.3.0/lib/gmath
>> /export/home/rkrug/source/grass-6.3.0/lib/vask
>> /export/home/rkrug/source/grass-6.3.0/lib/edit
>> /export/home/rkrug/source/grass-6.3.0/lib/imagery
>
> [snip]
>
>> I am only worried about r.in.gdal and r.out.gdal.
>>
>> Going into the directory and do a 'make' results in:
>>
>> rkrug at head001:~/source/grass-6.3.0/raster/r.out.gdal> make
>> make: *** No rule to make target
>> `/export/home/rkrug/source/grass-6.3.0/dist.x86_64-unknown-linux-gnu/lib/libgrass_I.so',
>> needed by `/export/home/rkrug/source/grass-6.3.0/dist.x86_64-unknown-linux-gnu/bin/r.out.gdal'.
>> Stop.
>>
>> Any help appreciated,
>
> There's a reason why the text in error.log says:
>
>> If you get multiple errors, you need to deal with them in the order they
>> appear in the error log.
I definitely believe you now - because that solved the problem:
I saw that fftw needs to be compiled with CFLAGS="-fPIC" (and ncurses
by the way as well...)
Now everything is working.
Thanks
Rainer
>
> r.{in,out}.gdal are failing because lib/imagery failed. lib/imagery
> probably failed because lib/gmath failed. So, as the error.log text
> says, you need to run "make" in the lib/gmath directory. If you tell
> us why that failed, we may be able to help. It's quite likely that
> once lib/gmath compiles, all of the other errors will go away.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa
More information about the grass-dev
mailing list