[x265] [PATCH 2/2] Fix x86_64 build

Steve Borho steve at borho.org
Wed Mar 5 18:08:52 CET 2014


On Wed, Mar 5, 2014 at 4:38 AM, Rafaël Carré <funman at videolan.org> wrote:
> ---
>  source/CMakeLists.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
> index 2febfaa..d2fea1a 100644
> --- a/source/CMakeLists.txt
> +++ b/source/CMakeLists.txt
> @@ -21,7 +21,7 @@ configure_file("${PROJECT_SOURCE_DIR}/x265_config.h.in"
>
>  SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
>
> -if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
> +if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
>      set(X86 1)
>      add_definitions(-DX265_ARCH_X86=1)
>      if("${CMAKE_SIZEOF_VOID_P}" MATCHES 8)


I suspect there is something wrong with your git clone.  This line now
looks like:

string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC)
if("${SYSPROC}" STREQUAL "i386"   OR "${SYSPROC}" STREQUAL "amd64" OR
   "${SYSPROC}" STREQUAL "x86_64" OR "${SYSPROC}" STREQUAL "x86"   OR
   "${SYSPROC}" STREQUAL "")
    message(STATUS "Detected x86 system processor")

The line you have is over a month old.

-- 
Steve Borho


More information about the x265-devel mailing list