kingctan / musicip-libofa

Automatically exported from code.google.com/p/musicip-libofa
0 stars 0 forks source link

Build fails on OS/X 10.4 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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)

Original issue reported on code.google.com by water...@maubi.net on 12 Feb 2008 at 9:09

GoogleCodeExporter commented 9 years ago
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.

Original comment by lucas.go...@gmail.com on 4 Nov 2009 at 2:10

GoogleCodeExporter commented 9 years ago
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

Original comment by lucas.go...@gmail.com on 4 Nov 2009 at 2:22

GoogleCodeExporter commented 9 years ago
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<N/2; i++)

Original comment by jon.n...@gmail.com on 31 Dec 2009 at 6:31

GoogleCodeExporter commented 9 years ago
 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

Original comment by david.de...@gmail.com on 29 Dec 2010 at 2:04

GoogleCodeExporter commented 9 years ago
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.

Original comment by DreadLor...@gmail.com on 25 Jul 2011 at 9:30

Attachments:

GoogleCodeExporter commented 9 years ago
Try this command to regenerate configure file after the above.

$ autoconf

Original comment by fks...@gmail.com on 23 Aug 2011 at 1:42