LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-04-2023, 04:19 PM   #1
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
cinelerra-gg sbopkg build fails on current


I'm trying to install cinelerra-gg from sbopkg on current. I ran into a build problem in ffmpeg and found a fix for it described by marav in this thread:

https://www.linuxquestions.org/quest...eg-4175727691/

The patch is to ffmpeg-4.3 libavcodec/x86/mathops.h


This is what I did that got me past the original problem:

- Copied the cinelerra-gg tar file from /var/cache/sbopkg/cinelerra-gg-20210331_eabda9c.tar.xz to a working directory, and untar'd it.
- Found the ffmpeg package in the tree, copied it to a working directory, and untar'd it.
- Copied the patch file from the link in the thread above, and applied it with the patch command. patch was successful.
- tar'd the ffmpeg directories and replaced the tar file in the cinelerra-gg tree with the patched one.
- tar'd the cinelerra-gg package and replaced the one in /var/cache/sbopkg/ directory with the patched one.
- Tried to install it again with sbopkg. It was already in the cache, so it did not download it again. The MD5SUM check failed, but I told it to continue.


Now I get this:


Code:
[100%] Linking CXX executable test_libaom
[100%] Built target test_libaom
Install the project...
-- Install configuration: "Release"
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aom.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aom_codec.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aom_frame_buffer.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aom_image.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aom_integer.h
-- Up-to-date: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aom.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aom_decoder.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aomdx.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aomcx.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/include/aom/aom_encoder.h
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/lib/pkgconfig/aom.pc
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/lib/libaom.a
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/bin/aomdec
-- Installing: /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/usr/local/bin/aomenc
make[3]: Leaving directory '/tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/libaom-v3.0.0/aom.build'
touch /tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/../thirdparty/build/libaom.built
make[2]: Leaving directory '/tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty'
make[1]: *** [Makefile:530: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1'
make: *** [Makefile:486: all] Error 2


I don't see what caused this error.

Does anyone know what the fix for this is? Or where I can find more details about the error?

Thanks!
 
Old 11-04-2023, 04:59 PM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,370

Rep: Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086
I tried with the addition of aom
https://slackbuilds.org/slackbuilds/15.0/multimedia/aom

and it ends with:
Code:
makeinfo*: erreur d'analyse de ./doc/t2h.pm*: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
makeinfo*: erreur d'analyse de ./doc/t2h.pm*: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
make[3]: *** [doc/Makefile:70: doc/ffprobe.html] Error 1
that, for my POV, is worst than the previous error ...
 
Old 11-04-2023, 05:10 PM   #3
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
From the README for aom:

Code:
AOMedia Video 1 (AV1) is an Open Source video codec designed for
video transmission over the Internet. AV1 is planned to surpass
VP9 and also to eventually be a competitor with HEVC/H.265.

This script builds the encoder aomenc, the decoder aomdec as well
as shared libraries which can be utilised by suitable versions of
both FFmpeg and vlc.

Since I won't be using video over the Internet, I wonder if I can just omit it.
 
Old 11-04-2023, 06:43 PM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
For some time now the cinelerra-gg team have been providing and recommending the AppImage which, as far as I remember, was quite straightforward to get up and running on Slackware (two or three years ago).

Last edited by Gerard Lally; 11-04-2023 at 07:56 PM.
 
1 members found this post helpful.
Old 11-05-2023, 04:10 AM   #5
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 641

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by marav View Post
I tried with the addition of aom
https://slackbuilds.org/slackbuilds/15.0/multimedia/aom

and it ends with:
Code:
makeinfo*: erreur d'analyse de ./doc/t2h.pm*: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
makeinfo*: erreur d'analyse de ./doc/t2h.pm*: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
make[3]: *** [doc/Makefile:70: doc/ffprobe.html] Error 1
that, for my POV, is worst than the previous error ...
I think we can fix this, but I have not time at all these days!
Plz look my patch for texinfo in the ffmpeg thread
As I see the error, I think /doc/t2h.pm need the same fix ... set_from_init_file > texinfo_set_from_init_file etc...
 
Old 11-05-2023, 04:49 AM   #6
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 641

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Code:
--- cinelerra-gg-20230727_e6b185e/cinelerra-5.1/thirdparty/ffmpeg-5.1/doc/t2h.pm	2022-07-22 20:58:38.000000000 +0300
+++ /dev/null/t2h.pm	2023-11-05 12:44:56.096181155 +0200
@@ -21,7 +21,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
 # no navigation elements
-set_from_init_file('HEADERS', 0);
+texinfo_set_from_init_file('HEADERS', 0);
 
 sub ffmpeg_heading_command($$$$$)
 {
@@ -132,17 +132,17 @@
 
 # print the TOC where @contents is used
 if ($program_version_6_8) {
-    set_from_init_file('CONTENTS_OUTPUT_LOCATION', 'inline');
+    texinfo_set_from_init_file('CONTENTS_OUTPUT_LOCATION', 'inline');
 } else {
-    set_from_init_file('INLINE_CONTENTS', 1);
+    texinfo_set_from_init_file('INLINE_CONTENTS', 1);
 }
 
 # make chapters <h2>
-set_from_init_file('CHAPTER_HEADER_LEVEL', 2);
+texinfo_set_from_init_file('CHAPTER_HEADER_LEVEL', 2);
 
 # Do not add <hr>
-set_from_init_file('DEFAULT_RULE', '');
-set_from_init_file('BIG_RULE', '');
+texinfo_set_from_init_file('DEFAULT_RULE', '');
+texinfo_set_from_init_file('BIG_RULE', '');
 
 # Customized file beginning
 sub ffmpeg_begin_file($$$)
@@ -244,7 +244,7 @@
 
 # Dummy title command
 # Ignore title. Title is handled through ffmpeg_begin_file().
-set_from_init_file('USE_TITLEPAGE_FOR_TITLE', 1);
+texinfo_set_from_init_file('USE_TITLEPAGE_FOR_TITLE', 1);
 sub ffmpeg_title($$$$)
 {
     return '';
sorry I have not test it... its just a quik patch , but something like this needed...
 
1 members found this post helpful.
Old 11-05-2023, 04:55 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,100

Rep: Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177
actually just not building the html documentation (like you suggested in another thread) should be enough, after all it's just an internal ffmpeg version (and in this case you have the same one already installed on current): here I have done just these mods to let it build on current

https://cgit.ponce.cc/slackbuilds/commit/?h=cinelerra

@Z038: I can't see any problem in building the internal libaom or using an external one from SBo (there is called just "aom"): probably you can just redirect the building output in a file and examine that, also using just one make job could help having a cleaner output and identify your specific problem
Code:
MAKEFLAGS=-j1 ./cinelerra.SlackBuild > /tmp/build_cinelerra.log 2>&1

Last edited by ponce; 11-05-2023 at 05:13 AM.
 
2 members found this post helpful.
Old 11-05-2023, 11:12 AM   #8
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
@Gerard Lally - thanks for the suggestion. The Appimage does indeed work. I still want to build it anyway. The Appimage at least lets me start using Cinelerra in the meantime.

@rizitis - thank you for the patch. I will try it if all else fails. But as ponce was able to build without it, that sounds like a good solution for now.

@ponce - thank you the updated Slackbuild to disable html doc. Looks like you are using a newer version of cinelerra-gg also. Before I try this, I will redirect my build output to a file, as you suggested, and try to find the specific error in it.
 
Old 11-05-2023, 12:47 PM   #9
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
This is the only thing I find in the build log that I think would stop the build:

Code:
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../config  -I/tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/openexr-2.4.1/usr/local/include/OpenEXR -I.. -I../config    -pipe -g -O2 -std=c++11  -MT ImfMisc.lo -MD -MP -MF .deps/ImfMisc.Tpo -c -o ImfMisc.lo ImfMisc.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../config -I/tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/openexr-2.4.1/usr/local/include/OpenEXR -I.. -I../config -pipe -g -O2 -std=c++11 -MT ImfMisc.lo -MD -MP -MF .deps/ImfMisc.Tpo -c ImfMisc.cpp -o ImfMisc.o
ImfMisc.cpp:1392:17: error: 'uint8_t' does not name a type
ImfMisc.cpp:56:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
make[6]: *** [Makefile:885: ImfMisc.lo] Error 1
 
Old 11-05-2023, 01:25 PM   #10
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 641

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by Z038 View Post
This is the only thing I find in the build log that I think would stop the build:

Code:
-I/tmp/SBo/cinelerra-gg-20210331_eabda9c/cinelerra-5.1/thirdparty/openexr-2.4.1/usr/local/include/OpenEXR
try the patched version in my attachment as ponce suggested.
remove .txt and download the version that exist in .info file
Code:
https://ponce.cc/slackware/sources/repo/cinelerra-gg-20231006_bfc2f6c.tar.xz
then
Code:
MAKEFLAGS=-j1 ./cinelerra.SlackBuild > ./build_cinelerra.log 2>&1
Attached Files
File Type: txt cinelerra.tar.xz.txt (2.9 KB, 4 views)
 
1 members found this post helpful.
Old 11-05-2023, 04:37 PM   #11
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
The patched build worked, but the slackpkg install of the package complains about a null byte in line 2xx (I don't recall exactly), something about a command substitution I think, and then the terminal fonts get messed up and lots of hex garbage gets written to the terminal, like when you cat a binary file. You don't have much time to read it, which is why I'm not sure exactly what it said. The install seems to go on forever with nothing but garbage output to the console. I couldn't get it to stop, finally had to reboot my system.

I suppose I could redirect the output to a file, but not sure I want to try it again.

Maybe I can untar the package and see if I can find the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] openjdk from sbopkg won't build on current Z038 Slackware 13 12-17-2017 01:08 PM
Two Things: Current/sbopkg and current/hplip PhiloPolyMath Slackware 11 03-23-2016 01:51 PM
SBOPKG(8) not list/show/build dependencies of SlackBuild scripts to build Slackware p xavi_slacky Slackware 3 06-13-2013 07:53 PM
[SOLVED] using sbopkg to build and inst an audio queue fails in lapspa_sdk nass Slackware 1 05-08-2012 07:20 AM
Cinelerra vs. Cinelerra-cv on Debian the98 Linux - Software 4 11-14-2010 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration