-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Under octave-5.2.0 mps_roots([1 0 0],'s') and mps_roots([1 0 0 0 0 0 0],'u') fail #24
Comments
Indeed, I have to admit that the Octave interface is practically not maintained anymore; however, the MATLAB interface should work under Octave, it is sufficient to call the configure script with:
I am inclined to remove the Octave files in future releases, and use the mex file only (to avoid duplicating the effort). Could you try if that works for you? |
On Wed, 02 Sep 2020 03:54:30 -0700 Leonardo Robol ***@***.***> wrote:
Indeed, I have to admit that the Octave interface is practically not
maintained anymore; however, the MATLAB interface should work under
Octave, it is sufficient to call the configure script with:
./configure MEX=mkoctfile --mex I am inclined to remove the Octave
files in future releases, and use the mex file only (to avoid
duplicating the effort). Could you try if that works for you?
Hi,
There seems to be a conflict between mps_boolean and the standard
library boolean type:
make[3]: Entering directory
'/home/robj/TMP/MPSolve-master/examples/matlab'
+ mkoctfile --mex -I../../include -g -I../../include -c
mps_roots_string.c
In file included from
/usr/local/octave-5.2.0/include/octave-5.2.0-robj/octave/mexproto.h:58,
from /usr/local/octave-5.2.0/include/octave-5.2.0-robj/octave/mex.h:65,
from mps_roots_string.c:1: ../../include/mps/types.h:10:3: error:
expected identifier before numeric constant
10 | { false = 0, true = 1
} mps_boolean; | ^~~~~
make[3]: *** [Makefile:710: mps_roots_string.o] Error 1
make[3]: Leaving directory
'/home/robj/TMP/MPSolve-master/examples/matlab'
+ eval exit 1
++ exit 1
Best regards,
Rob Jenssen
|
There is a compile time option to avoid these defines, since they are in the mex headers as well. For MATLAB it works, and for Octave it used to work; apparently it doesn't anymore. I'll investigate this as soon as I find some time. |
Firstly, thank you for the mpsolve package.
Building the mpsolve-3.1.7 zipfile downloaded from github.com:
Testing:
Unfortunately, the version of MPSolve available at
https://numpi.dm.unipi.it/_media/software/mpsolve/mpsolve-3.2.1.tar.gz
fails to compile under octave-5.2.0 because octave_support.h, mps_polyeig.m and DESCRIPTION are missing from examples/octave. However, at the command line:
Compiling with debugging symbols:
and running valgrind:
The text was updated successfully, but these errors were encountered: