Martin,

Noting that you use a non-default prefix, you may need to add 
`LDFLAGS="-L/usr/lib”` (and perhaps add ´”-I/usr/include” to CFLAGS and 
CXXFLAGS).
The same result could perhaps be reached with `--with-includes=/usr/include 
--with-libs=/usr/lib` added to configure, although that I’m not sure of.


Best,
Nicklas



> On 24 Jan 2024, at 13:34, Martin Landa via grass-dev 
> <grass-dev@lists.osgeo.org> wrote:
> 
> Hi, 
> 
> I am unable to compile GRASS on Debian testing. The configure fails with:
> 
> checking for atan... no
> checking for atan in -lm... no
> configure: error: *** Failed check for math library.
> 
> I installed dependencies by
> 
> apt build-dep grass
> 
> and run
> 
>         CFLAGS="-g -Wall -Werror -fno-common -Wextra -Wunused" \
>    CXXFLAGS="-g -Wall"  \
>    ./configure --prefix=/opt/grass \
>             --enable-largefile --enable-shared \
>             --with-blas --with-bzlib --with-cairo --with-cxx --with-freetype \
>             --with-freetype-includes=/usr/include/freetype2 --with-gdal \
>             --with-geos --with-lapack --with-netcdf --with-nls \
>             --with-odbc --with-openmp --with-pdal=no \
>             --with-postgres --with-postgres-includes=/usr/include/postgresql \
>             --with-proj-share=/usr/share/proj --with-readline \
>             --with-sqlite --with-x --with-zstd
> 
> Any idea what could be wrong? Thanks in advance, Martin
> 
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
> _______________________________________________
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to