К основному контенту

Сообщения

Сообщения за январь, 2014

Sharing experience in C++11 for Android NDK

In my free time I started to work on simple C++ game and there are a little bit complexity: I use Android NDK. Yes, this is for mobile and I use not native Java, but native-native C++, Open GL and other cool things =). All goes very interesting and I will continue grow up with this project and probably later I will create a couple of posts about my advantages with it. For now I published very-draft PC-version (which I already fully re-worked for Android):  GitHub . Since I didn't use C++ for a year I returned to some books and I have found a latest book  The C++ Programming Language (4th Edition) from Stroustrup.     Many interesting news out there, but we need a latest compiler for all this staff. So, for example, I couldn't compile some examples with gcc4.7 on Linux. And I found an article where author desribed "how to compile-and-run latest gcc4.8.2 on your machine" in details, here is:  http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-

Опыт в C++11 для Android NDK

Занялся разработкой небольшой игры на C++ под Android NDK. Основная цель - погружение в Open GL. Было очень интересно, приложение под Android уже работает. Думаю что буду продолжать потихоньку, позже напишу про свои приключения в этом направлении. Пока что, есть начальная версия моей игры под PC (я её уже сильно переработал) на GitHub . Но поскольку давно на C++ не писал, почувствовал, что многое подзабыл напрочь. В общем, затянуло меня в книги по C++ и так я оказался один на один с книгой Страуструпа 2013 года по последнему стандарту C++. В общем-то, всё бы ничего, но компилятор под это дело нужен новый и распоследний. К примеру, с gcc4.7 на линуксе ни один пример скомпилить не получилось. На моё счастье наткнулся на статью http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/ в которой подробно расписано как скомпилировать последний gcc4.8.2 (естественно со всеми фишками c++11). Единственное, что нужно подчеркнуть, это при сборке на Linux x64, нужн