Hello,
I’m running OMV 4.3 and I need to build Kradio5 in order to make use of my FM tuner hardware. In the past I had no issues with Kradio4, but lately I decided to give this software another try and compile the recent version of Kradio from sources.
However, the compilation breaks in the middle no matter if I use GCC or Clang. Here is the output:
/home/zeffanyx/Sources/kradio-code-b5983eb7c3262e33e5c850ca62099d0ee6ad2612/src/soundformat.h:123:24: error: no member named 'numeric_limits' in namespace 'std'
: min( std::numeric_limits<T>::max()),
~~~~~^
/home/zeffanyx/Sources/kradio-code-b5983eb7c3262e33e5c850ca62099d0ee6ad2612/src/soundformat.h:123:39: error: 'T' does not refer to a value
: min( std::numeric_limits<T>::max()),
^
/home/zeffanyx/Sources/kradio-code-b5983eb7c3262e33e5c850ca62099d0ee6ad2612/src/soundformat.h:115:23: note: declared here
template<typename T>
^
/home/zeffanyx/Sources/kradio-code-b5983eb7c3262e33e5c850ca62099d0ee6ad2612/src/soundformat.h:123:41: error: no member named 'max' in the global namespace; did you mean simply 'max'?
: min( std::numeric_limits<T>::max()),
^~~~~
max
/home/zeffanyx/Sources/kradio-code-b5983eb7c3262e33e5c850ca62099d0ee6ad2612/src/soundformat.h:119:11: note: 'max' declared here
T max;
^
/home/zeffanyx/Sources/kradio-code-b5983eb7c3262e33e5c850ca62099d0ee6ad2612/src/soundformat.h:124:24: error: no member named 'numeric_limits' in namespace 'std'
max(-std::numeric_limits<T>::min()),
~~~~~^
/home/zeffanyx/Sources/kradio-code-b5983eb7c3262e33e5c850ca62099d0ee6ad2612/src/soundformat.h:124:39: error: 'T' does not refer to a value
max(-std::numeric_limits<T>::min()),
^
/home/zeffanyx/Sources/kradio-code-b5983eb7c3262e33e5c850ca62099d0ee6ad2612/src/soundformat.h:115:23: note: declared here
template<typename T>
I wonder how I can fix it. Is it about telling Cmake to use different C++ standard, or patching the software itself? Can you advise?