Closed jcupitt closed 4 years ago
The Dockerfile has comments in, but the process is:
linux_64-gcc4.8
(to make gnu_64-gcc4.8
).-lopenblas
in LIB_NEWMAT
(incorrectly, I think), but that ends up USRLDFLAGS
in MSM, so it won't link since it'll come before the object that needs the library.-lopenblas
to the end of the MSM link line to fix this.-lopenblas
in turn needs libgfortran.so.3
, but FSL is missing a symlink for libgfortran.so
, so -lgfortran
won't work./usr/local/fsl/lib/libgfortran.so.3
to the MSM link line.were also having some trouble compiling MSM on ubuntu 18.04, with an error regarding newmat: /usr/local/fsl/include/utils/log.h:85:10: fatal error: newmatap.h: No such file or directory
you think this process could work for us as well?
Yes, it should work. I've updated it to use FSL 6.0.1, which is quite a bit better.
im using fsl 6.0.0 would it be a problem?
Unfortunately FSL is changing rapidly in the backend at the moment. I don't know that this is the same problem. Try it and if it doesn't work post to FSL list and I will try and help you fix it with their support.
An older version of that docker script worked for 6.0.0, the current version is updated for 6.0.2.
Old 6.0.0 build:
The current one works for 6.0.2, I built it myself yesterday.
we got this error:
/bin/sh: 1: cannot open /usr/local/src/fsl/fsl.sh.patch: No such file The command '/bin/sh -c cd $fsl_prefix/etc/fslconf && patch < /usr/local/src/fsl/fsl.sh.patch' returned a non-zero code: 2
do you know where i can get fsl.sh.patch?
Really you need to post these questions to the FSL list. I do not know the answer but they will.
Incidentally - wont the binaries from the release tab work for you?
indeed it does. i didnt know it was an option....
thanks
Hello, I've made a Dockerfile that builds MSM from source on Ubuntu 16.04, perhaps it could be useful:
https://github.com/jcupitt/docker-builds/blob/master/msm-fsl6-ubuntu16.04/Dockerfile
I had to make a few small changes to FSL to get it to work with Ubuntu 16.04, and also change the libs list for MSM itself:
https://github.com/ecr05/MSM_HOCR/commit/a74ada542b9845ddbe1758a8f276e4e3496c4dd3
There's probably a better way to get it to link, of course.