do_octave_atexit missing? does createOctaveComponent work? - redhawksdr

I made a short .m file
function myOutput = multiplyByConstant(myInput, myConstant=1)
myOutput = myInput * myConstant;
And then used the provided createOctaveComponent command to make it into a .. thing
I go into the generated folder and try to run build.sh, but the build won't work.
multiplyByConstant_base.cpp:69:22: error: 'do_octave_atexit' was not declared at this scope.
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.
Have I missed some crucial step? Can I replace do_octave_atexit with something else?
EDIT:
I'm using:
Ocateve 3.8.2
REDHAWK 2.0.4

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.
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.

Related

eclipse javafx variables unresolved

When I create a new javaFX project the javaFX variables are unresolved. I use java 8 (121) and eclipse Neon on which I installed e(fx)clipse. OS is Linux Mint 18.1. What I did:
I uninstalled and installed e(fx)clipse again, that didn't help
In another post I read that someone had solved the problem by adding
jfxrt.jar to the build path. I searched for this file but it is not present on my file system
Anybody any idea what is wrong in my setup?
Edit
James_D suggested adding openjfx. I read documentation of openjfx and it says that only a subset is implemented. I decided to install the oracle JDK and adjust the building path with a reference to the oracle version of jfxrt. That worked. I wonder whether it wouldn't be better to switch to the oracle version of JDK?

Configure program that uses gtk1.2

I am trying to build a program as most others available on linux:
configure, make, make install.
However when I try to configure it I get the following message:
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find GTK: Is gtk-config in path?
I have got gtk 2.x on the host machine. And when I run which and locate on gtk-config I get nothing back. Since I have the source what patches can I apply to fix this?
You need to install the development files for GTK 1.2; the name of the package depends on your distribution.
I'd like to warn you, though, that GTK 1.2 was last released 15 years ago, in 2001, and hasn't been updated since — which also implies that the application you're trying to build is also hopelessly outdated.
GTK+ 2.0.0 was also released in 2001 and it's currently in deep maintenance mode (the latest version is 2.24.29 and was released in 2015); GTK+ 3.0.0 was released in 2011, and it's the currently developed version of the API.
You cannot really apply patches to compile an application written with the GTK 1.x API using any newer major versions of GTK+ (e.g. 2.x or 3.x); each time the major version of GTK is bumped, the API is changed in a non-compatible way. You would need to port the application to the new API.
Additionally, if an application depends on GTK 1.x it's also likely that it will depend on older versions of existing libraries; or deprecated ones. You will need to find all the dependencies and ensure that they can be installed in parallel with the ones you have installed in your system.
You could try using the compatibility wrappers developed by OpenSUSE team that try to emulate GTK1.2 by some wrappers and/or automatically patching source code to be compiled, to be able to use GTK2.0 instead.
Have a look at https://github.com/openSUSE/gtk1-compat - perhaps it may work for you. I didn't test it, however, myself.

What happened to GNUHAWK?

I'm new to REDHAWK and I noticed that with REDHAWK 1.10 that GNUHAWK seems to be all but gone. Does anyone know any information about what happened to the it. It looks like it could be a really useful tool. And if it's only available on older versions I could you point me to a guide I haven't been able to find an installation guide for 1.9 either...
You can clone GNUHAWK from here and add it to your system: https://github.com/RedhawkSDR/integration-gnuhawk
The REDHAWK 1.9 distribution includes RPMs for GnuHawk. You can install them as you would any other RPM file. To find the RPM you need, go to http://sourceforge.net/projects/redhawksdr/files/redhawk/ and drill down for REDAWK 1.9.0 and your desired platform.
You may also want to check out the build instructions here: https://github.com/RedhawkSDR/integration-gnuhawk/tree/develop-1.9

Installing Light Table on CentOS 6.5

When trying to run Light table on my CentOS 6.5 I get this message:
/lib64/libc.so.6: version `GLIBC_2.15' not found
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
I dont want to install a newer glibc from source since I'm afraid to break other systems using the older version. Any advice on how to proceed?
I'm getting the same problem and, according to another answer there's no way around it. LightTable was compiled with more recent libraries that CentOS doesn't ship with. The alternative seems to build node-webkit from source (as stated on their GitHub page) but I haven't tried that yet. If I find a better solution I will update my reply.
Compiling fixed it for me.
They seem to have compiled it with an older version of gligc now.

Groovy plugin installation fails in STS 2.5.2 and 2.7

I have tried installing Groovy plugin via STS's dashboard install feature in both 2.7 (the version I downloaded initially which was the latest version at the time). My colleague recommended downloading 2.5.2, the version he is using, so I did; however the Groovy plugin installer still fails. It starts with:
Cannot complete the install because of a conflicting dependency.
Software being installed: Groovy-Eclipse Feature 2.5.2.xx-20110808-1400-e36 (org.codehaus.groovy.eclipse.feature.feature.group 2.5.2.xx-20110808-1400-e36)
Windows 7 64B
groovy v 1.8.2
grails v 1.3.7
jvm 1.6.0_26
Greatly appreciate any hints/recommendations/ideas. THANK YOU!
Make sure that your STS install is in a directory where the current user has write permissions. Also, there is a problem with installing into the Program Files directory (it is not really writable, even if you think it is).
The reason for this problem is the feature patch that comes with Groovy-Eclipse must be installed into the same directory as the rest of STS (an Eclipse limitation). This patch is the thing that patches the jdt compiler so that it can also compile groovy code.

Resources