Re: FFTW + jna + java
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 dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
FFTW + jna + java
Hey everyone, 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" Has anyone an idea how to fix this ? I'm running FreeBSD 8.0-RC1 on amd64 with jdk16, fftw, and jogl installed from ports. I downloaded the jna.jar from the jna website ; FreeBSD Rena.FStaals.LAN 8.0-RC1 FreeBSD 8.0-RC1 #0: Mon Nov 2 13:45:35 CET 2009 r...@rena.fstaals.lan:/usr/obj/usr/src/sys/RENAKERNEL amd64 fr...@rena# uname -a FreeBSD Rena.FStaals.LAN 8.0-RC1 FreeBSD 8.0-RC1 #0: Mon Nov 2 13:45:35 CET 2009 r...@rena.fstaals.lan:/usr/obj/usr/src/sys/RENAKERNEL amd64 fr...@rena# pkg_info -Ex jdk diablo-jdk-1.6.0.07.02_6 jdk-1.6.0.3p4_12 fr...@rena# pkg_info -Ex fftw fftw-2.1.5_6 fftw3-3.2.2_1 fr...@rena# pkg_info -Ex jogl jogl-1.1.1 jna.jar version: 3.2.3 downloaded from https://jna.dev.java.net/ The VM-arguments when starting the application : -Djna.library.path=/usr/local/lib -Djava.libary.path=/usr/local/lib Anyone an idea what could be causing this, and/or how to fix it ? -- - Frank -- - Frank ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"