do_octave_atexit丢失了吗? createOctaveComponent工作吗? [英] do_octave_atexit missing? does createOctaveComponent work?
问题描述
我做了一个简短的.m文件
I made a short .m file
function myOutput = multiplyByConstant(myInput, myConstant=1)
myOutput = myInput * myConstant;
然后使用提供的 createOctaveComponent 命令将其变成..事物
And then used the provided createOctaveComponent command to make it into a .. thing
我进入生成的文件夹并尝试运行build.sh,但是该构建无法正常工作.
I go into the generated folder and try to run build.sh, but the build won't work.
multiplyByConstant_base.cpp:69:22:错误:在此范围内未声明"do_octave_atexit".
multiplyByConstant_base.cpp:69:22: error: 'do_octave_atexit' was not declared at this scope.
我尝试在所有.h文件上运行grep,尽管那很重要,但是该方法未导出到任何地方.
I tried running grep over all the .h files I though that would matter, but the method was not exported anywhere.
I found a post here: http://octave.1599824.n4.nabble.com/exposing-do-octave-atexit-in-the-API-td4661829.html
他们讨论有关公开所述方法的问题.
They discuss about exposing said method.
我错过了一些关键步骤吗?我可以用其他东西代替do_octave_atexit吗?
Have I missed some crucial step? Can I replace do_octave_atexit with something else?
我正在使用:
- Ocateve 3.8.2
- REDHAWK 2.0.4
推荐答案
更新:此兼容性问题已在REDHAWK 2.0.6和REDHAWK 2.1.0中解决.您需要重新生成组件才能使更改生效.
Update: This compatibility issue has been resolved in REDHAWK 2.0.6 and REDHAWK 2.1.0. You will need to regenerate your component for the change to take effect.
听起来确实像降级Octave可以使您启动并运行较旧的REDHAWK版本. REDHAWK 1.10.0-2.0.5中的代码生成器与Octave 3.4.3-3.6.4兼容(我不记得确切的中断时间,但是我记得它在3.6.4之后的次要版本中). CentOS 6附带了3.4.3.这是REDHAWK< = 2.0.5和CentOS 7附带的Octave版本的已知兼容性问题.
It definitely sounds like downgrading Octave will get you up and running for older REDHAWK versions. The code generators in REDHAWK 1.10.0-2.0.5 are compatible with Octave 3.4.3-3.6.4 (I don't recall exactly when the break happened, but I remember it being in a sub-minor release after 3.6.4). 3.4.3 is what ships with CentOS 6. This is a known compatibility issue with REDHAWK <= 2.0.5 and the version of Octave that ships with CentOS 7.
这篇关于do_octave_atexit丢失了吗? createOctaveComponent工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!