gosha20777 / keras2cpp

it's a small library for running trained Keras 2 models from a native C++ code.
MIT License
183 stars 54 forks source link

Using it with qmake #15

Closed eminfedar closed 4 years ago

eminfedar commented 4 years ago

Hello,

Which configs should I use when I compile it with Qt and qmake?

I am getting interesting errors with your default code:

main.cpp:10: error: undefined reference to `keras2cpp::Stream::Stream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
main.cpp:11: error: undefined reference to `keras2cpp::Model::Model(keras2cpp::Stream&)'
main.cpp:23: error: undefined reference to `keras2cpp::Tensor::print() const'

Thanks! :)

eminfedar commented 4 years ago

I just added all the files to the Qt and it solved.