octave-maintainers
[Top][All Lists]
Advanced

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

build problem regarding __magick_read__.cc


From: Ben Abbott
Subject: build problem regarding __magick_read__.cc
Date: Tue, 30 Sep 2008 05:53:09 -0400

I've encountered a build problem which appears (to me) to be related to Søren's changeset below.

        
http://velveeta.che.wisc.edu/cgi-bin/hgwebdir.cgi/octave/rev/01fac748b680

changeset:   8144:01fac748b680
user:        address@hidden
date:        Wed Sep 24 15:40:27 2008 -0400
summary: Add the 'imfinfo' function for reading image file information.

The ChangeLog entry is

101 2008-09-24  Søren Hauberg  <address@hidden>
102
103 * DLD-FUNCTIONS/__magick_read__.cc (magick_to_octave_value): New
104         template function with specializations for various
105         GraphicsMagick++ types.
106         (F__magick_finfo__): New function.

I'm using a slightly modified Fink package to build and install the developers sources. This has been working rather nicely for me. My last build was about a week ago.

Below are some of the relevant parts.

[...]

=== configuring in scripts (/sw/src/fink.build/octave3.1.51-3.1.51-3/ octave-3.1.51/scripts) configure: running /bin/sh ./configure --disable-option-checking '-- prefix=/sw' 'FLIBS=/sw/lib/gcc4.3/lib/libgfortran.dylib' 'F77=/sw/bin/ gfortran' '--host=i386-apple-darwin' '--infodir=${prefix}/share/info' '--mandir=${prefix}/share/man' '--libexecdir=${prefix}/lib' '-enable- shared' '-enable-dl' '--disable-static' '--without-mpi' '--with-hdf5' '--with-fftw' '--with-lapack=-Wl,-framework,Accelerate,-dylib_file,/ System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ vecLib.framework/Versions/A/libLAPACK.dylib:/System/Library/Frameworks/ Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/ libLAPACK.dylib' '--with-blas=-Wl,-framework,Accelerate,-dylib_file,/ System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ vecLib.framework/Versions/A/libBLAS.dylib:/System/Library/Frameworks/ Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/ libBLAS.dylib' 'host_alias=i386-apple-darwin' 'CFLAGS=-O3' 'LDFLAGS=-L/ sw/lib' 'CPPFLAGS=-I/sw/include' 'CXXFLAGS=-O3' 'FFLAGS=-O3' --cache- file=/dev/null --srcdir=. configure: WARNING: If you wanted to set the --build type, don't use -- host.

[...]

Octave is now configured for i386-apple-darwin

  Source directory:     .
  Installation prefix:  /sw
  C compiler:           gcc  -mieee-fp  -Wall -W -Wshadow -O3
C++ compiler: g++ -mieee-fp -Wall -W -Wshadow -Wold-style- cast -O3
  Fortran compiler:     /sw/bin/gfortran -O3 -mieee-fp
  Fortran libraries:    /sw/lib/gcc4.3/lib/libgfortran.dylib
  BLAS libraries:
  FFTW libraries:       -lfftw3 -lfftw3f
  GLPK libraries:       -lglpk
  UMFPACK libraries:    -lumfpack
  AMD libraries:        -lamd
  CAMD libraries:       -lcamd
  COLAMD libraries:     -lcolamd
  CCOLAMD libraries:    -lccolamd
  CHOLMOD libraries:    -lcholmod
  CXSPARSE libraries:   -lcxsparse
  HDF5 libraries:       -lhdf5
  CURL libraries:       -lcurl
  REGEX libraries:      -L/sw/lib -lpcre
  QHULL libraries:      -lqhull
LIBS: -lreadline -lncurses -Wl,- framework,Accelerate,-dylib_file,/System/Library/Frameworks/ Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/ libBLAS.dylib:/System/Library/Frameworks/Accelerate.framework/Versions/ A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib -lhdf5 -lz -lm
  Default pager:        less
  gnuplot:              gnuplot
  OPENGL libraries:
FLTK backend libs: -L/sw/lib/fltk-aqua/lib -L//sw/lib -L/sw/lib - lfltk_gl -framework AGL -framework OpenGL -lfltk -lpthread -framework Carbon -framework ApplicationServices
  Magick config:

  Do internal array bounds checking:  false
  Build static libraries:             false
  Build shared libraries:             true
  Dynamic Linking:                    true (dyld)
  Include support for GNU readline:   true
  64-bit array dims and indexing:     false

configure: WARNING: A BLAS library was detected but found incompatible with your Fortran 77 compiler. The reference BLAS implementation will be used. To improve performance, consider using a different Fortran compiler or a switch like -ff2c to make your Fortran compiler use a calling convention compatible with the way your BLAS library was compiled, or use a different BLAS library. configure: WARNING: GraphicsMagick++ config script not found. Assuming GraphicsMagic++ library and header files are missing, so imread will not be fully functional
configure:

NOTE: libraries may be skipped if a library is not found OR
      if the library on your system is missing required features.

[...]

make[2]: --cppflags: Command not found
g++ -c -I/sw/include -I/sw/include -fPIC -I. -I.. -I../liboctave -I../ src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow - Wold-style-cast -O3 ./DLD-FUNCTIONS/__magick_read__.cc -o pic/ __magick_read__.o
make[2]: --cppflags: Command not found
./DLD-FUNCTIONS/__magick_read__.cc:347: warning: unused parameter 'args'
./DLD-FUNCTIONS/__magick_read__.cc:347: warning: unused parameter 'nargout'
./DLD-FUNCTIONS/__magick_read__.cc:751: warning: unused parameter 'args'
./DLD-FUNCTIONS/__magick_read__.cc:810: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:810: error: expected ',' or '...' before 'magick' ./DLD-FUNCTIONS/__magick_read__.cc:810: error: ISO C++ forbids declaration of 'EndianType' with no type ./DLD-FUNCTIONS/__magick_read__.cc: In function 'octave_value magick_to_octave_value(int)': ./DLD-FUNCTIONS/__magick_read__.cc:812: error: 'magick' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:814: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:814: error: 'LSBEndian' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:817: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:817: error: 'MSBEndian' was not declared in this scope
./DLD-FUNCTIONS/__magick_read__.cc: At global scope:
./DLD-FUNCTIONS/__magick_read__.cc:810: warning: unused parameter 'EndianType' ./DLD-FUNCTIONS/__magick_read__.cc:826: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:826: error: expected ',' or '...' before 'magick' ./DLD-FUNCTIONS/__magick_read__.cc:826: error: ISO C++ forbids declaration of 'ResolutionType' with no type ./DLD-FUNCTIONS/__magick_read__.cc: In function 'octave_value magick_to_octave_value(int)': ./DLD-FUNCTIONS/__magick_read__.cc:826: error: redefinition of 'octave_value magick_to_octave_value(int)' ./DLD-FUNCTIONS/__magick_read__.cc:810: error: 'octave_value magick_to_octave_value(int)' previously defined here ./DLD-FUNCTIONS/__magick_read__.cc:828: error: 'magick' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:830: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:830: error: 'PixelsPerInchResolution' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:833: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:833: error: 'PixelsPerCentimeterResolution' was not declared in this scope
./DLD-FUNCTIONS/__magick_read__.cc: At global scope:
./DLD-FUNCTIONS/__magick_read__.cc:826: warning: unused parameter 'ResolutionType' ./DLD-FUNCTIONS/__magick_read__.cc:842: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:842: error: expected ',' or '...' before 'magick' ./DLD-FUNCTIONS/__magick_read__.cc:842: error: ISO C++ forbids declaration of 'ImageType' with no type ./DLD-FUNCTIONS/__magick_read__.cc: In function 'octave_value magick_to_octave_value(int)': ./DLD-FUNCTIONS/__magick_read__.cc:842: error: redefinition of 'octave_value magick_to_octave_value(int)' ./DLD-FUNCTIONS/__magick_read__.cc:810: error: 'octave_value magick_to_octave_value(int)' previously defined here ./DLD-FUNCTIONS/__magick_read__.cc:844: error: 'magick' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:846: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:846: error: 'BilevelType' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:847: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:847: error: 'GrayscaleType' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:848: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:848: error: 'GrayscaleMatteType' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:851: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:851: error: 'PaletteType' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:852: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:852: error: 'PaletteMatteType' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:855: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:855: error: 'TrueColorType' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:856: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:856: error: 'TrueColorMatteType' was not declared in this scope ./DLD-FUNCTIONS/__magick_read__.cc:857: error: 'Magick' has not been declared ./DLD-FUNCTIONS/__magick_read__.cc:857: error: 'ColorSeparationType' was not declared in this scope
./DLD-FUNCTIONS/__magick_read__.cc: At global scope:
./DLD-FUNCTIONS/__magick_read__.cc:842: warning: unused parameter 'ImageType'
./DLD-FUNCTIONS/__magick_read__.cc:876: warning: unused parameter 'args'
./DLD-FUNCTIONS/__magick_read__.cc:810: warning: 'octave_value magick_to_octave_value(int)' defined but not used
make[2]: *** [pic/__magick_read__.o] Error 1
make[1]: *** [src] Error 2
make: *** [all] Error 2

Advice?

Ben




reply via email to

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