x265 Compile Intro - Compile x265 with Debug Enabled


1. enter into build/linux directory

2. run make-Makefiles.bash script

./make-Makefiles.bash

3. modify CMakeCache.txt

//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

//Flags used by the compiler during all build types.
//CMAKE_CXX_FLAGS:STRING=
CMAKE_CXX_FLAGS:STRING=-g

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release builds for minimum
// size.
// CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-O0 -DNDEBUG

//Flags used by the compiler during release builds.
// CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE:STRING=-O0 -DNDEBUG

//Flags used by the compiler during release builds with debug info.
// CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O0 -g -DNDEBUG

//C compiler
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc

//Flags used by the compiler during all build types.
// CMAKE_C_FLAGS:STRING=
CMAKE_C_FLAGS:STRING=-g

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release builds for minimum
// size.
// CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_C_FLAGS_MINSIZEREL:STRING=-O0 -DNDEBUG

//Flags used by the compiler during release builds.
// CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_C_FLAGS_RELEASE:STRING=-O0 -DNDEBUG

//Flags used by the compiler during release builds with debug info.
// CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O0 -g -DNDEBUG


4. Compile

make

5. Install

make install



你可能感兴趣的:(x265)