From: Quentin S. <qsp...@ie...> - 2005-11-03 19:36:53
|
I tried compiling the cvs version of octave-forge with the cvs version of octave, and two functions failed to compile: 1. main/fixed/fixedNDArray.cc fixedNDArray.o fixedNDArray.cc:407:59: error: macro "MX_ND_REDUCTION" passed 5 arguments, but takes just 3 fixedNDArray.cc:421:61: error: macro "MX_ND_REDUCTION" passed 5 arguments, but takes just 3 fixedNDArray.cc:436:61: error: macro "MX_ND_REDUCTION" passed 5 arguments, but takes just 3 This appears to be caused by recent changes to octave. I don't know enough about this code to debug it, but from looking at it, it appears that this macro has changed periodically in the past and there is already some cruft in the code to handle different cases. To whoever fixes this I suggest removing the old stuff since we are trying to clean up before octave 3.0. 2. main/image/pngread.cc /usr/include/pngconf.h:307: error: expected constructor, destructor, or type conversion before ‘.’ token /usr/include/pngconf.h:308: error: ‘__dont__’ does not name a type pngread.cc: In function ‘canvas* load_canvas(char*)’: pngread.cc:156: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result I'm not sure what's causing this. I'm using Fedora Core 4, with libpng-1.2.8-2 installed, and the compiler is gcc 4.0.1. I have a related question to this. I see that octave-forge now has the option of using ImageMagick++, but I didn't follow the earlier discussion about this closely. Is this intended to provide new features that are unavailable in libjpg and libpng, or does it provide an alternate way of getting the same features? This will influence whether I add ImageMagick-c++-devel as a build dependency for the Fedora Extras octave-forge package. -Quentin |