[x265] Compile errors with MinGW GCC

Steve Borho steve at borho.org
Sat Aug 31 16:05:50 CEST 2013


On Sat, Aug 31, 2013 at 8:39 AM, Nikos Barkas <nikbar2004 at yahoo.com> wrote:

> The following errors occur while compiling revision 043b414d4317 with
> MinGW GCC 4.7.1-TDM:
>
>
> In file included from
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComDataCU.h:48:0,
>                  from
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComDataCU.cpp:39:
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComRdCost.h: In member
> function 'Void TComRdCost::setLambda(Double)':
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComRdCost.h:73:43:
> error: 'sqrt' was not declared in this scope
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComRdCost.h:74:61:
> error: 'floor' was not declared in this scope
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComRdCost.h: In member
> function 'Void TComRdCost::setCbDistortionWeight(Double)':
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComRdCost.h:80:70:
> error: 'floor' was not declared in this scope
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComRdCost.h: In member
> function 'Void TComRdCost::setCrDistortionWeight(Double)':
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComRdCost.h:85:70:
> error: 'floor' was not declared in this scope
> make[2]: ***
> [common/CMakeFiles/common.dir/__/Lib/TLibCommon/TComDataCU.cpp.obj] Error 1
> make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
> make: *** [all] Error 2
>
> This is fixed by adding #include <math.h> at the top of
> source/Lib/TLibCommon/TComRdCost.h
>
>
>
> In file included from
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComSlice.cpp:39:0:
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComSlice.h: In
> constructor 'TComRPSList::TComRPSList()':
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComSlice.h:161:30:
> error: 'TComRPSList::m_referencePictureSets' will be initialized after
> [-Werror=reorder]
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComSlice.h:160:10:
> error:   'Int TComRPSList::m_numberOfReferencePictureSets' [-Werror=reorder]
> c:/DriveD/x265Project/x265/source/Lib/TLibCommon/TComSlice.cpp:1330:1:
> error:   when initialized here [-Werror=reorder]
> cc1plus.exe: all warnings being treated as errors
> make[2]: ***
> [common/CMakeFiles/common.dir/__/Lib/TLibCommon/TComSlice.cpp.obj] Error 1
> make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
> make: *** [all] Error 2
>
> This is fixed by changing line 1331 in source/Lib/TLibCommon/TComSlice.cpp
> from
> : m_referencePictureSets(NULL), m_numberOfReferencePictureSets(0)
> to
> : m_numberOfReferencePictureSets(0), m_referencePictureSets(NULL)
>

Hello Nikos,

I suspect my bugix push crossed this email in the ether.

-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.videolan.org/private/x265-devel/attachments/20130831/7d8471a3/attachment.html>


More information about the x265-devel mailing list