I managed to hack my way through the Makefile and now at least I can manage
to :
make fft
with just a few warnings, this is the output:
gcc -Wall -pedantic -g -O2 -fPIC -I. `Magick-config --cflags` -c
fft.c-I/opt/imagemagick/im_install/include/ImageMagick
-L/opt/imagemagick/im_install/lib -L. -o fft.o
In file included from
/opt/imagemagick/im_install/include/ImageMagick/magick/MagickCore.h:141,
from fft.c:14:
/opt/imagemagick/im_install/include/ImageMagick/magick/magick-type.h:120:
warning: ISO C90 does not support 'long long'
/opt/imagemagick/im_install/include/ImageMagick/magick/magick-type.h:121:
warning: ISO C90 does not support 'long long'
In file included from
/opt/imagemagick/im_install/include/ImageMagick/magick/MagickCore.h:160,
from fft.c:14:
/opt/imagemagick/im_install/include/ImageMagick/magick/deprecate.h:75:
warning: ISO C90 does not support 'long long'
/opt/imagemagick/im_install/include/ImageMagick/magick/deprecate.h:76:
warning: ISO C90 does not support 'long long'
fft.c:266:38: warning: C++ style comments are not allowed in ISO C90
fft.c:266:38: warning: (this will be reported only once per input file)
fft.c:667:5: warning: imaginary constants are a GCC extension
I have attached in this email the Makefile, where I configured the paths for
the ImageMagick.h header file which does not get found otherwise..
Please have a look and possibly tell me if I am doing the thing right...
My problem is that now I would like to compile the other sources available
with this FFT implementation (such as th demo.c implementation for example)
But when I
make demo
I get the following trace:
gcc -Wall -pedantic -g -O2 -fPIC -I. `Magick-config --cflags` -c
fft.c-I/opt/imagemagick/im_install/include/ImageMagick
-L/opt/imagemagick/im_install/lib -L. -o fft.o
In file included from
/opt/imagemagick/im_install/include/ImageMagick/magick/MagickCore.h:141,
from fft.c:14:
/opt/imagemagick/im_install/include/ImageMagick/magick/magick-type.h:120:
warning: ISO C90 does not support 'long long'
/opt/imagemagick/im_install/include/ImageMagick/magick/magick-type.h:121:
warning: ISO C90 does not support 'long long'
In file included from
/opt/imagemagick/im_install/include/ImageMagick/magick/MagickCore.h:160,
from fft.c:14:
/opt/imagemagick/im_install/include/ImageMagick/magick/deprecate.h:75:
warning: ISO C90 does not support 'long long'
/opt/imagemagick/im_install/include/ImageMagick/magick/deprecate.h:76:
warning: ISO C90 does not support 'long long'
fft.c:266:38: warning: C++ style comments are not allowed in ISO C90
fft.c:266:38: warning: (this will be reported only once per input file)
fft.c:667:5: warning: imaginary constants are a GCC extension
gcc -Wall -pedantic -g -O2 -fPIC -I. `Magick-config --cflags`
demo.c-I/opt/imagemagick/im_install/include/ImageMagick
-L/opt/imagemagick/im_install/lib -L. `Magick-config --ldflags --libs`
-lfftw3 fft.o -o demo
In file included from
/opt/imagemagick/im_install/include/ImageMagick/magick/MagickCore.h:141,
from demo.c:3:
/opt/imagemagick/im_install/include/ImageMagick/magick/magick-type.h:120:
warning: ISO C90 does not support 'long long'
/opt/imagemagick/im_install/include/ImageMagick/magick/magick-type.h:121:
warning: ISO C90 does not support 'long long'
In file included from
/opt/imagemagick/im_install/include/ImageMagick/magick/MagickCore.h:160,
from demo.c:3:
/opt/imagemagick/im_install/include/ImageMagick/magick/deprecate.h:75:
warning: ISO C90 does not support 'long long'
/opt/imagemagick/im_install/include/ImageMagick/magick/deprecate.h:76:
warning: ISO C90 does not support 'long long'
/home/mattia/tmp/cc8iWZiR.o: In function `main':
/opt/imfft/trunk/demo.c:34: undefined reference to `MagickCoreGenesis'
/opt/imfft/trunk/demo.c:35: undefined reference to `AcquireExceptionInfo'
/opt/imfft/trunk/demo.c:36: undefined reference to `AcquireImageInfo'
fft.o: In function `printImage':
/opt/imfft/trunk/fft.c:24: undefined reference to `AcquireExceptionInfo'
/opt/imfft/trunk/fft.c:26: undefined reference to `AcquireImageInfo'
fft.o: In function `snap':
/opt/imfft/trunk/fft.c:34: undefined reference to `AcquireExceptionInfo'
fft.o: In function `ffto':
/opt/imfft/trunk/fft.c:563: undefined reference to `AcquireExceptionInfo'
fft.o: In function `InvFourierImage':
/opt/imfft/trunk/fft.c:465: undefined reference to `AcquireExceptionInfo'
/opt/imfft/trunk/fft.c:484: undefined reference to `GetImageProperty'
/opt/imfft/trunk/fft.c:493: undefined reference to `GetImageProperty'
fft.o: In function `ffti':
/opt/imfft/trunk/fft.c:204: undefined reference to `AcquireExceptionInfo'
/opt/imfft/trunk/fft.c:400: undefined reference to `GetImageProperty'
/opt/imfft/trunk/fft.c:400: undefined reference to `SetImageProperty'
/opt/imfft/trunk/fft.c:449: undefined reference to `GetImageProperty'
/opt/imfft/trunk/fft.c:449: undefined reference to `SetImageProperty'
fft.o: In function `FourierImage':
/opt/imfft/trunk/fft.c:51: undefined reference to `GetImageProperty'
/opt/imfft/trunk/fft.c:54: undefined reference to `GetImageProperty'
collect2: ld returned 1 exit status
make: *** [demo] Error 1
Can anyone please help me with any suggestions regarding how I can fix these
problems? The Makefile?
I would again appreciate a lot
Regards
--
Mattia
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users