error when bulit the multilab with Visual Studio 2015.

Issue #170 closed
changhao fu created an issue

Worked fine with the commit: 2980141a744a569ad6f60dbebdece76a4eababfd

But Failed with commit:cc5ceb11f902094a9755af5a3295e639da620c10

It's okey to build with 2 labs such as main and mian10 but not in 3 labs.

x265-static.lib(api.obj) : error LNK2019: 无法解析的外部符号 "struct x265_api const *__cdecl x265_12bit::x265_api_get_71(int)" (?x265_api_get_71@x265_12bit@@YAPEBUx265_api@@H@Z),该符号在函数 x265_api_get_71 中被引用

x265-static.lib(api.obj) : error LNK2019: 无法解析的外部符号 "struct x265_api const __cdecl x265_12bit::x265_api_query(int,int,int )" (?x265_api_query@x265_12bit@@YAPEBUx265_api@@HHPEAH@Z),该符号在函数 x265_api_query 中被引用

Command Line:

call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"

@cd 12bit
cmake -G "Visual Studio 14 Win64" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF

  MSBuild /property:Configuration="Release" /target:rebuild x265.sln
  copy/y Release\x265-static.lib ..\8bit\x265-static-main12.lib


@cd ..\10bit

cmake -G "Visual Studio 14 Win64" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF

  MSBuild /property:Configuration="Release" /target:rebuild x265.sln
  copy/y Release\x265-static.lib ..\8bit\x265-static-main10.lib


@cd ..\8bit
if not exist x265-static-main10.lib (
  msg "%username%" "10bit build failed"
  exit 1
)
if not exist x265-static-main12.lib (
  msg "%username%" "12bit build failed"
  exit 1
)

cmake -G "Visual Studio 14 Win64" ../../../source -DEXTRA_LIB="x265-static-main10.lib;x265-static-main12.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON

 MSBuild /property:Configuration="Release" /target:rebuild x265.sln

 copy/y Release\x265.exe ..\x265.exe

pause

Comments (4)

  1. Log in to comment