FFTW + jna + java

Dan Nelson dnelson at allantgroup.com
Wed Nov 11 20:04:01 UTC 2009


In the last episode (Nov 11), Frank Staals said:
> 
> I'm trying to run a java application which uses JNA to use the native FFTW
> libraries.  The application was given as a netbeans project which was
> configured for use in Windows.  I changed the paths to the windows
> libraries to the FreeBSD versions.  However when I try to start the
> application from within netbeans it crashes with the following error
> message:
> 
> /libexec/ld-elf.so.1: /usr/local/lib/librfftw.so: Undefined symbol 
> "fftwnd_create_plan_aux"

That symbol is defined in libfftw.so; it looks like the librfftw.so builder
forgot to add a link dependency to fftw (if you run "ldd
/usr/local/lib/librfftw.so", you can see there are dependencies on libc and
libm, but not fftw).

Depending on how jna access shared libraries, you might be able to work
around it by having jna load the fftw library before rfftw.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list