Package: fftw-docs Version: 2.1.3-19 Severity: normal On Fri, Jul 14, 2006 at 11:20:18PM -0400, Pierre Thibault wrote: > Hello! > > I am getting started at FFTW + MPI and would like to make some tests. > The package fftw-docs contains examples but the Makefile's are not > appropriate for the compilation (they seem to assume a precise > location in the source tree, and require files that are not present). > Is there a simple way to have these compile or should I apt-get source > fftw2/fftw-dev and try the compilation somewhere in there?
Hello Pierre, first of all, i would suggest using fftw3 instead of fftw2. fftw-docs should indeed ship a working makefile, so this is a bug. additionnaly, the files should not be compressed. to compile the tests fftw-docs ships, i had to run the following: # copy the directory in the current path and cd into it cp -a /usr/share/doc/fftw-docs/examples . cd examples # gunzip the examples files for i in */*.gz; do gunzip $i; done # compile tests cd tests gcc -I. -c fftw_test.c -o fftw_test.o gcc -I. -c rfftw_test.c -o rfftw_test.o gcc -I. -c test_main.c -o test_main.o gcc -lfftw test_main.o fftw_test.o -o test_fftw gcc -lfftw -lrfftw test_main.o rfftw_test.o -o test_rfftw cd .. # compile mpi examples cd mpi gcc -c test_sched.c -o test_sched.o gcc -I/usr/lib/mpich/include -I../tests -c fftw_mpi_test.c -o fftw_mpi_test.o gcc -I/usr/lib/mpich/include -I../tests -c rfftw_mpi_test.c -o rfftw_mpi_test.o gcc -I/usr/lib/mpich/include -c test_transpose_mpi.c -o test_transpose_mpi.o gcc -lfftw_mpi test_sched.o -o test_sched gcc -lfftw_mpi fftw_mpi_test.o ../tests/test_main.o -o fftw_mpi_test gcc -lrfftw_mpi rfftw_mpi_test.o ../tests/test_main.o -o rfftw_mpi_test gcc -lfftw_mpi test_transpose_mpi.o -o test_transpose_mpi cd .. # compile threads examples cd threads gcc -I../tests -I. -c rfftw_threads_test.c -o rfftw_threads_test.o gcc -I../tests -c fftw_threads_test.c -o fftw_threads_test.o gcc -lfftw_threads fftw_threads_test.o ../tests/test_main.o -o fftw_threads_test gcc -lrfftw_threads rfftw_threads_test.o ../tests/test_main.o -o rfftw_threads_test cd .. # end of compilation i will craft such commands into Makefiles installed along the examples. thanks for your report. Paul -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]