[aubio-user] Can not compile java-aubio wrappers on Mac OSX 10.8.5

Martin Pernollet martin.pernollet at gmail.com
Sat Sep 13 14:15:55 CEST 2014


Hi,

Thanks for sharing this great framework!

I am trying to build java-aubio on MacOSX (10.8.5).

While running make, there are build error such as :
aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1fvec':
aubio_wrap.c:207: error: too many arguments to function 'new_fvec'
*(see full error stack at end of mail)*

Here were my steps to prepare the build :

*Get latest binaries*
$ brew install aubio
==> Downloading
https://downloads.sf.net/project/machomebrew/Bottles/aubio-0.4.1.mountain_lion.bottle.tar.gz
########################################################################
100,0%
==> Pouring aubio-0.4.1.mountain_lion.bottle.tar.gz
  /usr/local/Cellar/aubio/0.4.1: 61 files, 808K


*Make jni.h be visible to gcc*
$ export
CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/

NOTE : this step should be mentioned in the read me. I can commit an update
if you want.

*I also tried other jni.h folders listed with*
$ locate jni.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h

*Build*
$ ./configure && make

And got this build error. Do you have any suggestions?

Thanks in advance for your help!

Martin

aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1fvec':
aubio_wrap.c:207: error: too many arguments to function 'new_fvec'
aubio_wrap.c: In function 'Java_aubiowrapperJNI_fvec_1get_1channel':
aubio_wrap.c:267: warning: cast to pointer from integer of different size
aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1cvec':
aubio_wrap.c:311: error: too many arguments to function 'new_cvec'
aubio_wrap.c: In function 'Java_aubiowrapperJNI_cvec_1get_1norm_1channel':
aubio_wrap.c:433: warning: cast to pointer from integer of different size
aubio_wrap.c: In function 'Java_aubiowrapperJNI_cvec_1get_1phas_1channel':
aubio_wrap.c:449: warning: cast to pointer from integer of different size
aubio_wrap.c: In function 'Java_aubiowrapperJNI_cvec_1get_1norm':
aubio_wrap.c:463: warning: cast to pointer from integer of different size
aubio_wrap.c: In function 'Java_aubiowrapperJNI_cvec_1get_1phas':
aubio_wrap.c:477: warning: cast to pointer from integer of different size
aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1aubio_1fft':
aubio_wrap.c:493: error: too many arguments to function 'new_aubio_fft'
aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1aubio_1filter':
aubio_wrap.c:647: error: too many arguments to function 'new_aubio_filter'
aubio_wrap.c: In function
'Java_aubiowrapperJNI_new_1aubio_1filter_1a_1weighting':
aubio_wrap.c:713: error: too many arguments to function
'new_aubio_filter_a_weighting'
aubio_wrap.c: In function
'Java_aubiowrapperJNI_new_1aubio_1filter_1c_1weighting':
aubio_wrap.c:745: error: too many arguments to function
'new_aubio_filter_c_weighting'
aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1aubio_1filter_1biquad':
aubio_wrap.c:815: error: too many arguments to function
'new_aubio_filter_biquad'
aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1aubio_1pvoc':
aubio_wrap.c:1112: error: too many arguments to function 'new_aubio_pvoc'
aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1aubio_1pitch':
aubio_wrap.c:1176: error: too many arguments to function 'new_aubio_pitch'
aubio_wrap.c: In function 'Java_aubiowrapperJNI_new_1aubio_1tempo':
aubio_wrap.c:1260: error: too many arguments to function 'new_aubio_tempo'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aubio.org/pipermail/aubio-user/attachments/20140913/7f75b8c7/attachment.html>


More information about the aubio-user mailing list