[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave-3.3.54-source build on Cygwin
From: |
Marco Atzeri |
Subject: |
Re: Octave-3.3.54-source build on Cygwin |
Date: |
Thu, 6 Jan 2011 21:30:26 +0000 (UTC) |
User-agent: |
slrn/0.9.9p1 (CYGWIN_NT-5.1) |
On 2011-01-03, Stewart Dickson <address@hidden> wrote:
> Hello,
>
> In attempting to build the octave-3.3.54, source tarball, on
> System, CYGWIN_NT-6.1-WOW64 ... 1.7.7(0.230/5/3) 2010-08-31 09:58 i686
> Cygwin
> g++ seems to be silently missing a header file include. Any ideas?
>
> Thanks,
>
> -Stewart Dickson, HDF Group
>
> ./configure --prefix=/usr/local --with-amd-libdir=/usr/local/lib
> --with-camd-libdir=/usr/local/lib --with-colamd-libdir=/usr/local/lib
> --with-ccolamd-libdir=/usr/local/lib
> --with-cholmod-libdir=/usr/local/lib
> --with-umfpack-libdir=/usr/local/lib --with-magick=/usr/local/lib
Hi Stewart
any reason to use your own suitesparse libs instead of the
cygwin ones ?
$ cygcheck -c -d |grep Suite
libSuiteSparse-devel 3.5.0-1
SuiteSparse 3.5.0-1
> ...
> make[3]: Entering directory `/usr/local/src/octave-3.3.54/src'
> ...
> making oct-conf.h from oct-conf.h.in
> oct-conf.h is unchanged
> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I.. -I../libgnu -I..
> /libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
> -I/usr/local/include -I/usr
> /local/include/FL/images -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_THREAD_SAFE -D_REENTRAN
> T -g -O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall
> -W -Wshadow -Wold-sty
> le-cast -Wformat -g -O2 -g -O2 -MT
> DLD-FUNCTIONS/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.
> lo -MD -MP -MF
> DLD-FUNCTIONS/.deps/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.Tpo -c -o
> DLD-F
> UNCTIONS/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.lo `test -f
> 'DLD-FUNCTIONS/fltk_backend.c
> c' || echo './'`DLD-FUNCTIONS/fltk_backend.cc
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu
> -I../libcruft/misc -I
> ../liboctave -I../liboctave -I. -I. -I/usr/local/include
> -I/usr/local/include/FL/images -D_LA
> RGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -g -O2
> -DHAVE_CONFIG_H -miee
> e-fp -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast
> -Wformat -g -O2 -g -O2 -MT D
> LD-FUNCTIONS/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.lo -MD -MP -MF
> DLD-FUNCTIONS/.deps/DL
> D_FUNCTIONS_fltk_backend_la-fltk_backend.Tpo -c
> DLD-FUNCTIONS/fltk_backend.cc -DDLL_EXPORT -
> DPIC -o DLD-FUNCTIONS/.libs/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.o
> In file included from ../liboctave/lo-mappers.h:30,
> from ../liboctave/oct-inttypes.h:35,
> from ../liboctave/idx-vector.h:35,
> from ../liboctave/Array.h:37,
> from ../liboctave/str-vec.h:32,
> from ../liboctave/cmd-edit.h:32,
> from DLD-FUNCTIONS/fltk_backend.cc:57:
> ../liboctave/oct-cmplx.h:30: error: expected unqualified-id before
> numeric constant
On the disti Suitesparse there is a specific complex patch
--- origsrc/SuiteSparse/CXSparse/Include/cs.h 2009-11-07
18:23:34.000000000 +0 100
+++ src/SuiteSparse/CXSparse/Include/cs.h 2010-08-22
09:42:01.515625000 +0 200
@@ -17,7 +17,11 @@ typedef std::complex<double> cs_complex_
extern "C" {
#else
#ifndef NCOMPLEX
+#ifdef __CYGWIN__
+#define I 1.0I
+#else
#include <complex.h>
+#endif
#define cs_complex_t double _Complex
#endif
#endif
I have no particular problem to build latest octave dev versions ,
using all the packages already available on cygwin.
As reported on the just updated README.Cygwin,
I am building with
configure --enable-shared \
--enable-float-truncate \
CC=gcc-4 F77=gfortran-4 CXX=g++-4 CPP=cpp-4
lt_cv_deplibs_check_method=pass_all \
LDFLAGS=-no-undefined
Marco