Closed haesleinhuepf closed 4 years ago
Did you run this script
And if so what was the output??
The build is annoyingly complicated because there is a pure native part, a native wrapper part, and the pure java part.
It's.a pitty that I didn't take notes last time I compiled this thing here. So when I run the script you mentioned, it outputs:
haase@pcs-MacBook native % ./cppbuild.sh
Detected platform "macosx-x86_64"
Building for platform "macosx-x86_64"
Installing "clij2fft"
~/code/clij2-fft/native/clij2fft/cppbuild ~/code/clij2-fft/native
TODO
~/code/clij2-fft/native
and it produces no files...
I guess I'll dig into the cmake files for a moment....
We need to fill in the MacOSX part of this script
It should call cmake with appropriate paths to generate build files, then call make and make install.
Then call this one again.
Let me know if this works. It should be just a matter of call cmake with the right paths.
I'm almost through, I just need to fix this:
haase@pcs-MacBook cppbuild % make
[ 50%] Linking CXX shared library libclij2fft.dylib
ld: warning: ignoring file /Users/haase/code/clij2-fft/lib/macosx/libclFFT.so, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 )
That does mean I have to build clfft myself, right?
Wondering how this worked earlier...
Solved it...
Thanks again Brian!
Hey Brian @bnorthan ,
I'm just trying to build it on MacOS and it somehow doesn't build the dylib file correctly. I hope you have an idea what goes wrong. After building, I copied over the two .so files and the .dylib from target/classes/net/...../macosx-x86-x64 to Fiji/lib/macosx. It obviously finds the files while executing the deconvolution, Fiji crashes with this error message:
But I don't see why it is looking for a method called "_deconv3d_32f_lp" ... the method is in fact called "deconv3d_32f_lp".
Do you have an idea what goes wrong in my build?
Thanks!
Cheers, Robert
P.S.: here comes the mvn package output: