[x265] Compile errors with MinGW GCC
Nikos Barkas
nikbar2004 at yahoo.com
Sat Aug 31 15:39:26 CEST 2013
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)
Best regards
Nikos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.videolan.org/private/x265-devel/attachments/20130831/c3d167a5/attachment.html>
More information about the x265-devel
mailing list