Avidemux Forum

Avidemux => Unix-Like (Linux/Bsd/...) => Topic started by: dacorsa on January 26, 2025, 12:26:47 PM

Title: Error during compiling Avidemux
Post by: dacorsa on January 26, 2025, 12:26:47 PM
Hi Guys,
i have this error during compiling Avidemux with Ubuntu 24.04:

** Failed at make -j 32, result in /tmp/logbuildPluginsQt6 **
Cancelling installation.

see attached files for more info.
Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 27, 2025, 10:27:27 PM
Is the header VSScript.h really missing in /usr/include/vapoursynth? The build log suggests that your VapourSynth installation is broken.
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 28, 2025, 07:31:52 PM
Quote from: eumagga0x2a on January 27, 2025, 10:27:27 PMIs the header VSScript.h really missing in /usr/include/vapoursynth? The build log suggests that your VapourSynth installation is broken.

cd /usr/include/vapoursynth

-rw-r--r--   1 root root  2709 gen 23 22:46 VSConstants4.h
-rw-r--r--   1 root root  5511 gen 23 22:46 VSHelper.h
-rw-r--r--   1 root root  8446 gen 23 22:46 VSHelper4.h
-rw-r--r--   1 root root  4388 gen 23 22:46 VSScript.h
-rw-r--r--   1 root root  4116 gen 23 22:46 VSScript4.h
-rw-r--r--   1 root root 15489 gen 23 22:46 VapourSynth.h
-rw-r--r--   1 root root 27524 gen 23 22:46 VapourSynth4.h

seems all ok here but not compile...why?
Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 28, 2025, 08:14:58 PM
Are you really building the latest git master? At line 1029, the part of c++ command line relevant to VapourSynth includes is enclosed in quotes which are not present in the build log on my system with the latest git master and probably break the build for you.
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 28, 2025, 09:06:00 PM
cd /app
git clone https://github.com/mean00/avidemux2.git
cd /app/avidemux2
sudo rm -rf *.deb
git reset --hard
git pull
git submodule update --init --recursive
git checkout master
bash createDebFromSourceUbuntu.bash --deps-only
bash bootStrap.bash --with-system-libass


yes i did checkout master
Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 28, 2025, 09:36:00 PM
Quote from: dacorsa on January 28, 2025, 09:06:00 PMcd /app
git clone https://github.com/mean00/avidemux2.git
cd /app/avidemux2
sudo rm -rf *.deb
git reset --hard
git pull
git submodule update --init --recursive
git pull --recurse
git checkout master
sudo make uninstall
sudo make clean
export ENABLE_QT6=1
bash bootStrap.bash
bash createDebFromSourceUbuntu.bash

As you use a custom Qt6 installation and VapourSynth which is AFAIK not officially packaged for Ubuntu, you probably don't want to invoke createDebFromSourceUbuntu.bash as you already have necessary dependencies. Additionally, most commands above make no sense. The normal procedure would have been (after entering a local, user-owned directory)

git clone --recursive https://github.com/mean00/avidemux2.git && mkdir build && cd build && bash ../avidemux2/bootStrap.bash --deb
("--deb" only if you want to generate Debian packages for a later system-wide installation). Performing an out-of-tree compilation avoids cluttering the source tree with build products.

Quote from: dacorsa on January 28, 2025, 09:06:00 PMyes i did checkout master

Please provide also the corresponding logCmakebuildPluginsQt6 file.

Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 28, 2025, 09:37:24 PM
Quote from: dacorsa on January 28, 2025, 09:06:00 PMbash bootStrap.bash --with-system-libass

A poor try, --with-system-libass is no more on git master.
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 29, 2025, 07:14:23 AM
Quote from: eumagga0x2a on January 28, 2025, 09:36:00 PMPlease provide also the corresponding logCmakebuildPluginsQt6 file.


i used your command :
bash bootStrap.bash --deb
without bash createDebFromSourceUbuntu.bash --deps-only
but i received this:
** Failed at make -j 32, result in /tmp/logbuildQt6 **
Title: Re: Error during compiling Avidemux
Post by: szlldm on January 29, 2025, 07:06:58 PM
Avidemux builds fine on Ubuntu 24.04.1.
Make sure to follow the instructions in the README.md.
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 29, 2025, 07:57:17 PM
Quote from: szlldm on January 29, 2025, 07:06:58 PMAvidemux builds fine on Ubuntu 24.04.1.
Make sure to follow the instructions in the README.md.

already follows the instructions on the readme, but i received this error:
** Failed at make -j 32, result in /tmp/logbuildQt6 **
Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 29, 2025, 08:10:39 PM
Quote from: szlldm on January 29, 2025, 07:06:58 PMAvidemux builds fine on Ubuntu 24.04.1.

Wasn't adding "-fPIC" to CXXFLAGS required to make it compile? (I may confuse it with an unrelated topic, can't check at the moment.)
Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 29, 2025, 08:14:57 PM
lrelease: could not find a Qt installation of 'qt6'
It might be a problem related to using a custom Qt6 installation.
Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 29, 2025, 08:25:40 PM
I see, you need to export QTDIR environment variable set to the path of the folder within your custom Qt installation containing "bin" directory which in turn contains lrelease executable prior to running bootStrap.bash script. It may amount to executing

export QTDIR=/home/dacorsa/Qt/6.8.0
if lrelease exists as /home/dacorsa/Qt/6.8.0/bin/lrelease.
Title: Re: Error during compiling Avidemux
Post by: szlldm on January 29, 2025, 09:07:07 PM
Quote from: eumagga0x2a on January 29, 2025, 08:10:39 PMWasn't adding "-fPIC" to CXXFLAGS required to make it compile? (I may confuse it with an unrelated topic, can't check at the moment.)
On Ubuntu 24.04.1 "-fPIC" flag was not required.
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 30, 2025, 04:30:12 PM
Quote from: eumagga0x2a on January 29, 2025, 08:25:40 PM/home/dacorsa/Qt/6.8.0/bin/lrelease.

ls -la /home/dacorsa/Qt/6.8.0/gcc_64/bin/lrelease
-rwxr-xr-x 1 dacorsa dacorsa 375872 gen 24 10:37 /home/dacorsa/Qt/6.8.0/gcc_64/bin/lrelease
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 30, 2025, 04:37:41 PM
adding :
export QTDIR=/home/dacorsa/Qt/6.8.2/gcc_64/

make running more the compile but stuck always in :
** Failed at make -j 32, result in /tmp/logbuildPluginsQt6 **
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 30, 2025, 04:45:58 PM
see attached
Title: Re: Error during compiling Avidemux
Post by: szlldm on January 30, 2025, 05:49:04 PM
it cannot find vapoursynth's VSScript.h
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 30, 2025, 06:35:10 PM
Quote from: szlldm on January 30, 2025, 05:49:04 PMit cannot find vapoursynth's VSScript.h
maybe in cd /usr/include/vapoursynth
Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 31, 2025, 12:50:43 AM
As explained above, for reason I don't yet understand, VAPOURSYNTHSCRIPT_CFLAGS set in avidemux_plugins/cmake/admCheckVapourSynth.cmake:33 (https://github.com/mean00/avidemux2/blob/6b7fb93adee14334e557e0cc146523e59bfd3bca/avidemux_plugins/cmake/admCheckVapourSynth.cmake#L33) retain quotes. Usually, cmake should have dropped them. This breaks compilation on your system, i.e. instead of

/usr/bin/c++ -DADM_UI_TYPE_BUILD=ADM_UI_QT4 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/app/avidemux2/install/usr/include/avidemux/2.8 -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_core -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioFilter -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioParser -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudio -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioDevice -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioEncoder -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreDemuxer -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreDemuxer/unix -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreDemuxerMpeg -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreImage -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreMuxer -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreScript -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreUI -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreUtils -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreVideoEncoder -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreVideoFilter -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreVideoCodec -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreImageLoader -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreJobs -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreSocket -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioCodec -I/app/avidemux2/install/usr/include/avidemux/2.8/ffmpeg -I/app/avidemux2/avidemux_plugins/ADM_demuxers/VapourSynth/qt4 -I/home/dacorsa/Qt/6.8.2/gcc_64/include/QtDBus -I/home/dacorsa/Qt/6.8.2/gcc_64/include/QtNetwork -I/app/avidemux2/buildPluginsQt6/ADM_demuxers/VapourSynth/qt4 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/fribidi -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtCore -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtWidgets -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtGui -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtOpenGLWidgets -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtOpenGL -isystem /home/dacorsa/Qt/6.8.2/gcc_64/mkspecs/linux-g++ -fmessage-length=0 -fmessage-length=0 -O3 -DNDEBUG -std=c++17  -Werror=attributes -O2 -I/usr/include/vapoursynth -DVAPOURSYNTH_PYTHONLIB='\"libpython3.12.so\"' -fPIC -MD -MT ADM_demuxers/VapourSynth/qt4/CMakeFiles/vsProxy_gui_qt6.dir/__/ADM_vsProxy.cpp.o -MF CMakeFiles/vsProxy_gui_qt6.dir/__/ADM_vsProxy.cpp.o.d -o CMakeFiles/vsProxy_gui_qt6.dir/__/ADM_vsProxy.cpp.o -c /app/avidemux2/avidemux_plugins/ADM_demuxers/VapourSynth/ADM_vsProxy.cpp


you get

/usr/bin/c++ -DADM_UI_TYPE_BUILD=ADM_UI_QT4 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/app/avidemux2/install/usr/include/avidemux/2.8 -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_core -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioFilter -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioParser -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudio -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioDevice -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioEncoder -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreDemuxer -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreDemuxer/unix -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreDemuxerMpeg -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreImage -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreMuxer -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreScript -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreUI -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreUtils -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreVideoEncoder -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreVideoFilter -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreVideoCodec -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreImageLoader -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreJobs -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreSocket -I/app/avidemux2/install/usr/include/avidemux/2.8/ADM_coreAudioCodec -I/app/avidemux2/install/usr/include/avidemux/2.8/ffmpeg -I/app/avidemux2/avidemux_plugins/ADM_demuxers/VapourSynth/qt4 -I/home/dacorsa/Qt/6.8.2/gcc_64/include/QtDBus -I/home/dacorsa/Qt/6.8.2/gcc_64/include/QtNetwork -I/app/avidemux2/buildPluginsQt6/ADM_demuxers/VapourSynth/qt4 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/fribidi -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtCore -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtWidgets -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtGui -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtOpenGLWidgets -isystem /home/dacorsa/Qt/6.8.2/gcc_64/include/QtOpenGL -isystem /home/dacorsa/Qt/6.8.2/gcc_64/mkspecs/linux-g++ -fmessage-length=0 -fmessage-length=0 -O3 -DNDEBUG -std=c++17  -Werror=attributes -O2 "-I/usr/include/vapoursynth -DVAPOURSYNTH_PYTHONLIB='\"libpython3.12.so\"'" -fPIC -MD -MT ADM_demuxers/VapourSynth/qt4/CMakeFiles/vsProxy_gui_qt6.dir/__/ADM_vsProxy.cpp.o -MF CMakeFiles/vsProxy_gui_qt6.dir/__/ADM_vsProxy.cpp.o.d -o CMakeFiles/vsProxy_gui_qt6.dir/__/ADM_vsProxy.cpp.o -c /app/avidemux2/avidemux_plugins/ADM_demuxers/VapourSynth/ADM_vsProxy.cpp


Please notice the quote before -I/usr/include/vapoursynth which should not be there.
Title: Re: Error during compiling Avidemux
Post by: eumagga0x2a on January 31, 2025, 02:11:58 AM
Please pull the latest changes (https://github.com/mean00/avidemux2/commit/085d19fe8e9906316bf486eecec929fe15cec875) and retry.
Title: Re: Error during compiling Avidemux
Post by: dacorsa on January 31, 2025, 08:28:26 AM
Hi Guys!

GOOD NEWS!!!

after this git pull:
Da https://github.com/mean00/avidemux2
  6b7fb93ad..085d19fe8  master                -> origin/master
* [nuovo branch]        wayland-merge-prepare -> origin/wayland-merge-prepare
Aggiornamento di 6b7fb93ad..085d19fe8
Fast-forward
avidemux_plugins/ADM_demuxers/VapourSynth/CMakeLists.txt    | 7 ++++---
avidemux_plugins/ADM_demuxers/VapourSynth/qt4/CMakeLists.txt | 1 +
avidemux_plugins/cmake/admCheckVapourSynth.cmake            | 1 -
3 files changed, 5 insertions(+), 4 deletions(-)

compile without error!!!

Thanks to all and specially to @eumagga0x2a