Проблемы с компиляцией под андроид могут возникнуть в множестве случаев. Смотрите видео, задавайте вопросы.исходники ZenGL требуют корректировки.
File -> Import -> (Android -> Existing Android Code Into Workspace) NextОткрываем Lazarus и в нём "Открыть проект", заходим в ту же папку, которую импортировали в Eclipse. Далее заходим в папку jni и открываем сам проект. Компилируем.
Root directory -> Browse
... выбираем папку проекта ... -> OK
Finish
File -> Import -> (Android -> Existing Android Code Into Workspace) NextOpen Lazarus and in it "Open project", go to the same folder that we imported into Eclipse. Next, go to the jni folder and open the project itself. Compiling.
Root directory -> Browse
... select the project folder ... -> OK
Finish
I built the final project in Eclipse. Java 8 was used ...
Thank you for the tutorial.:)
That's the problem. I am only a hobbyist, I do not have much time to learn something new. I wish I have because there are already a long list of things I want to study: Castle Game Engine, Python, PHP, C++, Vulcan, etc. I ever spent some time to try Java, the language seemed too weird to me. %)На самом деле это не так трудно, как кажется. Вам даже java изучать не нужно. Нужно настроить Eclipse один раз и с его помощью собирать проекты. А весь java-код я старался уже привести к нужному виду. И тогда, когда появится больше времени, можно будет изучать java и включать дополнения. Хотя наверняка и в LAWM то же самое может быть, он удобнее тем, что не надо две оболочки запускать. Делает он так же java-код, смешивая с нативным. И вполне возможно, зная java, можно собрать более корректное приложение.
According to the first link - it looks like there is an incorrect definition of matrices. Should be something like this:
glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(oglFOVY, oglWidth / oglHeight, oglzNear, oglzFar); glMatrixMode(GL_MODELVIEW); glLoadIdentity();
It's actually not as difficult as it seems. You don't even need to learn Java. You need to set up Eclipse once and use it to build projects.
But then I will need to learn the Android framework and learn how to 'call' them in FPC. LAMW is not perfect but what I like most is it already has plenty of ready-to-use components, I can simple write code in Pascal and almost no need to deal about the Android framework.Я думаю вам надо попробовать! Не попробуешь, не узнаешь о чём идёт речь. Вам даже не обязательно знать фреймворки Android для того чтоб пользоваться ZenGL.
Anyways, thank you for the information. I might try to learn what you suggested if I have time.
Updated the latest version of ZenGL (https://github.com/Seenkao/New-ZenGL). And stabilized to work with Android. Fixed minor bugs. There may be minor errors, please report, for speedy corrections.Thank you so much for your hard work and effort.
А где можно скачать документацию на ZenGL?Если поискать, то где-то валяются ещё на просторах интернета ссылки на документацию. Можно через архивы зайти на старый сайт ZenGL-а.
Ссылки http://andru-kun.inf.ua/zengl.html (http://andru-kun.inf.ua/zengl.html) и https://www.zengl.org/wiki/doku.php (https://www.zengl.org/wiki/doku.php) не работают.
Solved by defining/activating USE_INIT_HANDLE in zgl_config.cfgЭто было указано в демке. Большинство демок сделаны для нативного создания окна (не LCL), потому данное определение отключено по умолчанию.
and using utf8_GetID instead of utf8_toUnicode.
and using utf8_GetID instead of utf8_toUnicode.Благодарю! Вижу не исправил это для программы создания шрифтов. Думаю надо добавить файл конфигурации в ZenFont отдельно для данной программы (будет помощь новичкам, кто не разбирается).
Also, the Lazarus project had to be modified in adding "../../headers" to the path.Благодарю! Это надо исправить.
BTW, why the examples for FreePascal (not Lazarus) are still dependent and linked against gtk2?Немного позже посмотрю что к чему. Возможно в новых версиях это не обязательно.
Отличная работа!благодарю! Видел ранее, но забыл ответить... извиняюсь. )))