MhLiao / TextBoxes_plusplus

TextBoxes++: A Single-Shot Oriented Scene Text Detector
Other
953 stars 279 forks source link

CRNN compile error with latest fblualib and thpp #27

Closed jmrichardson closed 6 years ago

jmrichardson commented 6 years ago

Hi, I am running into a problem compiling TB++:

[ 50%] Building CXX object CMakeFiles/crnn.dir/ctc.cpp.o
/home/john/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp: In instantiation of ‘int {anonymous}::forwardBackward(lua_State*) [with T =                float; lua_State = lua_State]’:
/home/john/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:200:16:   required from ‘const luaL_Reg {anonymous}::Registerer<float>::funct               ions_ [3]’
/home/john/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:209:24:   required from ‘static void {anonymous}::Registerer<T>::registerFunc               tions(lua_State*) [with T = float; lua_State = lua_State]’
/home/john/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:216:24:   required from here
/home/john/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:22:76: error: conversion from ‘thpp::TensorBase<float, thpp::Storage<float>,                thpp::Tensor<float> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<float> >}’ to non-scalar type ‘const thpp::Tensor<float>’ requested
     const thpp::Tensor<T> input     = fblualib::luaGetTensorChecked<T>(L, 1);

This error is referenced here as well. I believe you have modified the CRNN code so I don't think I can use the latest version of CRNN that resolves this. One way that someone got it to compile (see reference) was by downgrading fblualib and thpp. Is this the route you would take or do you know of a cleaner way?

Thanks in advance and appreciate you sharing your software.

jmrichardson commented 6 years ago

I was able to compile by install on ubuntu 14.04