Opened 5 years ago

Closed 5 years ago

#643 closed defect (invalid)

VTM 7.0rc1 fails to build under Visual Studio

Reported by: jonathang Owned by:
Priority: minor Milestone: VTM-7.0
Component: VTM Version: VTM-7.0rc1
Keywords: Cc: ksuehring, XiangLi, fbossen, jvet@…

Description

Attempting to build under Visual Studio 2019 (CMakeLists.txt opened directly from Visual Studio) fails with the following linker errors:

C:\Software\EncApp.cpp.obj : error LNK2019: unresolved external symbol "public: __cdecl EncTemporalFilter::EncTemporalFilter(void)" (??0EncTemporalFilter@@QEAA@XZ) referenced in function "public: void __cdecl EncApp::encode(void)" (?encode@EncApp@@QEAAXXZ)
C:\Software\EncApp.cpp.obj : error LNK2019: unresolved external symbol "public: void __cdecl EncTemporalFilter::init(int,int const * const,int const * const,int const * const,int,int,int const *,bool,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum ChromaFormat,enum InputColourSpaceConversion,int,class std::map<int,double,struct std::less<int>,class std::allocator<struct std::pair<int const ,double> > > const &,bool)" (?init@EncTemporalFilter@@QEAAXHQEBH00HHPEBH_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4ChromaFormat@@W4InputColourSpaceConversion@@HAEBV?$map@HNU?$less@H@std@@V?$allocator@U?$pair@$$CBHN@std@@@2@@3@2@Z) referenced in function "public: void __cdecl EncApp::encode(void)" (?encode@EncApp@@QEAAXXZ)
C:\Software\EncApp.cpp.obj : error LNK2019: unresolved external symbol "public: bool __cdecl EncTemporalFilter::filter(struct PelStorage *,int)" (?filter@EncTemporalFilter@@QEAA_NPEAUPelStorage@@H@Z) referenced in function "public: void __cdecl EncApp::encode(void)" (?encode@EncApp@@QEAAXXZ)

The build error is introduced by commit fe8e3e68fef2be5973662b601b5035987bfc4cbd: Merge branch 'JVET-O0549_ENCODER_ONLY_FILTER' into 'master'

Change history (4)

comment:1 Changed 5 years ago by rickard

I was not able to recreate this problem using Visual Studio 2019 16.3.7. I opened "File->Open->CMake" and it built just fine.

comment:2 Changed 5 years ago by fbossen

Looks like this isn't a clean build. When source files are added the cmake cache should be cleared before building.

comment:3 Changed 5 years ago by jonathang

You are right, I did not clear my cmake cache. It was achieved by "Project->CMake Cache->Delete Cache". Thanks!

Please close the ticket.

comment:4 Changed 5 years ago by XiangLi

  • Milestone set to VTM-7.0
  • Resolution set to invalid
  • Status changed from new to closed
  • Version set to VTM-7.0rc1
Note: See TracTickets for help on using tickets.