- edited description
compiling with mingw doesn't work anymore
Issue #9
resolved
Hello everybody, I had integrate x265 in my automatic compile script for msys mingw:
https://github.com/jb-alvarado/media-autobuild_suite
It was working good, but now since some weeks (maybe 2 or a little more) it doesn't work anymore. I get this errors:
[...]
[ 39%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.obj
d:/_System/mingw/build32/x265-hg/source/encoder/ratecontrol.cpp: In member function 'void x265::RateControl::calcAdaptiveQuantFrame(x265::TComPic*)':
d:/_System/mingw/build32/x265-hg/source/encoder/ratecontrol.cpp:132:37: error: 'X265_AQ_AUTO_VARIANCE' was not declared in this scope
if (cfg->param.rc.aqMode == X265_AQ_AUTO_VARIANCE)
^
d:/_System/mingw/build32/x265-hg/source/encoder/ratecontrol.cpp:159:48: error: 'X265_AQ_AUTO_VARIANCE' was not declared in this scope
if(cfg->param.rc.aqMode == X265_AQ_AUTO_VARIANCE)
^
make[2]: *** [encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 40%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/intrapred8.asm.obj
[ 41%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/pixel-32.asm.obj
[ 42%] d:/_System/mingw/build32/x265-hg/source/encoder/encoder.cpp: In member function 'void x265::Encoder::writeLog(int, char**)':
d:/_System/mingw/build32/x265-hg/source/encoder/encoder.cpp:617:92: error: 'x265_ssim' was not declared in this scope
fprintf(m_csvfpt, " %.6f, %6.3f,", stats.globalSsim, x265_ssim(stats.globalSsim));
^
Building CXX object common/CMakeFiles/common.dir/x86/asm-primitives.cpp.obj
make[2]: *** [encoder/CMakeFiles/encoder.dir/encoder.cpp.obj] Error 1
make[1]: *** [encoder/CMakeFiles/encoder.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 44%] Building CXX object common/CMakeFiles/common.dir/vec/vec-primitives.cpp.obj
[...]
[ 89%] Building CXX object common/CMakeFiles/common.dir/piclist.cpp.obj
d:/_System/mingw/build32/x265-hg/source/common/common.cpp: In function 'int x265_param_default_preset(x265_param*, const char*, const char*)':
d:/_System/mingw/build32/x265-hg/source/common/common.cpp:407:32: error: 'X265_AQ_AUTO_VARIANCE' was not declared in this scope
param->rc.aqMode = X265_AQ_AUTO_VARIANCE;
^
d:/_System/mingw/build32/x265-hg/source/common/common.cpp: In function 'int x265_check_params(x265_param*)':
d:/_System/mingw/build32/x265-hg/source/common/common.cpp:503:65: error: 'X265_AQ_AUTO_VARIANCE' was not declared in this scope
CHECK(param->rc.aqMode < X265_AQ_NONE || param->rc.aqMode > X265_AQ_AUTO_VARIANCE,
^
d:/_System/mingw/build32/x265-hg/source/common/common.cpp:433:58: note: in definition of macro 'CHECK'
#define CHECK(expr, msg) check_failed |= _confirm(param, expr, msg)
^
make[2]: *** [common/CMakeFiles/common.dir/common.cpp.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2
Do you have any idea what I can do? Or is this bug in the code?
Comments (4)
-
reporter -
I'm wondering if your checkout has unresolved merges for x265.h or something similar. Perhaps re-clone it just to be sure.
I can build x265 locally with mingw-gcc 4.8.1
-
reporter Ah... Thank you Steve!! I had the old x265.h in my local/include folder and after the new pull my script doesn't delete that. So when I want to compile the new checkout it takes the old x265.h...
Now, after delete that file, I can compile it again :).
-
reporter - changed status to resolved
- Log in to comment