On Tuesday 09 December 2003 20:16, Michal Lijowski wrote:
Hello,
I compiled Olena 0.9 on Intel P4 RedHat Fedora with
gcc 3.3.2 compiler. But I encountered the following errors
when running make check. Before I compiled Olena I
installed fftw-2.1.5 and both libraries librfftw.a and
libfftw.a are located in /usr/local/directory. I did not
disabled fft option when configuring Olena build.
I don't know why manual compilation of the fftw library does not create
dynamic libraries. Since static libraries are used, the fftw flags must be
located at the end of the compilation line. Here is a patch (applied on prcs,
you may want to have a look at the latest snapshot on
http://www.lrde.epita.fr/~burrus_n/www-lrde/olena/snapshots/).
Thank you for reporting the problem!
------------------------------------------------------------------------------
Index: olena/ChangeLog
from Nicolas Burrus <burrus_n(a)lrde.epita.fr>
* tests/core/Makefile.am: Put fftw libraries in LDADD instead of
LDFLAGS.
* tests/transforms/Makefile.am: Likewise.
Index: olena/tests/transforms/Makefile.am
--- olena/tests/transforms/Makefile.am Tue, 05 Aug 2003 21:39:33 +0200
burrus_n (oln/i/40_Makefile.a 1.11 640)
+++ olena/tests/transforms/Makefile.am Tue, 09 Dec 2003 21:15:26 +0100
burrus_n (oln/i/40_Makefile.a 1.11 640)
@@ -1,6 +1,6 @@
include ../check/Makefile.runtests
-LDFLAGS_RUNTESTS += $(FFTW_LDFLAGS)
+LDADD_RUNTESTS += $(FFTW_LDFLAGS)
CXXFLAGS_RUNTESTS += $(FFTW_CFLAGS)
CLEANFILES += fft_trans_clipped.pgm \
Index: olena/tests/core/Makefile.am
--- olena/tests/core/Makefile.am Fri, 01 Aug 2003 02:45:53 +0200 burrus_n
(oln/s/10_Makefile.a 1.7.1.1 640)
+++ olena/tests/core/Makefile.am Tue, 09 Dec 2003 21:14:44 +0100 burrus_n
(oln/s/10_Makefile.a 1.7.1.1 640)
@@ -6,7 +6,8 @@
check_PROGRAMS = multiple_sources
multiple_sources_SOURCES = multiple_sources_1.cc multiple_sources_2.cc
-multiple_sources_LDFLAGS = $(AM_LDFLAGS) $(FFTW_LDFLAGS)
+multiple_sources_LDFLAGS = $(AM_LDFLAGS)
+multiple_sources_LDADD = $(LDADD) $(FFTW_LDFLAGS)
multiple_sources_CXXFLAGS = $(AM_CXXFLAGS) $(FFTW_CFLAGS)
check-image-print:
------------------------------------------------------------------------------