Re: [x265] Dynamic HDR10 routines don't compile in GCC 6.3.0, missing C++11 compatibility
Here a longer excerpt of the result of the following call (building the 12-bit depth library for a 32-bit multilib EXE, the first part in my semi-automatical build script, test version with added dynamicHDR10 support): cmake -G "MSYS Makefiles" ../../../source -DWINXP_SUPPORT=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DENABLE_ASSEMBLY=OFF -DHIGH_BIT_DEPTH=ON -DMAIN12=ON -DENABLE_DYNAMIC_HDR10=ON + ... [ 54%] Built target common [ 56%] Building CXX object dynamicHDR10/CMakeFiles/dynamicHDR10.dir/json11/json11.cpp.obj In file included from h:\msys-gcc630\mingw\include\c++\6.3.0\initializer_list:36:0, from h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:57, from h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.cpp:22: h:\msys-gcc630\mingw\include\c++\6.3.0\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^ In file included from h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.cpp:22:0: h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:91:5: warning: identifier 'noexcept' is a keyword in C++11 [-Wc++11-compat] Json() noexcept;// NUL ^~~~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:106:5: warning: identifier 'decltype' is a keyword in C++11 [-Wc++11-compat] template ^~~~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:176:13: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++11-compat] return nullptr; ^~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:79:7: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 class Json final{ //final ^~~~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:91:10: error: expected ';' at end of member declaration Json() noexcept;// NUL ^ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:91:12: error: 'noexcept' does not name a type Json() noexcept;// NUL ^~~~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:91:12: note: C++11 'noexcept' only available with -std=c++11 or -std=gnu++11 h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:92:24: error: invalid use of '::' Json(std::nullptr_t) noexcept; // NUL ^ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:92:24: error: expected ';' at end of member declaration h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:92:26: error: 'noexcept' does not name a type Json(std::nullptr_t) noexcept; // NUL ^~~~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:92:26: note: C++11 'noexcept' only available with -std=c++11 or -std=gnu++11 h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:97:22: error: expected ',' or '...' before '&&' token Json(std::string &&value); // STRING ^~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:100:16: error: expected ',' or '...' before '&&' token Json(array &&values); // ARRAY ^~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:102:17: error: expected ',' or '...' before '&&' token Json(object &&values); // OBJECT ^~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:106:32: error: expected type-specifier before 'decltype' template ^~~~ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:106:32: error: expected '>' before 'decltype' h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:107:21: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 Json(const T & t) : Json(t.to_json()) {} ^ h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:110:38: error: 'enable_if' in namespace 'std' does not name a template type template h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:110:47: error: expected '>' before '<' token template h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:114:5: error: 'template > json11::Json::Json(const M&)' cannot be overloaded Json(const M & m) : Json(object(m.begin(), m.end())) {} ^~~~ h:/MSYS-GCC630/home/Entwicklung/x265/
Re: [x265] Dynamic HDR10 routines don't compile in GCC 6.3.0, missing C++11 compatibility
What more than "GCC 6.3.0" do you need to know? My build environment is based on: http://xhmikosr.1f0.de/tools/msys/ with some customized scripts based on your build/msys shell scripts. Maybe I should clean and clone freshly, not to accidently miss any changes. Or did you not try to add "-DENABLE_DYNAMIC_HDR10=ON" to the CMake calls for 10 bit depth builds? Without this, there was just the shadowing warning. But with this addition, all the JSON sources (exclusive to dynamicHDR10 supporting builds) could not be built due to a lack of C++11 compatibility. Am 20.04.2017, 16:32 Uhr, schrieb Pradeep Ramachandran : What compiler are you trying with? We have seen some warnings, but most of them are harmless. I haven't seen any errors yet though. Pradeep. On Thu, Apr 20, 2017 at 1:06 AM, Mario *LigH* Rohkrämer wrote: When I add "-DENABLE_DYNAMIC_HDR10=ON" to my cmake calls, a huge load of warnings and errors appears. Most are related to missing compatibility with C++11. Few examples: In file included from h:/MSYS-GCC630/home/Entwicklun g/x265/source/dynamicHDR10/BasicStructures.cpp:26:0: h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/BasicStructures.h:34:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 float averageLuminance = 0.0; ^~~ In file included from h:\msys-gcc630\mingw\x86_64-w6 4-mingw32\include\c++\6.3.0\initializer_list:36:0, from h:/MSYS-GCC630/home/Entwicklun g/x265/source/dynamicHDR10/json11/json11.h:57, from h:/MSYS-GCC630/home/Entwicklun g/x265/source/dynamicHDR10/json11/json11.cpp:22: h:\msys-gcc630\mingw\x86_64-w64-mingw32\include\c++\6.3.0\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^ -- Fun and success! Mario *LigH* Rohkrämer mailto:cont...@ligh.de ___ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel -- Fun and success! Mario *LigH* Rohkrämer mailto:cont...@ligh.de ___ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel
Re: [x265] Dynamic HDR10 routines don't compile in GCC 6.3.0, missing C++11 compatibility
What compiler are you trying with? We have seen some warnings, but most of them are harmless. I haven't seen any errors yet though. Pradeep. On Thu, Apr 20, 2017 at 1:06 AM, Mario *LigH* Rohkrämer wrote: > When I add "-DENABLE_DYNAMIC_HDR10=ON" to my cmake calls, a huge load of > warnings and errors appears. Most are related to missing compatibility with > C++11. > > Few examples: > > > In file included from h:/MSYS-GCC630/home/Entwicklun > g/x265/source/dynamicHDR10/BasicStructures.cpp:26:0: > h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/BasicStructures.h:34:30: > warning: non-static data member initializers only available with -std=c++11 > or -std=gnu++11 > float averageLuminance = 0.0; > ^~~ > > In file included from h:\msys-gcc630\mingw\x86_64-w6 > 4-mingw32\include\c++\6.3.0\initializer_list:36:0, > from h:/MSYS-GCC630/home/Entwicklun > g/x265/source/dynamicHDR10/json11/json11.h:57, > from h:/MSYS-GCC630/home/Entwicklun > g/x265/source/dynamicHDR10/json11/json11.cpp:22: > h:\msys-gcc630\mingw\x86_64-w64-mingw32\include\c++\6.3.0\bits\c++0x_warning.h:32:2: > error: #error This file requires compiler and library support for the ISO > C++ 2011 standard. This support must be enabled with the -std=c++11 or > -std=gnu++11 compiler options. > #error This file requires compiler and library support \ > ^ > > > -- > > Fun and success! > Mario *LigH* Rohkrämer > mailto:cont...@ligh.de > > ___ > x265-devel mailing list > x265-devel@videolan.org > https://mailman.videolan.org/listinfo/x265-devel > ___ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel
[x265] Dynamic HDR10 routines don't compile in GCC 6.3.0, missing C++11 compatibility
When I add "-DENABLE_DYNAMIC_HDR10=ON" to my cmake calls, a huge load of warnings and errors appears. Most are related to missing compatibility with C++11. Few examples: In file included from h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/BasicStructures.cpp:26:0: h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/BasicStructures.h:34:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 float averageLuminance = 0.0; ^~~ In file included from h:\msys-gcc630\mingw\x86_64-w64-mingw32\include\c++\6.3.0\initializer_list:36:0, from h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.h:57, from h:/MSYS-GCC630/home/Entwicklung/x265/source/dynamicHDR10/json11/json11.cpp:22: h:\msys-gcc630\mingw\x86_64-w64-mingw32\include\c++\6.3.0\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^ -- Fun and success! Mario *LigH* Rohkrämer mailto:cont...@ligh.de ___ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel