When I tried to build the examples of Nuitrack SDK on Ubuntu 18.04, I could not build them as follows;
(To do this, I just clone https://github.com/3DiVi/nuitrack-sdk)
Before following procedure, I installed opencv(3.4.9) from source code.
(Because, the version of libopencv-dev installing by apt is different from the required version of libmiddleware.so and libnuitrack.so)
cd <NUITRACK_SDK_DIR>/Examples/nuitrack_console_sample
mkdir build
cd build
cmake …
make
<NUITRACK_SDK_DIR>/Examples/nuitrack_console_sample/…/…/Nuitrack/lib/linux64/libmiddleware.so: undefined reference to ZipArchive::GetEntriesCount() const' <NUITRACK_SDK_DIR>/Examples/nuitrack_console_sample/../../Nuitrack/lib/linux64/libmiddleware.so: undefined reference to
ZipFile::ExtractFile(std::string const&, std::string const&, std::string const&)’
<NUITRACK_SDK_DIR>/Examples/nuitrack_console_sample/…/…/Nuitrack/lib/linux64/libmiddleware.so: undefined reference to ZipArchive::GetEntry(int)' <NUITRACK_SDK_DIR>/Examples/nuitrack_console_sample/../../Nuitrack/lib/linux64/libmiddleware.so: undefined reference to
ZipArchiveEntry::GetFullName() const’
<NUITRACK_SDK_DIR>/Examples/nuitrack_console_sample/…/…/Nuitrack/lib/linux64/libmiddleware.so: undefined reference to `ZipFile::Open(std::string const&)’
collect2: error: ld returned 1 exit status
CMakeFiles/nuitrack_console_sample.dir/build.make:94: recipe for target ‘nuitrack_console_sample’ failed
make[2]: *** [nuitrack_console_sample] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/nuitrack_console_sample.dir/all’ failed
make[1]: *** [CMakeFiles/nuitrack_console_sample.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2
How can I solve this problem?