glassechidna / zxing-cpp

ZXing C++ Library
Apache License 2.0
605 stars 436 forks source link

QT Creator build failure #48

Open kgraven opened 7 years ago

kgraven commented 7 years ago

I installed CMake and QT Creator 4.1.0 and after a fresh pull from the repo I'm getting a link error where it can't find libzxing. I haven't developed code under QT in a few years and it doesn't let me manually add the library for some reason. Anyway. Easier to ask questions first than to fix it in some nonstandard way.

libzxing.lib(LinesSampler.cpp.obj):-1: error: LNK2019: unresolved external symbol "protected: static int const zxing::pdf417::detector::LinesSampler::BARS_IN_SYMBOL" (?BARS_IN_SYMBOL@LinesSampler@detector@pdf417@zxing@@1HB) referenced in function "protected: static void __cdecl zxing::pdf417::detector::LinesSampler::linesMatrixToCodewords(class std::vector<class std::vector<int,class std::allocator >,class std::allocator<class std::vector<int,class std::allocator > > > &,int,class std::vector<float,class std::allocator > const &,class zxing::Ref,class std::vector<class std::vector<int,class std::allocator >,class std::allocator<class std::vector<int,class std::allocator > > > &)" (?linesMatrixToCodewords@LinesSampler@detector@pdf417@zxing@@KAXAEAV?$vector@V?$vector@HV?$allocator@H@std@@@std@@V?$allocator@V?$vector@HV?$allocator@H@std@@@std@@@2@@std@@HAEBV?$vector@MV?$allocator@M@std@@@6@V?$Ref@VBitMatrix@zxing@@@4@0@Z)