bgshih/crnn

Undefined symbol when running demo

yan123jing opened this issue · 3 comments

/init.lua:389: error loading module 'libcrnn' from file './libcrnn.so':
./libcrnn.so: undefined symbol: _ZN6google10LogMessage6streamEv
stack traceback:
[C]: in function 'error'
/home/tutu/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
demo.lua:9: in main chunk
[C]: in function 'dofile'
...tutu/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

Getting the same error, could you resolve this issue please?

same problem
---edit-----
@khsibr
the project cannot find the libgoogle-glog-dev.so
you can add find_packge to the cmakeList.txt & check /etc/environment LD_LIBRARY_PATH

mpech commented

same as ilovin:
assuming you have installed glog
(instead of having to edit LD_LIBRARY_PATH)

-SET(EXT_LIBRARIES ${THPP_LIBRARY} ${LUAT_LIBRARY} ${TH_LIBRARY} ${THC_LIBRARY})
+FIND_LIBRARY(GLOG_LIBRARY glog)
+SET(GLOG_LIBRARIES ${GLOG_LIBRARY})
+SET(EXT_LIBRARIES ${THPP_LIBRARY} ${LUAT_LIBRARY} ${TH_LIBRARY} ${THC_LIBRARY} ${GLOG_LIBRARIES})
 SET(EXT_INCLUDE_DIRS "${TORCH_ROOT}/include" "${TORCH_ROOT}/include/TH")