aja-video / libajantv2

Open-source library for AJA Video Systems desktop IO cards.
MIT License
22 stars 16 forks source link

Unable to link with libajacc.a from ZIP #8

Closed janbrothanek closed 9 months ago

janbrothanek commented 9 months ago

Hi, building our app with libajantv2.a (built from source) and libajacc.a (downloaded in ZIP as a part of SDK), we get linking errors, see below. We tested Rocky 9.3 with GCC 11 and 12.

Is there any advice on how to build with the two libraries? Or is there source code for AJA CC library which we could build in the same environment to ensure compatibility?

Here's the error log:

 /usr/bin/ld: /opt/transcoder/aja_sdk/lib/libajacc.a(ntv2line21captioner.cpp.o): in function `CNTV2Line21Captioner::EncodeLine(unsigned char, unsigned char)':
 ntv2line21captioner.cpp:(.text+0x916): undefined reference to `AJADebug::Report(int, int, char const*, int, std::string const&)'
 /usr/bin/ld: ntv2line21captioner.cpp:(.text+0x13ea): undefined reference to `AJADebug::Report(int, int, char const*, int, std::string const&)'
 /usr/bin/ld: /opt/transcoder/aja_sdk/lib/libajacc.a(ntv2line21captioner.cpp.o): in function `DecodeCCBytes_NTSC(unsigned char const*, unsigned char&, unsigned char&)':
 ntv2line21captioner.cpp:(.text+0x2409): undefined reference to `AJADebug::Report(int, int, char const*, int, std::string const&)'
 /usr/bin/ld: ntv2line21captioner.cpp:(.text+0x27c2): undefined reference to `AJADebug::Report(int, int, char const*, int, std::string const&)'
 /usr/bin/ld: ntv2line21captioner.cpp:(.text+0x2db1): undefined reference to `AJADebug::Report(int, int, char const*, int, std::string const&)'
 /usr/bin/ld: /opt/transcoder/aja_sdk/lib/libajacc.a(ntv2line21captioner.cpp.o):ntv2line21captioner.cpp:(.text+0x5fc2): more undefined references to `AJADebug::Report(int, int, char const*, int, std::string const&)' follow 
mrbillaja commented 9 months ago

Hi, @janbrothanek -- This involves ‘libajacc’, an AJA proprietary library, and thus is an OEM SDK issue. Please file a ticket at https://sdksupport.aja.com/. Thanks.