[Cin] Build Cingg-with-system-FFmpeg won't startup after upgrade to ffmpeg-7-7.1

Andrew Randrianasulu randrianasulu at gmail.com
Sun Oct 20 20:59:26 CEST 2024


вс, 20 окт. 2024 г., 21:55 Terje J. Hanssen <terjejhanssen at gmail.com>:

>
>
>
> Den 20.10.2024 18:53, skrev Andrew Randrianasulu:
>
>
>
> вс, 20 окт. 2024 г., 19:33 Terje J. Hanssen <terjejhanssen at gmail.com>:
>
>>
>>
>>
>> Den 19.10.2024 19:03, skrev Andrew Randrianasulu:
>>
>>
>>
>> сб, 19 окт. 2024 г., 19:53 Terje J. Hanssen <terjejhanssen at gmail.com>:
>>
>>> Continued from another thread:
>>>
>>> Re: [Cin] another set of test profiles
>>> Den 18.10.2024 02:08, skrev Andrew Randrianasulu:
>>>
>>> чт, 17 окт. 2024 г., 15:06 Terje J. Hanssen <terjejhanssen at gmail.com>:
>>>
>>> If we get available a packaged Cingg test build (rpm/Leap for me), it
>>> would be more useful to do this test. Then I have available three gen.
>>> Intel, legacy Skylake/Kabylake iGPUs and current DG2/Arc GPU. I also
>>> have/had a Nvidia GPU on Skylake, but it looks like it past away.
>>>
>>> I think you can build rpm yourself, but for this we need to update spec
>>> file, so it will point at new source and add openvpl as requirements.
>>>
>>> In meantime  you can just make your own appimage from just build
>>> cingg-with-system-ffmpeg, so it hopefully will not be lost after few system
>>> updates.
>>>
>>>
>>> Well, first:
>>> After my ffmpeg upgrade from v. 7.0.2 to the awaited v. 7.1 on Slowroll
>>> yesterday, my "just build " cingg-with-system-ffmpeg won't startup.
>>> Apparently Cingg also has to be rebuilt or upgraded to the new ffmpeg
>>> 7.1 family version, as it claims at startup attempt:
>>>
>>> /home/cinelerra/cinelerra-5.1 #
>>>
>>> # bin/cin
>>> bin/cin: /lib64/libswscale.so.8: version `LIBSWSCALE_8.1_SUSE' not found
>>> (required by bin/cin)
>>> bin/cin: /lib64/libswresample.so.5: version `LIBSWRESAMPLE_5.1_SUSE' not
>>> found (required by bin/cin)
>>> bin/cin: /lib64/libavfilter.so.10: version `LIBAVFILTER_10.1_SUSE' not
>>> found (required by bin/cin)
>>> bin/cin: /lib64/libavcodec.so.61: version `LIBAVCODEC_61.3_SUSE' not
>>> found (required by bin/cin)
>>> bin/cin: /lib64/libavformat.so.61: version `LIBAVFORMAT_61.1_SUSE' not
>>> found (required by bin/cin)
>>> bin/cin: /lib64/libavutil.so.59: version `LIBAVUTIL_59.8_SUSE' not found
>>> (required by bin/cin)
>>>
>>>
>>> Verify the installed packages that now provide the missing lib files
>>>
>>> # zypper se -f /lib64/libswscale.so.8 /lib64/libswresample.so.5
>>> /lib64/libavfilter.so.10 /lib64/libavcodec.so.61 /lib64/libavformat.so.61
>>> /lib64/libavutil.so.59
>>> Loading repository data...
>>> Reading installed packages...
>>>
>>>
>>> S  | Name           |
>>> Summary                                                      | Type
>>>
>>> ---+----------------+--------------------------------------------------------------+--------
>>> i+ | libavcodec61   | FFmpeg codec
>>> library                                         | package
>>> i  | libavfilter10  | FFmpeg audio and video filtering
>>> library                     | package
>>> i+ | libavformat61  | FFmpeg's stream format
>>> library                               | package
>>> i+ | libavutil59    | FFmpeg's utility
>>> library                                     | package
>>> i+ | libswresample5 | FFmpeg software resampling
>>> library                           | package
>>> i  | libswscale8    | FFmpeg image scaling and colorspace/pixel
>>> conversion library | package
>>>
>>>
>>> and to verify the new versions:
>>>
>>> # zypper se -is libavcodec61 libavfilter10 libavformat61 libavutil59
>>> libswresample5 libswscale8
>>> Loading repository data...
>>> Reading installed packages...
>>>
>>>
>>> S  | Name                 | Type    | Version         | Arch   |
>>> Repository
>>>
>>> ---+----------------------+---------+-----------------+--------+-----------
>>> i+ | libavcodec61         | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>> i  | libavcodec61-32bit   | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>> i  | libavfilter10        | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>> i+ | libavformat61        | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>> i+ | libavutil59          | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>> i  | libavutil59-32bit    | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>> i+ | libswresample5       | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>> i  | libswresample5-32bit | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>> i  | libswscale8          | package | 7.1-1699.6.pm.1 | x86_64 | Packman
>>>
>>>
>>> My question is which steps (back) to rebuild Cingg for the new ffmpeg
>>> 7.1 ?
>>>
>>
>>
>> yeah, fragility of system build.
>>
>> make sure you have working qsv/vaapi profiles in some safe dir away from
>> cinelerra-5.1
>>
>> cd cinelerra-5.1
>>
>> as always, note configure parameters you used
>>
>> head config.log
>>
>> copy command line ( ./configure ... ) into some easy to open document
>>
>> make clean
>>
>> ./autogen.sh
>>
>> paste configure line you copied to easy to find document before.
>>
>>
>> ./configure --with-single-user --disable-static-build
>> --without-thirdparty --without-libdpx
>>
>>
>> OR
>>
>> enter new configure line with all needed switches < they start with "--"
>> >  (for example if you patched source with my libvpl.patch)
>>
>> make
>>
>>
>> Unhappily I got several fatal errors like:
>>
>> ffmpeg.h:48:10: fatal error: libavformat/avformat.h: No such file or
>> directory
>>    48 | #include "libavformat/avformat.h"
>>       |          ^~~~~~~~~~~~~~~~~~~~~~~~
>> compilation terminated.
>>
>>
>> During the testinstalls of ffmpeg 7.1 first from obs: and lastly from
>> Packman, I had to deinstall several packages due to dependice errors.
>> So I think there may be some missing packages. I tried to add ffmpeg
>>
>
> you can try to locate libavformat either by pkg-config
>
> pkg-config --cflags libavformat
>
>
> or find /usr -name avformat.h
>
> then add CFLAGS=-I/path_to_dir_where_avformat dir_located/ and re-run
> ./configure and make.
>
> last time it was something like /usr/include/ffmpeg
>
>
> Yes, thanks - it is the same location this time, but it still doesn't
> cleanup make
>
> localhost:/home/cinelerra/cinelerra-5.1 #
>
> # pkg-config --cflags libavformat
> -I/usr/include/ffmpeg
>
> # CFLAGS=-I/usr/include/ffmpeg
>


you probably need to set it by adding export command before CFLAGS or add
CFLAGS part on the same line where you run configure

back to chroot script I'm trying to write without  knowing enough about
shell scripting .....

>
>
> # ./configure --with-single-user --disable-static-build
> --without-thirdparty --without-libdpx
>
>
> # make
>
> .....snip ... it's fewer errors, but still the last section output
>
>
> g++ `cat x86_64/c_flags`  -DMSGQUAL=aboutprefs -c aboutprefs.C -o
> x86_64/aboutprefs.o
> In file included from formattools.h:32,
>                  from file.h:37,
>                  from aboutprefs.C:24:
> ffmpeg.h:48:10: fatal error: libavformat/avformat.h: No such file or
> directory
>    48 | #include "libavformat/avformat.h"
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[2]: *** [Makefile:597: x86_64/aboutprefs.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> In file included from
> /home/cinelerra/cinelerra-5.1/cinelerra/../guicast/bcsubwindow.h:26,
>                  from
> /home/cinelerra/cinelerra-5.1/cinelerra/../guicast/bcbar.h:26,
>                  from
> /home/cinelerra/cinelerra-5.1/cinelerra/../guicast/guicast.h:27,
>                  from binfolder.h:31,
>                  from edl.h:33,
>                  from aattachmentpoint.C:25:
> /home/cinelerra/cinelerra-5.1/cinelerra/../guicast/bcwindowbase.h:222:22:
> warning: ‘virtual void BC_WindowBase::create_objects()’ was hidden
> [-Woverloaded-virtual=]
>   222 |         virtual void create_objects() { return; };
>       |                      ^~~~~~~~~~~~~~
> In file included from
> /home/cinelerra/cinelerra-5.1/cinelerra/../guicast/guicast.h:62:
> /home/cinelerra/cinelerra-5.1/cinelerra/../guicast/errorbox.h:35:14:
> note:   by ‘void ErrorBox::create_objects(const char*)’
>    35 |         void create_objects(const char *text);
>       |              ^~~~~~~~~~~~~~
> make[2]: Leaving directory '/home/cinelerra/cinelerra-5.1/cinelerra'
> make[1]: *** [Makefile:592: all-recursive] Error 1
> make[1]: Leaving directory '/home/cinelerra/cinelerra-5.1'
> make: *** [Makefile:539: all] Error 2
>
>
>
>
>>
>> Not sure what cause this errors?
>> I have the following ffmpeg 7.1 packages (re)installed:
>>
>> # zypper se -is ffmpeg-7
>> Loading repository data...
>> Reading installed packages...
>>
>> S  | Name                         | Type    | Version         | Arch   |
>> Repository
>>
>> ---+------------------------------+---------+-----------------+--------+-----------
>> i+ | ffmpeg-7                     | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>> i  | ffmpeg-7-libavcodec-devel    | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>> i+ | ffmpeg-7-libavdevice-devel   | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>> i+ | ffmpeg-7-libavfilter-devel   | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>> i+ | ffmpeg-7-libavformat-devel   | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>> i  | ffmpeg-7-libavutil-devel     | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>> i+ | ffmpeg-7-libpostproc-devel   | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>> i  | ffmpeg-7-libswresample-devel | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>> i+ | ffmpeg-7-libswscale-devel    | package | 7.1-1699.6.pm.1 | x86_64 |
>> Packman
>>
>>
>>
>>
>> make install
>>
>> return profiles to bin/ffmpeg
>>
>> run
>>
>> bin/cin
>>
>> investigate appimage build ;)
>>
>> I am currently a bit stuck rebuilding Appimage's  runtime - developer's
>> life .. you can use binary from github as per instruction.
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20241020/d137fb8f/attachment-0001.htm>


More information about the Cin mailing list