Error during compiling Avidemux

Started by dacorsa, January 26, 2025, 12:26:47 PM

Previous topic - Next topic

dacorsa

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.

eumagga0x2a

Is the header VSScript.h really missing in /usr/include/vapoursynth? The build log suggests that your VapourSynth installation is broken.

dacorsa

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?

eumagga0x2a

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.

dacorsa

#4
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

eumagga0x2a

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.


eumagga0x2a

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.

dacorsa

#7
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 **

szlldm

Avidemux builds fine on Ubuntu 24.04.1.
Make sure to follow the instructions in the README.md.

dacorsa

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 **

eumagga0x2a

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.)

eumagga0x2a

lrelease: could not find a Qt installation of 'qt6'
It might be a problem related to using a custom Qt6 installation.

eumagga0x2a

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.

szlldm

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.