|
From: | Orion Poplawski |
Subject: | Re: Help updating swig for octave 4.0.0 |
Date: | Thu, 9 Jul 2015 21:18:21 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
On 07/09/2015 06:03 PM, Mike Miller wrote:
Hey Orion, On Thu, Jul 09, 2015 at 16:40:25 -0600, Orion Poplawski wrote:So I see that the *_OCTAVE_ALLOCATOR defines are gone, so I removed the from the above. But I suspect we aren't registering the swig_ref type properly leading to the error: error: octave_base_value::print (): wrong type argument 'swig_ref'This is because octave_base_value::print has a new signature in 4.0, it needs to be a non-const member function now. You can see an example in the following changeset in the communications package for 4.0: http://hg.code.sf.net/p/octave/communications/rev/7df9c9337179 I then went back and added some conditional logic to make it work with both 3.8 and 4.0 in a later change. Was that the only remaining error in swig?
Thanks. I think I had just managed to figure that out, but nice to have confirmation. I've updated the swig pull request with that change and swig 3.0.6 gets farther now on Fedora Rawhide with octave 4.0.0.
Now getting: checking octave testcase default_arg_values error: function delete_B requires at least 1 arguments error: called from ./default_constructor_runme.m at line 17 column 7 and several messages like this: checking octave testcase refcount (with run test)refcount_wrap.cxx: In static member function 'static octave_value swig::traits_from_stdseq<Seq, T>::from(const sequence&)':
refcount_wrap.cxx:3477:30: error: 'INT_MAX' was not declared in this scope if (size <= (size_type)INT_MAX) { ^ ../../../Examples/Makefile:444: recipe for target 'octave_cpp' failed -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane address@hidden Boulder, CO 80301 http://www.cora.nwra.com
[Prev in Thread] | Current Thread | [Next in Thread] |