include/dai/util.h:37:14: fatal error: 'boost/tr1/unordered_map.hpp' file not found
#include <boost/tr1/unordered_map.hpp> // only present in boost 1.37 and higher
----
It seems that this boost library is not available in contemporary boost (which I installed with Mac port just now).
Would you have an idea to kindly help me out here?
Best regards
Daniel
daniel@MBP-von-Daniel libdai % make doinference
g++ -Iinclude -I/opt/local/include -Wno-deprecated -Wall -W -Wextra -fPIC -DMACOSX -arch arm64 -O3 -g -DDAI_DEBUG -DDAI_WITH_BP -DDAI_WITH_FBP -DDAI_WITH_TRWBP -DDAI_WITH_MF -DDAI_WITH_HAK -DDAI_WITH_LC -DDAI_WITH_TREEEP -DDAI_WITH_JTREE -DDAI_WITH_MR -DDAI_WITH_GIBBS -DDAI_WITH_CBP -DDAI_WITH_DECMAP -Llib -L/opt/local/lib -o examples/doinference examples/doinference.cpp -ldai -lgmpxx -lgmp -arch arm64
And besides some major(?) warnings (*see below as the thread is quite long)
I found in the examples folder created from built process a doinference executable which I tested in 3
3) I tested it with
./doinference ../../../factors.fg map
where my factors.fg I have attached on this post
and received this error message
libc++abi.dylib: terminating with uncaught exception of type dai::Exception: Assertion failed: Assertion "vs.size() == N" failed [File include/dai/index.h, line 171, function: dai::Permute::Permute(const std::vector<Var> &, bool)]
zsh: abort ./doinference ../../../factors.fg map
Could you further assist me in an assessment what could be the reason?
Kind thank you for your help!
Best,
Daniel
---
*warnings of make do inference
In file included from examples/doinference.cpp:12:
In file included from include/dai/alldai.h:23:
In file included from include/dai/daialg.h:21:
In file included from include/dai/regiongraph.h:20:
In file included from include/dai/weightedgraph.h:27:
In file included from /opt/local/include/boost/graph/prim_minimum_spanning_tree.hpp:15:
/opt/local/include/boost/graph/dijkstra_shortest_paths.hpp:99:25: warning:
unused parameter 'u' [-Wunused-parameter]
void tree_edge(Edge u, Graph& g) { }
^
/opt/local/include/boost/graph/dijkstra_shortest_paths.hpp:99:35: warning:
unused parameter 'g' [-Wunused-parameter]
void tree_edge(Edge u, Graph& g) { }
^
/opt/local/include/boost/graph/dijkstra_shortest_paths.hpp:226:38: warning:
unused parameter 'g' [-Wunused-parameter]
static type build(const Graph& g, const IndexMap& index, boost::sc...
^
/opt/local/include/boost/graph/dijkstra_shortest_paths.hpp:226:92: warning:
unused parameter 'array_holder' [-Wunused-parameter]
...Graph& g, const IndexMap& index, boost::scoped_array<Value>& array_holde...
^
/opt/local/include/boost/graph/dijkstra_shortest_paths.hpp:261:38: warning:
unused parameter 'g' [-Wunused-parameter]
static type build(const Graph& g, const IndexMap& index) {
^
In file included from examples/doinference.cpp:12:
In file included from include/dai/alldai.h:23:
include/dai/daialg.h:239:14: warning:
'dai::DAIAlg<dai::FactorGraph>::backupFactors' hides overloaded virtual
function [-Woverloaded-virtual]
void backupFactors( const VarSet &vs ) { GRM::backupFactors( vs ); }
^
include/dai/exactinf.h:32:25: note: in instantiation of template class
'dai::DAIAlg<dai::FactorGraph>' requested here
class ExactInf : public DAIAlgFG {
^
include/dai/factorgraph.h:266:22: note: hidden overloaded virtual function
'dai::FactorGraph::backupFactors' declared here: type mismatch at 1st
parameter ('const std::set<size_t> &' (aka 'const set<unsigned long> &')
vs 'const dai::VarSet &')
virtual void backupFactors( const std::set<size_t>& facs );
^
In file included from examples/doinference.cpp:12:
In file included from include/dai/alldai.h:23:
include/dai/daialg.h:244:14: warning:
'dai::DAIAlg<dai::FactorGraph>::restoreFactors' hides overloaded virtual
function [-Woverloaded-virtual]
void restoreFactors( const VarSet &vs ) { GRM::restoreFactors( vs ); }
^
include/dai/factorgraph.h:269:22: note: hidden overloaded virtual function
'dai::FactorGraph::restoreFactors' declared here: different number of
parameters (0 vs 1)
virtual void restoreFactors();
^
In file included from examples/doinference.cpp:12:
In file included from include/dai/alldai.h:23:
include/dai/daialg.h:239:14: warning:
'dai::DAIAlg<dai::RegionGraph>::backupFactors' hides overloaded virtual
function [-Woverloaded-virtual]
void backupFactors( const VarSet &vs ) { GRM::backupFactors( vs ); }
^
include/dai/hak.h:32:20: note: in instantiation of template class
'dai::DAIAlg<dai::RegionGraph>' requested here
class HAK : public DAIAlgRG {
^
include/dai/factorgraph.h:266:22: note: hidden overloaded virtual function
'dai::FactorGraph::backupFactors' declared here: type mismatch at 1st
parameter ('const std::set<size_t> &' (aka 'const set<unsigned long> &')
vs 'const dai::VarSet &')
virtual void backupFactors( const std::set<size_t>& facs );
^
In file included from examples/doinference.cpp:12:
In file included from include/dai/alldai.h:23:
include/dai/daialg.h:244:14: warning:
'dai::DAIAlg<dai::RegionGraph>::restoreFactors' hides overloaded virtual
function [-Woverloaded-virtual]
void restoreFactors( const VarSet &vs ) { GRM::restoreFactors( vs ); }
^
include/dai/factorgraph.h:269:22: note: hidden overloaded virtual function
'dai::FactorGraph::restoreFactors' declared here: different number of
parameters (0 vs 1)
virtual void restoreFactors();
^
9 warnings generated.