Unable to compile x265-2.9 version code on MSYS2 32 bit

Issue #450 new
Dinesh Gupta created an issue

Hi All,

I downloaded the x265-2.9 source code and tried to build on MSYS2 with MSVC 2017 community edition on Window 10.

While compiling the code got error

    # ./make-Makefiles.sh
-- cmake version 3.13.1
CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):
  The OLD behavior for policy CMP0025 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
  The OLD behavior for policy CMP0054 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: D:/msys32/usr/bin/gcc.exe
-- Check for working C compiler: D:/msys32/usr/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: D:/msys32/usr/bin/g++.exe
-- Check for working CXX compiler: D:/msys32/usr/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find NUMA (missing: NUMA_ROOT_DIR NUMA_INCLUDE_DIR NUMA_LIBRARY)
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Performing Test CC_HAS_NO_STRICT_OVERFLOW
-- Performing Test CC_HAS_NO_STRICT_OVERFLOW - Success
-- Performing Test CC_HAS_NO_NARROWING
-- Performing Test CC_HAS_NO_NARROWING - Success
-- Performing Test CC_HAS_NO_ARRAY_BOUNDS
-- Performing Test CC_HAS_NO_ARRAY_BOUNDS - Success
-- Performing Test CC_HAS_FAST_MATH
-- Performing Test CC_HAS_FAST_MATH - Success
-- Performing Test CC_HAS_STACK_REALIGN
-- Performing Test CC_HAS_STACK_REALIGN - Success
-- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG
-- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG - Success
-- Found nasm: D:/msys32/usr/bin/nasm.exe (found version "2.14")
-- Found Nasm 2.14 to build assembly primitives
-- x265 version 0.0
-- The ASM_NASM compiler identification is NASM
-- Found assembler: D:/msys32/usr/bin/nasm.exe
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for include file getopt.h
-- Looking for include file getopt.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: D:/smallgame/x265-2.9/build/msys

AzureAD+DineshGupta@Laptop-8888 MSYS /d/smallgame/x265-2.9/build/msys
# make
Scanning dependencies of target common
[  1%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixel-a.asm.o
[  2%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/const-a.asm.o
[  3%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/cpu-a.asm.o
[  4%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/ssd-a.asm.o
[  5%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/mc-a.asm.o
[  6%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/mc-a2.asm.o
[  8%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixel-util8.asm.o
[  9%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/blockcopy8.asm.o
[ 10%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixeladd8.asm.o
[ 11%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/dct8.asm.o
[ 12%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/seaintegral.asm.o
[ 13%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/sad-a.asm.o
[ 14%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/intrapred8.asm.o
[ 16%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/intrapred8_allangs.asm.o
[ 17%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/v4-ipfilter8.asm.o
[ 18%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/h-ipfilter8.asm.o
[ 19%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/ipfilter8.asm.o
[ 20%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/loopfilter.asm.o
[ 21%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixel-32.asm.o
[ 22%] Building CXX object common/CMakeFiles/common.dir/x86/asm-primitives.cpp.o
[ 24%] Building CXX object common/CMakeFiles/common.dir/vec/vec-primitives.cpp.o
[ 25%] Building CXX object common/CMakeFiles/common.dir/vec/dct-sse3.cpp.o
[ 26%] Building CXX object common/CMakeFiles/common.dir/vec/dct-ssse3.cpp.o
[ 27%] Building CXX object common/CMakeFiles/common.dir/vec/dct-sse41.cpp.o
[ 28%] Building CXX object common/CMakeFiles/common.dir/winxp.cpp.o
[ 29%] Building CXX object common/CMakeFiles/common.dir/primitives.cpp.o
[ 31%] Building CXX object common/CMakeFiles/common.dir/pixel.cpp.o
In file included from D:/smallgame/x265-2.9/source/encoder/slicetype.h:32:0,
                 from /D/smallgame/x265-2.9/source/common/pixel.cpp:28:
D:/smallgame/x265-2.9/source/common/threadpool.h:88:5: error: GROUP_AFFINITY does not name a type; did you mean FP_INFINITE?
     GROUP_AFFINITY m_groupAffinity;
     ^~~~~~~~~~~~~~
     FP_INFINITE
make[2]: *** [common/CMakeFiles/common.dir/build.make:257: common/CMakeFiles/common.dir/pixel.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:323: common/CMakeFiles/common.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Please help me to resolve this.

Also, I need help, how we can use MSVC's 'cl' instead of 'gcc' & 'g++'. Is there any way to achieve .

Comments (1)

  1. Log in to comment