You need to watch out for the following:
./configure --with-cxx ...
...
checking whether to use C++... yes
checking for c++... c++
checking whether the C++ compiler (c++ -g -Wall -Wl,--export-dynamic
-L/usr/lib64) works... yes
checking whether the C++ compiler (c++ -g -Wall -Wl,--export-dynamic
-L/usr/lib64) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
...
C++ support: yes
If a C++ compiler isn't there, also --with-cxx won't help (it should
bail out but...)
Markus
PS: I use on Linux
MYCFLAGS="-g -Wall -fno-common"
MYCXXFLAGS="-g -Wall"
# not yet needed:
# --with-blas --with-blas-includes=/usr/src/ATLAS/include/ \
# --with-lapack --with-lapack-includes=/usr/src/ATLAS/include \
# 64bit box:
CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCXXFLAGS" ./configure \
--enable-64bit \
--with-libs=/usr/lib64 \
--with-cxx \
--with-gdal=/usr/local/bin/gdal-config \
--with-postgres --with-postgres-includes=/usr/include/pgsql
--with-postgres-libs=/usr/lib64 \
--with-mysql \
--with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib64 \
--without-odbc \
--with-sqlite \
--with-ffmpeg --with-ffmpeg-includes=/usr/include/ffmpeg \
--with-nls \
--with-python \
--with-wxwidgets=`which wx-config` \
--with-fftw \
--with-motif \
--with-freetype --with-freetype-includes=/usr/include/freetype2 \
--enable-largefile \
2>&1 | tee config_log.txt
On Fri, Oct 24, 2008 at 7:49 PM, Jonathan Greenberg
<greenberg@ucdavis.edu> wrote:
Hmm, our sysadmin ran the ./configure and included the --with-cxx and the
new configure.in was identical to the old one (meaning either we already
used --with-cxx or the flag had no effect on the configure.in)
Along these lines, is there any way to tell easily what flags were used to
compile GRASS? We don't mind re-configuring and recompile/reinstall it, but
we forgot to document the ./configure statement and are worried we might
break a currently usable (but terraflow-less) installation of GRASS.
--j
Matthew Perry wrote:
I believe you have to configure --with-cxx
- matt
On Thu, Oct 23, 2008 at 11:28 AM, Jonathan Greenberg
<greenberg@ucdavis.edu> wrote:
Hi all:
I went to run r.terraflow within out GRASS GIS 6.4 installation on our
Debian box and found it does not appear to exist anymore -- is there any
trick to getting it installed/running with GRASS 6.4? We did a standard
./compile - make - make install.
--j
--
Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
--
Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
--
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/