New BlendAlgebra plugin install fail on Termux.
So,I moved to compile git of cinelerra-gg as promised and run into this: BlendAlgebraStart:10:10: fatal error: 'values.h' file not found and few more error lines like this on make install for shared libs termux build (blds/termux_dyn.bld). For what exactly values.h is used? ;)
ср, 26 февр. 2025 г., 20:28 Andrew Randrianasulu <[email protected]>:
So,I moved to compile git of cinelerra-gg as promised and run into this:
BlendAlgebraStart:10:10: fatal error: 'values.h' file not found
and few more error lines like this
on make install for shared libs termux build (blds/termux_dyn.bld).
For what exactly values.h is used? ;)
https://groups.google.com/g/comp.lang.mumps/c/p6TZgGmowR0 may be values.h can be replaced with float.h and limits.h on termux ?
I tried to make patch Now make install works on termux, but I am not sure how it affects other systems ср, 26 февр. 2025 г., 20:31 Andrew Randrianasulu <[email protected]>:
ср, 26 февр. 2025 г., 20:28 Andrew Randrianasulu <[email protected]
:
So,I moved to compile git of cinelerra-gg as promised and run into this:
BlendAlgebraStart:10:10: fatal error: 'values.h' file not found
and few more error lines like this
on make install for shared libs termux build (blds/termux_dyn.bld).
For what exactly values.h is used? ;)
https://groups.google.com/g/comp.lang.mumps/c/p6TZgGmowR0
may be values.h can be replaced with float.h and limits.h on termux ?
The provided examples seems to work when I apply the patch and just re-make the 2 plugins. I am going to do a full build though just in case. And I have not done any of my own tests yet. On Wed, Feb 26, 2025 at 11:10 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
I tried to make patch
Now make install works on termux, but I am not sure how it affects other systems
ср, 26 февр. 2025 г., 20:31 Andrew Randrianasulu <[email protected]
:
ср, 26 февр. 2025 г., 20:28 Andrew Randrianasulu <[email protected]
:
So,I moved to compile git of cinelerra-gg as promised and run into this:
BlendAlgebraStart:10:10: fatal error: 'values.h' file not found
and few more error lines like this
on make install for shared libs termux build (blds/termux_dyn.bld).
For what exactly values.h is used? ;)
https://groups.google.com/g/comp.lang.mumps/c/p6TZgGmowR0
may be values.h can be replaced with float.h and limits.h on termux ?
--
Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
Seems to work just fine. Found the following. Will still wait to hear back from SGE before checking it into GIT. /* This interface is obsolete. New programs should use <limits.h> and/or <float.h> instead of <values.h>. */ On Wed, Feb 26, 2025 at 11:10 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
I tried to make patch
Now make install works on termux, but I am not sure how it affects other systems
ср, 26 февр. 2025 г., 20:31 Andrew Randrianasulu <[email protected]
:
ср, 26 февр. 2025 г., 20:28 Andrew Randrianasulu <[email protected]
:
So,I moved to compile git of cinelerra-gg as promised and run into this:
BlendAlgebraStart:10:10: fatal error: 'values.h' file not found
and few more error lines like this
on make install for shared libs termux build (blds/termux_dyn.bld).
For what exactly values.h is used? ;)
https://groups.google.com/g/comp.lang.mumps/c/p6TZgGmowR0
may be values.h can be replaced with float.h and limits.h on termux ?
--
Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
On Wed, 26 Feb 2025, Phyllis Smith via Cin wrote:
Seems to work just fine. Found the following. Will still wait to hear back from SGE before checking it into GIT.
For what exactly values.h is used? ;)
Actually, values.h is not used. I added this header so that the user when writing blend program could use predefined constants like MAXINT, MAXFLOAT, etc.
/* This interface is obsolete. New programs should use <limits.h> and/or <float.h> instead of <values.h>. */
If there are already systems without values.h, then we have to remove this header. And the user must use actualized constants names (INT_MAX instead of MAXINT as defined in limits.h, FLT_MAX instead of MAXFLOAT as defined in float.h), should he need them. limits.h was already in BlendAlgebraStart/BlendProgramStart, the addition of float.h is in the Andrew's patch, everything OK. Phyllis, please check into GIT with Andrew's patch applied. Andrew, it is interesting, do the plugins also run under termux (and dynamically load the functions), have you tried? _______________________________________________________________________________ Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected] _______________________________________________________________________________
чт, 27 февр. 2025 г., 05:57 Georgy Salnikov via Cin < [email protected]>:
On Wed, 26 Feb 2025, Phyllis Smith via Cin wrote:
Seems to work just fine. Found the following. Will still wait to hear back from SGE before checking it into GIT.
For what exactly values.h is used? ;)
Actually, values.h is not used. I added this header so that the user when writing blend program could use predefined constants like MAXINT, MAXFLOAT, etc.
/* This interface is obsolete. New programs should use <limits.h> and/or <float.h> instead of <values.h>. */
If there are already systems without values.h, then we have to remove this header. And the user must use actualized constants names (INT_MAX instead of MAXINT as defined in limits.h, FLT_MAX instead of MAXFLOAT as defined in float.h), should he need them.
limits.h was already in BlendAlgebraStart/BlendProgramStart, the addition of float.h is in the Andrew's patch, everything OK.
Phyllis, please check into GIT with Andrew's patch applied.
Andrew, it is interesting, do the plugins also run under termux (and dynamically load the functions), have you tried?
I trued now, but it a bit confusing? I tried to load one m2ts file, select all, copy, protect track, add video track, paste. Thus I made two video tracks from same media. Then I tried to add BlendAlgebra with multiply program by dragging its icon from Resources window onto one of video tracks. It attached but complained it needs two tracks to process. I middle clicked on plugin bar and selected Change, and selected another video track as shared, then confirmed by clicking OK. Complain disappear, but so are buttons to change parameters on plugin's bar! And I can't see any difference on playback .... _______________________________________________________________________________
Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected]
_______________________________________________________________________________
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
On Thu, 27 Feb 2025, Andrew Randrianasulu wrote:
I tried to load one m2ts file, select all, copy, protect track, add video track, paste. Thus I made two video tracks from same media.
Then I tried to add BlendAlgebra with multiply program by dragging its icon from Resources window onto one of video tracks. It attached but complained it needs two tracks to process. I middle clicked on plugin bar and selected Change, and selected another video track as shared, then confirmed by clicking OK.
Complain disappear, but so are buttons to change parameters on plugin's bar! And I can't see any difference on playback ....
If a plugin needs more than one track to work on, then firstly you drag the plugin onto some of tracks, just as usually. Then you click with RMB on the other track(s), choose Attach effect. You get a big window, select there BlendAlgebra from the list of shared effects. The effect bar will appear under the second track, but without the button to edit parameters - because it is the single effect (although attached to several tracks). You edit its parameters by the button under that track where it was first dragged. How many tracks a blend function requires, is usually defined in its code (REQUIRE_TRACKS). CinGG checks if at least that number of tracks is available and does not execute the effect while playback if there are too few. After you have attached the plugin, you can attach some algebra function from the plugin parameters dialog. Try to do so firstly step-by-step, as I do not know how this can go through the resources window. For example, if you load some project with algebra into the resources, then it is a question in which directory it will search algebra functions in the case they are defined with relative paths in the xml file. The function files cannot be copied automatically because only the plugin knows, they exist, CinGG binary cannot know this. If it is the case, functions have to be reattached from the place they actually are. If there is some function defined in the plugin, but its source file is not found, then no function will be applied at this place, and playback will not be changed. Will be some message printed in the CinGG console if there is no function file, I don't remember. _______________________________________________________________________________ Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected] _______________________________________________________________________________
чт, 27 февр. 2025 г., 10:42 Georgy Salnikov <[email protected]>:
On Thu, 27 Feb 2025, Andrew Randrianasulu wrote:
I tried to load one m2ts file, select all, copy, protect track, add video track, paste. Thus I made two video tracks from same media.
Then I tried to add BlendAlgebra with multiply program by dragging its icon from Resources window onto one of video tracks. It attached but complained it needs two tracks to process. I middle clicked on plugin bar and selected Change, and selected another video track as shared, then confirmed by clicking OK.
Complain disappear, but so are buttons to change parameters on plugin's bar! And I can't see any difference on playback ....
If a plugin needs more than one track to work on, then firstly you drag the plugin onto some of tracks, just as usually. Then you click with RMB on the other track(s), choose Attach effect. You get a big window, select there BlendAlgebra from the list of shared effects. The effect bar will appear under the second track, but without the button to edit parameters - because it is the single effect (although attached to several tracks). You edit its parameters by the button under that track where it was first dragged.
yes, thanks, this procedure worked! I was modifying master effect instead of attaching it to second video track!
How many tracks a blend function requires, is usually defined in its code (REQUIRE_TRACKS). CinGG checks if at least that number of tracks is available and does not execute the effect while playback if there are too few.
After you have attached the plugin, you can attach some algebra function from the plugin parameters dialog. Try to do so firstly step-by-step, as I do not know how this can go through the resources window.
For example, if you load some project with algebra into the resources, then it is a question in which directory it will search algebra functions in the case they are defined with relative paths in the xml file. The function files cannot be copied automatically because only the plugin knows, they exist, CinGG binary cannot know this. If it is the case, functions have to be reattached from the place they actually are.
If there is some function defined in the plugin, but its source file is not found, then no function will be applied at this place, and playback will not be changed. Will be some message printed in the CinGG console if there is no function file, I don't remember.
_______________________________________________________________________________
Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected]
_______________________________________________________________________________
On Thu, 27 Feb 2025, Andrew Randrianasulu wrote:
yes, thanks, this procedure worked! I was modifying master effect instead of attaching it to second video track!
Andrew, interesting, which compiler is used in your OS? On x86_64 I tested the combination where CinGG was compiled with gcc, but algebra functions with clang, it worked. What is your? To alter the default algebra compiler there are 2 methods: 1) Either edit the script ~/.bcast5/BlendAlgebraCompile.pl 2) or export CIN_CC=<your compiler>, then start CinGG, it will be used How the compiler is actually invoked, is printed in CinGG console. _______________________________________________________________________________ Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected] _______________________________________________________________________________
чт, 27 февр. 2025 г., 19:46 Georgy Salnikov <[email protected]>:
On Thu, 27 Feb 2025, Andrew Randrianasulu wrote:
yes, thanks, this procedure worked! I was modifying master effect instead of attaching it to second video track!
Andrew, interesting, which compiler is used in your OS?
~/cinelerra/cinelerra-5.1 $ g++ --version clang version 19.1.7 Target: aarch64-unknown-linux-android24 Thread model: posix InstalledDir: /data/data/com.termux/files/usr/bin On x86_64 I tested
the combination where CinGG was compiled with gcc, but algebra functions with clang, it worked. What is your?
To alter the default algebra compiler there are 2 methods:
1) Either edit the script ~/.bcast5/BlendAlgebraCompile.pl
2) or export CIN_CC=<your compiler>, then start CinGG, it will be used
How the compiler is actually invoked, is printed in CinGG console.
_______________________________________________________________________________
Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected]
_______________________________________________________________________________
On Thu, 27 Feb 2025, Andrew Randrianasulu wrote:
~/cinelerra/cinelerra-5.1 $ g++ --version clang version 19.1.7 Target: aarch64-unknown-linux-android24 Thread model: posix InstalledDir: /data/data/com.termux/files/usr/bin
Prima! CinGG blend-fns compatibility g++ gcc works clang clang works g++ clang works _______________________________________________________________________________ Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected] _______________________________________________________________________________
Georgy, thanks for the explanation about "values.h" and I checked in the patch that Andrew provided today. I am still amazed that CinGG runs on TERMUX. On Wed, Feb 26, 2025 at 7:57 PM Georgy Salnikov <[email protected]> wrote:
On Wed, 26 Feb 2025, Phyllis Smith via Cin wrote:
Seems to work just fine. Found the following. Will still wait to hear back from SGE before checking it into GIT.
For what exactly values.h is used? ;)
Actually, values.h is not used. I added this header so that the user when writing blend program could use predefined constants like MAXINT, MAXFLOAT, etc.
/* This interface is obsolete. New programs should use <limits.h> and/or <float.h> instead of <values.h>. */
If there are already systems without values.h, then we have to remove this header. And the user must use actualized constants names (INT_MAX instead of MAXINT as defined in limits.h, FLT_MAX instead of MAXFLOAT as defined in float.h), should he need them.
limits.h was already in BlendAlgebraStart/BlendProgramStart, the addition of float.h is in the Andrew's patch, everything OK.
Phyllis, please check into GIT with Andrew's patch applied.
Andrew, it is interesting, do the plugins also run under termux (and dynamically load the functions), have you tried?
_______________________________________________________________________________
Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected]
_______________________________________________________________________________
participants (3)
-
Andrew Randrianasulu -
Georgy Salnikov -
Phyllis Smith