Open zyth0s opened 5 years ago
Honestly, using anything related to streams in C++ was a bad idea. I believe the first case (4.8.5) just requires better documentation saying that gcc version X is required for the json converter. If you just want core and/or the gui, then you can just not build the json converter. It's not needed for anything.
Oops, we haven't checked gcc-4 build after adding json-cpp :man_facepalming:
But, as @rationalcoder already mentioned, you can exclude profiler_converter when building with gcc-4.
And thanks for reporting about clang-7!
It is good to know prerequisites is CMake >= 3.0 and GCC >= 4.8, I misunderstand compile easy_profiler may be need GCC7+ when I was reading "https://github.com/yse/easy_profiler/wiki/Known-bugs-and-issues". I will search for solution want to compile easy profiler core for embedded system which installed centos 7.4, and compile easy profiler gui for ubuntu 16.04 desktop. Any ideas?
When I compile with Clang 7.0.0:
profiler_gui/main_window.cpp:2166:14: error: no member named 'swap' in 'std::basic_stringstream<char>'
BTW, compiled with clang-7
without errors. Also downloaded clang libc++
source code from clang.llvm.org and there is a public
basic_stringstream::swap
in include/sstream
:man_shrugging:
I will search for solution want to compile easy profiler core for embedded system which installed centos 7.4, and compile easy profiler gui for ubuntu 16.04 desktop. Any ideas?
Faced any problems?
When I tried to compile
easy_profiler
with gcc 4.8.5 I encountered the following error:When I compile with Clang 7.0.0:
profiler_gui/main_window.cpp:2166:14: error: no member named 'swap' in 'std::basic_stringstream<char>'
Both compilers are expected to work after reading the prerequisites:
Compiler with c++11 support
Fortunately, it compiled with gcc-8.