[CinCV TNG] [PATCH] Make C++11 requirement optional

Einar Rünkaru einarrunkaru at gmail.com
Sun Aug 27 18:46:59 CEST 2017



On 08/27/2017 07:09 PM, igor_ubuntu wrote:
> 
> 
> 2017-08-27 17:50 GMT+03:00 Einar Rünkaru <einarrunkaru at gmail.com 
> <mailto:einarrunkaru at gmail.com>>:
> 
>     Hi.
> 
>     GCC versions without C++11 support are still in use
>     Priority patch. Should be applied before other pending patches.
> 
>     Igor_ubuntu, does this patch work for you?
> 
>     Patch attached
> 
>     Einar
> 
> 
> git clone ...
> git am ..../0001-Make-C-11-requirement-optional.patch
> ./autogen.sh
> ./configure
> make
> 
> I am getting
> 
> ....
> vorbis.c: In function ‘decode’:
> vorbis.c:219: warning: format ‘%p’ expects type ‘void *’, but argument 2 
> has type ‘int’
>    CC     yuv4.lo
>    CC     yv12.lo
>    CC     wmx2.lo
>    CC     wma.lo
>    CC     mpeg4.lo
> wma.c: In function ‘decode’:
> wma.c:191: warning: ‘avcodec_decode_audio’ is deprecated (declared at 
> ../quicktime/ffmpeg/libavcodec/avcodec.h:2649)
> wma.c:215: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
> type ‘long int’
> wma.c:215: warning: format ‘%d’ expects type ‘int’, but argument 3 has 
> type ‘long int’
>    CCLD libquicktimecv.la <http://libquicktimecv.la>
> make[3]: Leaving the directory 
> `/home/user/Downloads/CNR/sborky/cvo/quicktime'
> make[2]: Leaving the directory 
> `/home/user/Downloads/CNR/sborky/cvo/quicktime'
> Making all in guicast
> make[2]: Entering the directory 
> `/home/user/Downloads/CNR/sborky/cvo/guicast'
>    CXX    bcbar.lo
>    CXX    bcbitmap.lo
>    CXX    bcbutton.lo
> cc1plus: error: -Werror=literal-suffix: No option -Wliteral-suffix
> make[2]: *** [bcbitmap.lo] Error 1
> make[2]: *** Waiting for unfinished jobs...
> cc1plus: error: -Werror=literal-suffix: No option -Wliteral-suffix
> make[2]: *** [bcbutton.lo] Error 1
> cc1plus: error: -Werror=literal-suffix: No option -Wliteral-suffix
> make[2]: *** [bcbar.lo] Error 1
> make[2]: Leaving the directory `/home/user/Downloads/CNR/sborky/cvo/guicast'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving the directory `/home/user/Downloads/CNR/sborky/cvo'
> make: *** [all] Error 2
> :~/Downloads/CNR/sborky/cvo$

Corrected patch attached.

Igor, can you try this?

Thanks,
Einar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-C-11-requirement-optional.patch
Type: text/x-patch
Size: 1182 bytes
Desc: not available
URL: <http://lists.cinelerra-cv.org/pipermail/cinelerra/attachments/20170827/52b077f5/attachment.bin>


More information about the Cinelerra mailing list