usc-imi / aeo-light

AEO-Light 2 is a new generation of optical sound extraction software developed by the University of South Carolina in close cooperation with Tommy Aschenbach. The project is made possible by the generous support of the National Endowment for the Humanities.
Other
41 stars 11 forks source link

source not compiling /w gcc 4.8.5 #8

Closed K0F closed 6 years ago

K0F commented 6 years ago

GCC compiler (4.8.5) throws an error:

mainwindow.cpp:93:27: error: taking address of temporary array that line in source is: #define aeo_av_err2str(n) av_err2str(n)

is there any workaround, I have tried defining -std=c++11 and removing #define with no luck so far

Thanks for any advice

K0F commented 6 years ago

Ok, adding:

#undef av_err2str
#define av_err2str(errnum) av_make_error_string((char*)__builtin_alloca(AV_ERROR_MAX_STRING_SIZE),AV_ERROR_MAX_STRING_SIZE, errnum)

before line 91 in mainwindow.cpp should fix 4.8.5 compiler error

sjohnson-imi commented 6 years ago

Thanks. I've added this change to 2.3.2