shogun-toolbox / shogun

Shōgun
http://shogun-toolbox.org
BSD 3-Clause "New" or "Revised" License
3.03k stars 1.04k forks source link

Linux fmt error #5167

Closed martingkarlssonstudent closed 3 years ago

martingkarlssonstudent commented 3 years ago

Hi, I have made a manual compile to allow shogun to run on Linux Mint, producing an .so file. If I create a class in C++ and add:

include <shogun/neuralnets/NeuralLayers.h>

I get errors of the type:


g++ -g -Wall -std=c++17 -o ann ann.cc -I/usr/local/include/shogun -lshogun -lfmt In file included from /usr/local/include/shogun/base/constraint.h:10:0, from /usr/local/include/shogun/base/SGObject.h:17, from /usr/local/include/shogun/neuralnets/NeuralLayers.h:38, from ann.cc:3: /usr/local/include/shogun/io/SGIO.h:287:19: error: ‘string_view’ in namespace ‘fmt’ does not name a type const fmt::string_view& msg) const; ^~~ /usr/local/include/shogun/io/SGIO.h: In member function ‘void shogun::io::SGIO::message(shogun::io::EMessageType, const shogun::io::SourceLocation&, const char*, Args&& ...) const’: /usr/local/include/shogun/io/SGIO.h:309:10: error: ‘memory_buffer’ is not a member of ‘fmt’ fmt::memory_buffer msg; ^~~~~ /usr/local/include/shogun/io/SGIO.h:309:10: note: suggested alternative: ‘MemoryWriter’ fmt::memory_buffer msg;


I have tried installing spdlog and fmt and recompiling the shogun build, but I still get the same error. I am wondering if you know what might be the problem?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue is now being closed due to a lack of activity. Feel free to reopen it.