From 82d541f6a39d5cb8a999bffaac11973e42a43524 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sat, 17 Oct 2009 04:29:14 +0000 Subject: [PATCH] Fixed wrapper problem This was because VectorConfig was parsed as Vector. Just changing the order of the parsers fixed this. --- .cproject | 33 ++++++++++++++++++++++++--------- wrap/Makefile.am | 6 ++++++ wrap/Module.cpp | 4 ++-- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/.cproject b/.cproject index de1ddc75a..229ede4df 100644 --- a/.cproject +++ b/.cproject @@ -298,7 +298,15 @@ - + +make + +install +true +true +true + + make check @@ -306,8 +314,16 @@ true true + +make +check +true +true +true + make + testSimpleCamera.run true true @@ -323,7 +339,6 @@ make - testVSLAMFactor.run true true @@ -331,6 +346,7 @@ make + testCalibratedCamera.run true true @@ -338,7 +354,6 @@ make - testConditionalGaussian.run true true @@ -346,6 +361,7 @@ make + testPose2.run true true @@ -361,6 +377,7 @@ make + testRot3.run true true @@ -368,7 +385,6 @@ make - testNonlinearOptimizer.run true true @@ -376,6 +392,7 @@ make + testLinearFactor.run true true @@ -383,6 +400,7 @@ make + testConstrainedNonlinearFactorGraph.run true true @@ -390,6 +408,7 @@ make + testLinearFactorGraph.run true true @@ -397,7 +416,6 @@ make - testNonlinearFactorGraph.run true true @@ -405,6 +423,7 @@ make + testPose3.run true true @@ -412,7 +431,6 @@ make - testConstrainedLinearFactorGraph.run true true @@ -420,7 +438,6 @@ make - install true true @@ -428,7 +445,6 @@ make - clean true true @@ -436,7 +452,6 @@ make - check true true diff --git a/wrap/Makefile.am b/wrap/Makefile.am index d25a8a74e..d02676fed 100644 --- a/wrap/Makefile.am +++ b/wrap/Makefile.am @@ -23,3 +23,9 @@ install: all clean: @test -z "wrap" || rm -f wrap @test -z "../toolbox" || rm -rf ../toolbox + +# rule to run an executable +%.run: % libgtsam.la + ./$^ + + \ No newline at end of file diff --git a/wrap/Module.cpp b/wrap/Module.cpp index 4f042df55..2ce93171b 100644 --- a/wrap/Module.cpp +++ b/wrap/Module.cpp @@ -87,12 +87,12 @@ Module::Module(const string& interfacePath, Rule returnType1_p = basisType_p[assign_a(method.returns)] | - ((str_p("Vector") | "Matrix" | className_p)[assign_a(method.returns)] >> + ((className_p | "Vector" | "Matrix")[assign_a(method.returns)] >> !ch_p('*') [assign_a(method.returns_ptr,true)]); Rule returnType2_p = basisType_p[assign_a(method.returns2)] | - ((str_p("Vector") | "Matrix" | className_p)[assign_a(method.returns2)] >> + ((className_p | "Vector" | "Matrix")[assign_a(method.returns2)] >> !ch_p('*') [assign_a(method.returns_ptr2,true)]); Rule pair_p =