Package Details: mingw-w64-smpeg2 1:2.0.0-3

Git Clone URL: https://aur.archlinux.org/mingw-w64-smpeg2.git (read-only)
Package Base: mingw-w64-smpeg2
Description: SDL MPEG Player Library (mingw-w64)
Upstream URL: http://icculus.org/smpeg
Licenses: LGPL
Provides: mingw-w64-smpeg-svn=408
Submitter: Schala
Maintainer: xantares
Last Packager: xantares
Votes: 3
Popularity: 0.002746
First Submitted: 2013-07-16 00:14
Last Updated: 2016-06-25 18:33

Latest Comments

mis commented on 2016-06-25 16:36

Does not compile:

../audio/hufftable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing]
};
^
../audio/hufftable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing]
../audio/hufftable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing]
../audio/hufftable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing]
../audio/hufftable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing]
../audio/hufftable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing]
make: *** [Makefile:819: hufftable.lo] Error 1
==> ERROR: A failure occurred in build().
Aborting...

See 'Narrowing conversions' section here: https://gcc.gnu.org/gcc-6/porting_to.html

A workaround is to replace the configure line in the PKGBUILD with:

CXX="${_arch}-g++ --std=gnu++98" ${_arch}-configure \

I tried to set --std=gnu++98 with CXXFLAGS, but for some reason (I couldn't figure out) that did not work.

Edit: Thanks! Hm ok, with CFLAGS it works..