avidemux2
avidemux2 copied to clipboard
fix(requirements): Additional prereqs for Debian and Ubuntu
- Myself and others have consistently had the
mxe/mxe-setup.sh
script fail forERROR: could not get https://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.bz2 is the internet available?
- A simple fix is to just add the development package for pcre to the prereq,
libpcre3-dev
- The issue can be reproduced as follows:
- Install Ubuntu 22.10
-
apt update && apt upgrade
-
reboot
- Install "Debian and derivatives" prerequisites, https://mxe.cc/#requirements
-
reboot
-
cd
-
git clone https://github.com/mean00/avidemux2.git
-
mkdir cross-build
-
cd cross-build
-
bash ../avidemux2/mxe/mxe-setup.sh
Failed to build package glib for target x86_64-pc-linux-gnu!
------------------------------------------------------------
tmp-glib-x86_64-pc-linux-gnu/glib-2.70.2/meson.build:2002:2: ERROR: could not get https://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.bz2 is the internet available?
A full log can be found at /home/****/cross-build/mxe/tmp-glib-x86_64-pc-linux-gnu/glib-2.70.2.build_/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
make[1]: *** [Makefile:901: build-only-glib_x86_64-pc-linux-gnu] Error 1
make[1]: Leaving directory '/home/****/cross-build/mxe'
real 0m41.384s
user 0m8.591s
sys 0m1.896s
- Add
cmake
as a dependency
Will clone aom source in /home/***/cross-build directory
Cloning into 'aom'...
remote: Total 259342 (delta 206349), reused 259342 (delta 206349)
Receiving objects: 100% (259342/259342), 336.34 MiB | 10.85 MiB/s, done.
Resolving deltas: 100% (206349/206349), done.
Note: switching to 'tags/v2.0.2'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at cb1d48da8 Prepare for the libaom v2.0.2 release
/home/***/avidemux2/mxe/install-libaom.bash: line 30: cmake: command not found
** Failed at cmake **
** Failed at libaom **
real 136m0.967s
user 463m58.068s
sys 50m22.890s
- Add
yasm
as a dependency
HEAD is now at cb1d48da8 Prepare for the libaom v2.0.2 release
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/***/cross-build/mxe/usr/bin/i686-w64-mingw32.shared-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/***/cross-build/mxe/usr/bin/i686-w64-mingw32.shared-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.37.2")
-- Found Perl: /usr/bin/perl (found version "5.34.0")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
--- aom_configure: Detected CPU: x86
CMake Error at build/cmake/aom_configure.cmake:143 (message):
Unable to find assembler. Install 'yasm' or 'nasm.' To build without
optimizations, add -DAOM_TARGET_CPU=generic to your cmake command line.
Call Stack (most recent call first):
CMakeLists.txt:40 (include)
-- Configuring incomplete, errors occurred!
See also "/home/***/cross-build/build-aom32/CMakeFiles/CMakeOutput.log".
** Failed at cmake **
** Failed at libaom **
real 134m36.590s
user 464m28.403s
sys 50m22.913s
This resolves #2875..
Thank you, if you wish to proceed via PR (the issue was raised in the forum recently while I didn't have time for anything PC-related), please replace Debian-specific package names for pcre and cmake with distribution-neutral descriptions.
Regarding cmake and yasm, wouldn't it be better to ask for build dependencies of aom?