Avidemux Forum

Avidemux => Unix-Like (Linux/Bsd/...) => Topic started by: dacorsa on October 31, 2023, 11:10:27 AM

Title: compile avidemux on ubuntu mantic 23.10
Post by: dacorsa on October 31, 2023, 11:10:27 AM
hi all,

i compile always avidemux in this way:

cd /app
git clone https://github.com/mean00/avidemux2.git
cd /app/avidemux2
rm -rf *.deb
git reset --hard
git pull
git submodule update --init --recursive
git pull --recurse
git checkout default
export ENABLE_QT5=1
bash createDebFromSourceUbuntu.bash --deps-only
bash bootStrap.bash --with-system-libass

but now in mantic that has qt6 buildin , i receive this warning:

CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_QT5

and after this error:

STRIP   libavutil/x86/tx_float.o
GEN     libavutil/libavutil.ver
LD      libavutil/libADM6avutil.so.58
lto-wrapper: warning: using serial compilation of 11 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
STRIP   libavcodec/x86/vp9itxfm.o
GEN     libavcodec/libavcodec.ver
LD      libavcodec/libADM6avcodec.so.60
LD      libpostproc/libADM6postproc.so.57
LD      libswscale/libADM6swscale.so.7
src/libswscale/x86/swscale.c:323:1: warning: type of 'ff_nv12ToUV_avx' does not match original declaration [-Wlto-type-mismatch]
  323 | INPUT_FUNCS(avx);
      | ^
src/libswscale/x86/rgb2rgb_template.c:1821:6: note: type mismatch in parameter 8
 1821 | void RENAME(ff_nv12ToUV)(uint8_t *dstU, uint8_t *dstV,
      |      ^
src/libswscale/x86/rgb2rgb_template.c:1821:6: note: 'ff_nv12ToUV_avx' was previously declared here
src/libswscale/x86/swscale.c:321:1: warning: type of 'ff_nv12ToUV_sse2' does not match original declaration [-Wlto-type-mismatch]
  321 | INPUT_FUNCS(sse2);
      | ^
src/libswscale/x86/rgb2rgb_template.c:1821:6: note: type mismatch in parameter 8
 1821 | void RENAME(ff_nv12ToUV)(uint8_t *dstU, uint8_t *dstV,
      |      ^
src/libswscale/x86/rgb2rgb_template.c:1821:6: note: 'ff_nv12ToUV_sse2' was previously declared here
lto-wrapper: warning: using serial compilation of 9 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
lto-wrapper: warning: using serial compilation of 118 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
src/libavcodec/x86/mathops.h: Assembler messages:
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
lto-wrapper: fatal error: /usr/bin/cc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
gmake[3]: *** [/app/avidemux2/buildCore/ffmpeg/source/ffbuild/library.mak:119: libavcodec/libADM6avcodec.so.60] Errore 1
gmake[3]: *** Attesa per i processi non terminati....
gmake[3]: uscita dalla directory «/app/avidemux2/buildCore/ffmpeg/build»
make[2]: *** [CMakeFiles/libavutil_dummy.dir/build.make:74: CMakeFiles/libavutil_dummy] Errore 2
make[2]: uscita dalla directory «/app/avidemux2/buildCore»
make[1]: *** [CMakeFiles/Makefile2:1086: CMakeFiles/libavutil_dummy.dir/all] Errore 2
make[1]: uscita dalla directory «/app/avidemux2/buildCore»
make: *** [Makefile:139: all] Errore 2

can you help me?

Thanks

best regards
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: dacorsa on October 31, 2023, 11:12:49 AM
here is the log
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: eumagga0x2a on October 31, 2023, 12:10:54 PM
Does it help if you comment out (put # at the beginning of the line) cmake/admFFmpegBuild_native.cmake:48?
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: dacorsa on October 31, 2023, 12:58:09 PM
here ?

if (NOT APPLE AND NOT ADM_CPU_X86_32)
#    xadd(--enable-lto) ----line 48
endif (NOT APPLE AND NOT ADM_CPU_X86_32)

thanks
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: eumagga0x2a on October 31, 2023, 01:05:26 PM
Quote from: dacorsa on October 31, 2023, 12:58:09 PMif (NOT APPLE AND NOT ADM_CPU_X86_32)
#    xadd(--enable-lto)
endif (NOT APPLE AND NOT ADM_CPU_X86_32)

Yes.
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: dacorsa on October 31, 2023, 01:15:10 PM
no not works:(

thanks
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: eumagga0x2a on October 31, 2023, 01:32:16 PM
Please revert the change we made to cmake/admFFmpegBuild_native.cmake file, pull the latest changes from Avidemux git repository so that your clone includes the tentative fix (https://github.com/mean00/avidemux2/commit/4fc46b6415373f539a8cc7974258e03566f88a30) and retry.
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: dacorsa on October 31, 2023, 02:31:20 PM
yes now goes till the end:

make[1]: uscita dalla directory «/app/avidemux2/buildPluginsSettings»
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/Mezzanine.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/PSP.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/fast.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/iPhone.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/ultraFast.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/veryFast.json
-- Installing: /app/avidemux2/install/usr/share/ADM6_addons/avsfilter/avsload.exe
-- Installing: /app/avidemux2/install/usr/share/ADM6_addons/avsfilter/pipe_source.dll
** Preparing debs **
No packaging
** ALL DONE **
** Copy the /app/avidemux2/install folder to your favorite location, i.e. sudo cp -R install/usr/* /usr/ **

but not create the deb files

if i go to

cd /app/avidemux2/install/usr/bin/

15:29:15 dacorsa@NanoKDE /app/avidemux2/install/usr/bin $ ./avidemux3_qt5
./avidemux3_qt5: error while loading shared libraries: libADM_coreVideoCodec6.so: cannot open shared object file: No such file or directory

is possible compile avidemux with qt6?
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: eumagga0x2a on October 31, 2023, 02:58:11 PM
Quote from: dacorsa on October 31, 2023, 02:31:20 PMyes now goes till the end:
make[1]: uscita dalla directory «/app/avidemux2/buildPluginsSettings»
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/Mezzanine.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/PSP.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/fast.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/iPhone.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/ultraFast.json
-- Installing: /app/avidemux2/install/usr/lib/ADM_plugins6/pluginSettings/x264/3/veryFast.json
-- Installing: /app/avidemux2/install/usr/share/ADM6_addons/avsfilter/avsload.exe
-- Installing: /app/avidemux2/install/usr/share/ADM6_addons/avsfilter/pipe_source.dll
** Preparing debs **
No packaging
** ALL DONE **
** Copy the /app/avidemux2/install folder to your favorite location, i.e. sudo cp -R install/usr/* /usr/ **

but not create the deb files

Glad to hear that the issue is fixed, thanks. The convenience bootstrap script does what you have told it to do:

bash bootStrap.bash --with-system-libass
If you really need Avidemux packaged as .deb (i.e. if you need it to be available for multiple users on the system or if you want to transfer it to a different location), then add --deb to the command line.

Quote from: dacorsa on October 31, 2023, 02:31:20 PMif i go to

cd /app/avidemux2/install/usr/bin/

15:29:15 dacorsa@NanoKDE /app/avidemux2/install/usr/bin $ ./avidemux3_qt5
./avidemux3_qt5: error while loading shared libraries: libADM_coreVideoCodec6.so: cannot open shared object file: No such file or directory

There is a template script to run Avidemux from build directory without installation ("run_avidemux_template.sh"), which sets LD_LIBRARY_PATH automatically, please edit a renamed copy of it accordingly, make it executable and use it.
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: eumagga0x2a on October 31, 2023, 03:05:05 PM
Quote from: dacorsa on October 31, 2023, 02:31:20 PMis possible compile avidemux with qt6?

I forgot to answer this question. Yes, it is possible, but not recommended because OpenGL is broken with Qt6 > 6.3.x on Linux.
Title: Re: compile avidemux on ubuntu mantic 23.10
Post by: dacorsa on October 31, 2023, 03:11:24 PM
https://ibb.co/XpDRqqr

now works well with qt5
thanks
best regards :)