From 8562c00a5289ccdf610bb18d789ceee4c4594ef2 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Thu, 14 Jan 2010 05:01:40 +0000 Subject: [PATCH] Explicit instantiation to fix link error on Linux, also header to install that was missing from Makefile.am --- cpp/Makefile.am | 1 + cpp/VSLAMFactor.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cpp/Makefile.am b/cpp/Makefile.am index b3705283e..f9660c98b 100644 --- a/cpp/Makefile.am +++ b/cpp/Makefile.am @@ -240,6 +240,7 @@ testSimpleCamera_SOURCES = testSimpleCamera.cpp testSimpleCamera_LDADD = libgtsam.la # Visual SLAM +headers += VSLAMConfig.h sources += VSLAMGraph.cpp VSLAMFactor.cpp check_PROGRAMS += testVSLAMFactor testVSLAMGraph testVSLAMConfig testVSLAMFactor_SOURCES = testVSLAMFactor.cpp diff --git a/cpp/VSLAMFactor.cpp b/cpp/VSLAMFactor.cpp index 837934049..f35a66fa4 100644 --- a/cpp/VSLAMFactor.cpp +++ b/cpp/VSLAMFactor.cpp @@ -13,6 +13,8 @@ using namespace std; namespace gtsam { + template class NonlinearFactor2; + /* ************************************************************************* */ VSLAMFactor::VSLAMFactor() { /// Arbitrary values