microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.14k stars 6.38k forks source link

[x265] add multilib support #13875

Open kliffgomel opened 4 years ago

kliffgomel commented 4 years ago

Add x265 compilation options with multilib support for 8, 10 and 12 bit color depths.

kliffgomel commented 3 years ago

there is still no solution .. lack of a solution deprives ffmpeg of support for 10 and 12 bit hevc encoding

JackBoosY commented 3 years ago

Do you know what additional libraries are needed to enable these options?

kliffgomel commented 3 years ago

In the gcc version, no additional libraries are needed. 12, 10 and 8 bit shared libraries are compiled and linked into a single executable file.

JackBoosY commented 3 years ago

When enable these options on Windows and without adding other libs, I got these link errors:

api.cpp.obj : error LNK2019: unresolved external symbol "struct x265_api const * __cdecl x265_8bit::x265_api_get_192(int)" (?x265_api_get_192@x265_8bit@@YAPBUx265_api@@H@Z) referenced in function _x265_api_get_192
api.cpp.obj : error LNK2019: unresolved external symbol "struct x265_api const * __cdecl x265_8bit::x265_api_query(int,int,int *)" (?x265_api_query@x265_8bit@@YAPBUx265_api@@HHPAH@Z) referenced in function _x265_api_query
api.cpp.obj : error LNK2019: unresolved external symbol "struct x265_api const * __cdecl x265_10bit::x265_api_get_192(int)" (?x265_api_get_192@x265_10bit@@YAPBUx265_api@@H@Z) referenced in function _x265_api_get_192
api.cpp.obj : error LNK2019: unresolved external symbol "struct x265_api const * __cdecl x265_10bit::x265_api_query(int,int,int *)" (?x265_api_query@x265_10bit@@YAPBUx265_api@@HHPAH@Z) referenced in function _x265_api_query
api.cpp.obj : error LNK2019: unresolved external symbol "struct x265_api const * __cdecl x265_12bit::x265_api_get_192(int)" (?x265_api_get_192@x265_12bit@@YAPBUx265_api@@H@Z) referenced in function _x265_api_get_192
api.cpp.obj : error LNK2019: unresolved external symbol "struct x265_api const * __cdecl x265_12bit::x265_api_query(int,int,int *)" (?x265_api_query@x265_12bit@@YAPBUx265_api@@HHPAH@Z) referenced in function _x265_api_query