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

Error building on Ubuntu #42

Closed ghost closed 9 years ago

ghost commented 9 years ago

/home/muresan/libgdx-cpp/src/gdx-cpp/graphics/g3d/model/still/StillModel.cpp: In member function ‘virtual std::vectorgdx::SubMesh& gdx::StillModel::getSubMeshes() const’: /home/muresan/libgdx-cpp/src/gdx-cpp/graphics/g3d/model/still/StillModel.cpp:90:34: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] return ( vector<SubMesh>& ) subMeshes; ^ cc1plus: all warnings being treated as errors make[2]: * [src/gdx-cpp/CMakeFiles/gdx-cpp.dir/graphics/g3d/model/still/StillModel.cpp.o] Error 1 make[1]: * [src/gdx-cpp/CMakeFiles/gdx-cpp.dir/all] Error 2 make: *\ [all] Error 2

While running cmake install !

scooterman commented 9 years ago

Hey @Murii, this error was due a flag that was treating all warnings as errors. I've commented the flag, it should build by now.

ghost commented 9 years ago

Thanks! I'll let you know what happens.

ghost commented 9 years ago

It finished without any problems,thanks!