From ec7b07a9c3cf7ecf76396f38934db1988245c3a2 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Wed, 31 Jul 2019 16:15:11 +0300 Subject: [PATCH] Groupview without libarchive --- applications/groupview/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/applications/groupview/src/main.cpp b/applications/groupview/src/main.cpp index 590a1e929..dab034c30 100644 --- a/applications/groupview/src/main.cpp +++ b/applications/groupview/src/main.cpp @@ -3,7 +3,10 @@ #include <ftl/net/universe.hpp> #include <ftl/rgbd/source.hpp> #include <ftl/rgbd/group.hpp> + +#ifdef HAVE_LIBARCHIVE #include <ftl/rgbd/snapshot.hpp> +#endif using Eigen::Matrix4d; using std::map; @@ -68,6 +71,7 @@ int main(int argc, char **argv) { if (grab) { grab = false; +#ifdef HAVE_LIBARCHIVE char timestamp[18]; std::time_t t=std::time(NULL); std::strftime(timestamp, sizeof(timestamp), "%F-%H%M%S", std::localtime(&t)); @@ -78,6 +82,7 @@ int main(int argc, char **argv) { LOG(INFO) << "SAVE: " << fs.channel1[i].cols << ", " << fs.channel2[i].type(); writer.addCameraRGBD(std::string("camera")+std::to_string(i), fs.channel1[i], fs.channel2[i]); } +#endif // HAVE_LIBARCHIVE } return true; }); -- GitLab