aevum / libgdx-cpp

A cross platform (iOS, Android, Desktop) c++ port of java's libgdx awesome framework.
Apache License 2.0
172 stars 32 forks source link

gcc 4.7 #39

Open syl-00101001 opened 11 years ago

syl-00101001 commented 11 years ago

on newer gcc (i'm using 4.7.3 on ubuntu 13.04) we need to specify -Wno-maybe-uninitialized -Wno-strict-aliasing -Wno-strict-overflow -Wno-unused-result in libgdx-cpp/CMakeLists.txt

to work around a bug in box2D, StillModel.cpp, Buffer.hpp, agg_gsv_text.cpp and get it built

Also ShaderProgram.cpp needed to include "gdx-cpp/internal/gl" to have GL_FALSE

(sorry i've lost the compile trace for box2D and Stillmodel)

Buffer.hpp:163:9: erreur: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]

agg_gsv_text.cpp:557:53: erreur: ignoring return value of ‘sizet fread(void, size_t, sizet, FILE)’, declared with attribute warn_unused_result [-Werror=unused-result]

I think it may get fixed in the source, instead of telling off the compiler, but i dunno.

Finally, on my system some packages names : libvorbisfile3 (no "-dev" for this one, this must be an error in the wiki, or for another distro) libsdl1.2-dev libsdl1.2debian libopenal1