crnn icon indicating copy to clipboard operation
crnn copied to clipboard

Undefined symbol when running demo

Open yan123jing opened this issue 6 years ago • 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

yan123jing avatar Apr 17 '18 09:04 yan123jing

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

khsibr avatar May 08 '18 19:05 khsibr

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

ilovin avatar May 09 '18 12:05 ilovin

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")

mpech avatar May 24 '18 16:05 mpech