larsys / markov_decision_making

Markov Decision Making
23 stars 3 forks source link

Does not build with MADP 0.4 #2

Open b-adkins opened 7 years ago

b-adkins commented 7 years ago

Specifically, Git commit fb4a336 of MADP. (ROS Indigo, Ubuntu 14.04, catkin tools)

Because...

/usr/bin/ld: cannot find -lMADPBase
/usr/bin/ld: cannot find -lMADPSupport
/usr/bin/ld: cannot find -lMADPPlanning
/usr/bin/ld: cannot find -lMADPParser
/usr/bin/ld: cannot find -lPOMDPSolve
/usr/bin/ld: cannot find -lLPSolveOld
/usr/bin/ld: cannot find -lmdp

I got it to build by changing, in mdm_library/CMakeModules/FindMADP.cmake:

IF(EXISTS ${MADP_INCLUDE_DIRS})
  SET(MADP_LIBRARIES "-lMADPBase -lMADPSupport -lMADPPlanning -lMADPParser -lPOMDPSolve -lLPSolveOld -lmdp")
ENDIF()

to

IF(EXISTS ${MADP_INCLUDE_DIRS})
  SET(MADP_LIBRARIES "-lMADP")
ENDIF()

It looks like MADP condensed all the lib files into a single file.

I haven't checked whether the MADP stuff actually works, which is why I haven't done a pull request.