x265: version 3.5 #7353
Replies: 2 comments 2 replies
-
Finally, I got around to build the package. Following are the changes required - diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index a407271b4..d4d52d82d 100755
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -85,7 +85,10 @@ else()
endif()
if(UNIX)
- list(APPEND PLATFORM_LIBS pthread)
+ find_library(LIBPTHREAD pthread)
+ if(LIBPTHREAD)
+ list(APPEND PLATFORM_LIBS pthread)
+ endif()
find_library(LIBRT rt)
if(LIBRT)
list(APPEND PLATFORM_LIBS rt)
@@ -546,7 +549,7 @@ if((MSVC_IDE OR XCODE OR GCC) AND ENABLE_ASSEMBLY)
add_custom_command(
OUTPUT ${ASM}.${SUFFIX}
COMMAND ${CMAKE_CXX_COMPILER}
- ARGS ${ARM_ARGS} -c ${ASM_SRC} -o ${ASM}.${SUFFIX}
+ ARGS --target=@CCTERMUX_HOST_PLATFORM@ -fno-integrated-as ${ARM_ARGS} -c ${ASM_SRC} -o ${ASM}.${SUFFIX}
DEPENDS ${ASM_SRC})
endforeach()
elseif(X86) Standard main, main10, mainstillpicture profile for hevc (working) TERMUX_PKG_HOMEPAGE=http://x265.org/
TERMUX_PKG_DESCRIPTION="H.265/HEVC video stream encoder library"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.5
TERMUX_PKG_SRCURL=https://bitbucket.org/multicoreware/x265_git/downloads/x265_$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=e70a3335cacacbba0b3a20ec6fecd6783932288ebc8163ad74bcc9606477cae8
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_BREAKS="libx265-dev"
TERMUX_PKG_REPLACES="libx265-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DCROSS_COMPILE_ARM=ON
"
termux_step_pre_configure() {
if [ $TERMUX_ARCH = "i686" ]; then
# Avoid text relocations.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DENABLE_ASSEMBLY=OFF"
fi
sed -i "s/@CCTERMUX_HOST_PLATFORM@/${CCTERMUX_HOST_PLATFORM}/" \
${TERMUX_PKG_SRCDIR}/source/CMakeLists.txt
TERMUX_PKG_SRCDIR="$TERMUX_PKG_SRCDIR/source"
} The following patch is not needed, unless diff --git a/source/dynamicHDR10/CMakeLists.txt b/source/dynamicHDR10/CMakeLists.txt
index 22fb79d44..e96996b5f 100644
--- a/source/dynamicHDR10/CMakeLists.txt
+++ b/source/dynamicHDR10/CMakeLists.txt
@@ -43,7 +43,11 @@ if(GCC)
endif()
endif()
if(ARM AND CROSS_COMPILE_ARM)
- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC)
+ if(ARM64)
+ set(ARM_ARGS -fPIC)
+ else()
+ set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC)
+ endif()
elseif(ARM)
find_package(Neon)
if(CPU_HAS_NEON) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why not you? Since you have done hard work patching it go for it |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
x265
library has a newer version,3.5
, available with overall improvements and some foraarch64
. Needs a patch fordynamic HDR10
cmake file and cross-compiling toolchain. Anyone interested to submit a PR is welcome.Note: I haven't tested this
build.sh
file at the moment due to unavailability of a build environment.Beta Was this translation helpful? Give feedback.
All reactions