Export to GitHub

musicip-libofa - issue #1

Build fails on OS/X 10.4


Posted on Feb 12, 2008 by Happy Panda

On OS/X 10.4 (and possibly other versions), the generated libtool does not directly accept the "- framework Accelerate" option. Instead, it must be invoked as "-XCClinker -framework - XCClinker Accelerate". Here's a patch to fix that.

--- configure.in.orig 2006-05-10 11:00:19.000000000 -0700 +++ configure.in 2008-02-12 13:05:40.000000000 -0800 @@ -76,7 +76,7 @@

if test x$os = xdarwin; then AC_MSG_NOTICE([Using vDSP on OS X]) - LIBS="$LIBS -framework Accelerate" + LIBS="$LIBS -XCClinker -framework -XCClinker Accelerate" FFT_WRAPPER="fftlibvdsp_op.cpp" AM_CONDITIONAL(FFTW3, false) AM_CONDITIONAL(VDSP, true)

Comment #1

Posted on Nov 4, 2009 by Happy Bird

Build fails on 10.5.8 as well. And this bug has been around for nearly two years already. Which is a pretty good sign that this project is abandoned.

Comment #2

Posted on Nov 4, 2009 by Happy Bird

Build failure on OS X 10.5.8 is

Undefined symbols: "_create_fftsetupD", referenced from: FFTLib_op::Initialize(int, bool)in fftlibvdsp_op.o "_destroy_fftsetupD", referenced from: FFTLib_op::Initialize(int, bool)in fftlibvdsp_op.o "_fft_zripD", referenced from: FFTLib_op::ComputeFrame(int, double*, double*)in fftlibvdsp_op.o "_ctozD", referenced from: FFTLib_op::ComputeFrame(int, double*, double*)in fftlibvdsp_op.o ld: symbol(s) not found

Comment #3

Posted on Dec 31, 2009 by Massive Ox

On 10.6 I needed this diff along with the above

--- libofa-0.9.3.orig/lib/fftlibvdsp_op.cpp 2006-05-10 11:00:57.000000000 -0700 +++ libofa-0.9.3/lib/fftlibvdsp_op.cpp 2009-12-30 22:11:22.000000000 -0800 @@ -23,12 +23,12 @@ { delete[] A.realp; delete[] A.imagp; - destroy_fftsetupD(SetupReal); + vDSP_destroy_fftsetupD(SetupReal); }

A.realp = new double[ N/2];
A.imagp = new double[ N/2];

- SetupReal = create_fftsetupD(Exp, 0); + SetupReal = vDSP_create_fftsetupD(Exp, 0); Init = true; }

@@ -46,9 +46,9 @@ void FFTLib_op::ComputeFrame(int N, double *in, double out) { - ctozD ((DSPDoubleComplex) in, 2, &A, 1, N/2 ); + vDSP_ctozD ((DSPDoubleComplex*) in, 2, &A, 1, N/2 );

  • fft_zripD(SetupReal, &A, 1, Exp, FFT_FORWARD);
  • vDSP_fft_zripD(SetupReal, &A, 1, Exp, FFT_FORWARD);

    int i,j; for (i=0; i

Comment #4

Posted on Dec 29, 2010 by Grumpy Kangaroo

I still get

Undefined symbols: "_vDSP_ctozD", referenced from: FFTLib_op::ComputeFrame(int, double*, double*)in fftlibvdsp_op.o "_vDSP_fft_zripD", referenced from: FFTLib_op::ComputeFrame(int, double*, double*)in fftlibvdsp_op.o "_vDSP_create_fftsetupD", referenced from: FFTLib_op::Initialize(int, bool)in fftlibvdsp_op.o "_vDSP_destroy_fftsetupD", referenced from: FFTLib_op::Initialize(int, bool)in fftlibvdsp_op.o ld: symbol(s) not found

Comment #5

Posted on Jul 25, 2011 by Quick Giraffe

I'm getting some build errors on OS X (10.5.8 PPC) as well. Please see the attached log for full info, but it looks like similar undefined symbols.

Attachments

Comment #6

Posted on Aug 23, 2011 by Quick Cat

Try this command to regenerate configure file after the above.

$ autoconf

Status: New

Labels:
Type-Defect Priority-Medium