[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave-3.3.54-source build on Cygwin

From: Stewart Dickson
Subject: Re: Octave-3.3.54-source build on Cygwin
Date: Wed, 19 Jan 2011 15:18:22 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20101207 Thunderbird/3.1.7


I have installed cygwin::SuiteSparse, libSuiteSparse-devel and the latest updates to cygwin.
cygwin                          1.7.7-1
libSuiteSparse-devel            3.5.0-1
SuiteSparse                     3.5.0-1
gcc-core                        3.4.4-999
gcc-mingw-core                  20050522-1
gcc4                            4.3.4-3
gcc4-fortran                    4.3.4-3

On my system, I have no .../SuiteSparse/CXSparse/Include/cs.h
I have applied the patch you gave to /usr/local/src/CXSparse/Include/cs.h

I think that I must add CPPFLAGS=-D__CYGWIN__ to my configure line, because I think that gcc-4/cpp-4 does not add -D__CYGWIN__ automatically when uname -a => CYGWIN_NT-6.1-WOW64
./configure --enable-shared --enable-float-truncate --with-curl-libdir=/usr/ local/lib --with-qhull-includedir=/usr/local/include --with-qhull-libdir=/usr/lo cal/src/qhull-2010.1/src --x-includes=/cygdrive/c/MinGW/msys/1.0/X11R6/include C C=gcc-4 F77=gfortran-4 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig CXX=g++-4 CPP=cp
'make' still produces the same error as below.



On 1/6/2011 3:30 PM, Marco Atzeri wrote:
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-
make[3]: Entering directory `/usr/local/src/octave-3.3.54/src'
making oct-conf.h from
oct-conf.h is unchanged
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
c' || echo './'`DLD-FUNCTIONS/
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu
D_FUNCTIONS_fltk_backend_la-fltk_backend.Tpo -c
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/
../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" {
#ifndef NCOMPLEX
+#ifdef __CYGWIN__
+#define I 1.0I
  #define cs_complex_t double _Complex

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 \


Help-octave mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]