Package Details: spm12 7771-1

Git Clone URL: https://aur.archlinux.org/spm12.git (read-only, click to copy)
Package Base: spm12
Description: A MATLAB toolbox for the analysis of brain imaging data sequences
Upstream URL: http://www.fil.ion.ucl.ac.uk/spm/
Licenses: GPL2
Submitter: fishburn
Maintainer: Roosted7
Last Packager: Roosted7
Votes: 2
Popularity: 0.000000
First Submitted: 2017-06-26 03:08 (UTC)
Last Updated: 2022-01-16 19:07 (UTC)

Dependencies (1)

Required by (1)

Sources (1)

Latest Comments

Roosted7 commented on 2022-01-16 21:35 (UTC)

Hi! No, I don't have or use octave. I checked against 3 MATLAB versions on 2 machines. Does octave also need compiled mex files? Does it (incorrectly) detect MATLAB? The mex directory is only set to the MATLAB location in the PKGBUILD.

liamtimms commented on 2022-01-16 19:33 (UTC) (edited on 2022-01-16 19:34 (UTC) by liamtimms)

Hi, @roosted7 have you tested this with octave? I'm getting a compliation error and haven't tested against MATLAB yet.

/bin/mex -O -largeArrayDims CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -fPIC" CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -fPIC" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -c spm_vol_utils.c -DSPM_UNSIGNED_CHAR
/bin/mex: unrecognized option '-O'
/bin/mex: unrecognized option '-largeArrayDims'
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021/Arch Linux) (preloaded format=mex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `"CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -f
exceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-cla
sh-protection -fcf-protection -fPIC"'.
<*> ...ck-clash-protection -fcf-protection -fPIC"
                                                  CXXFLAGS=-march=x86-64 -mt...

liamtimms commented on 2019-09-23 22:13 (UTC)

Hi, it looks like something is off with the conditional statement about MATLAB path. Installing MATLAB into /opt/matlab/R2019b does lead to the correct path being printed.

However, even though the correct path is identified, the compilation does not appear to use MATLAB unless the _BUILD_MATLAB variable is manually set to "true" at the top of the file at which point it builds as expected. I am not sure what the issue is with the the PKGBUILD as written but this has been repeatable across multiple machines and MATLAB appears to be ignored unless explicitly forced in this way.

amiki commented on 2018-04-10 12:25 (UTC) (edited on 2018-04-10 12:25 (UTC) by amiki)

Thanks for providing this package! When I read through the PKGBUILD I noticed that line 76 seems to be wrong. It currently is

75 # Build Octave

76 if [ "${_BUILD_MATLAB}" = true ]; then

While I think it should be

75 # Build Octave

76 if [ "${_BUILD_OCTAVE}" = true ]; then