sarsop
sarsop copied to clipboard
Can not compile SARSOP for macOS 10.13.6
This is the error prompt of 'make' :
g++ -g -w -O3 -I./MathLib -I./Algorithms -I./Algorithms/HSVI -I./Algorithms/SARSOP -I./Models/MOMDP/ -I./Models/MOMDP/CoLoc/ -I./OfflineSolver/ -I./Bounds/ -I./Core/ -I./Parser/Cassandra/ -I./Parser/Cassandra/include -I./Parser/ -I./Parser/POMDPX/ -I./Utils/ -I./Simulator/ -I./Evaluator/ -I./Controller/ -msse2 -mfpmath=sse -c -o PolicyGraph/PolicyGraph.o PolicyGraph/PolicyGraph.cpp In file included from PolicyGraph/PolicyGraph.cpp:1: In file included from ./Models/MOMDP/MOMDP.h:10: In file included from ./Core/Observations.h:8: In file included from ./Core/VariableContainer.h:10: In file included from ./MathLib/MathLib.h:12: ./MathLib/SparseMatrix.h:24:33: error: field of type 'momdp::SparseCol::iterator' (aka '__wrap_iter<const momdp::SparseVector_Entry *>') has private constructor inline SparseCol(): _begin(NULL), _end(NULL) {} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:1420:31: note: declared private here _LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT_DEBUG : __i(__x) {} ^ In file included from PolicyGraph/PolicyGraph.cpp:1: In file included from ./Models/MOMDP/MOMDP.h:10: In file included from ./Core/Observations.h:8: In file included from ./Core/VariableContainer.h:10: In file included from ./MathLib/MathLib.h:12: ./MathLib/SparseMatrix.h:24:47: error: field of type 'momdp::SparseCol::iterator' (aka '__wrap_iter<const momdp::SparseVector_Entry *>') has private constructor inline SparseCol(): _begin(NULL), _end(NULL) {} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:1420:31: note: declared private here _LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT_DEBUG : __i(__x) {} ^ 2 errors generated. make: *** [PolicyGraph/PolicyGraph.o] Error 1
I received the same error on MacOS 10.14.6. Any luck getting it to work?
For people coming here with the same issue, there is a fork of this library here. This fork compiled for me on OSX 10.15.2. So far so good...