Code Monkey home page Code Monkey logo

Comments (9)

remogatto avatar remogatto commented on July 30, 2024

At a first glance, it doesn't seem a problem related to Mandala.

from mandala.

tbruyelle avatar tbruyelle commented on July 30, 2024

Ok, in that case it's probably related to the ndk toolchain, which doesn't manage to link the std library. But I don't understand why...

from mandala.

remogatto avatar remogatto commented on July 30, 2024

Have you tried to build the goandroid native-activity example?

from mandala.

remogatto avatar remogatto commented on July 30, 2024

Moreover, which version of Go are you using?

from mandala.

tbruyelle avatar tbruyelle commented on July 30, 2024

Yes I manage to build the goandroid native-activity example.
About go version, I have version 1.2 installed in standard and the patched version in the $GOANDROID variable is 1.2.1. Can it be a trouble ?

That said, I think the error is because I installed too many libraries and badly updated some environment variables. So I restarted everything from the beginning (fresh ubuntu install), and the starting error is :

$ gotask run android
# github.com/go-gl/gl
In file included from src/github.com/go-gl/gl/attriblocation.go:7:0:
gl.h:2:21: fatal error: GL/glew.h: No such file or directory
 #include <GL/glew.h>
                     ^
compilation terminated.

So from here I tried to manipulate the C_INCLUDE_PATH and other things (because /usr/include/GL/glew.h exists), which finally leads me to the stderr missing error.

For info I can also build and run the go-gl/examples/glfw3, without errors.

Could please try to build my mandala app ? Maybe it's the simplest thing to do.
You can clone it from https://github.com/tbruyelle/mozaik.git.

Thanks in advance.

from mandala.

remogatto avatar remogatto commented on July 30, 2024

It seems you're importing go-gl but in order to run your game on android you need OpenGL ES 2.0 https://github.com/remogatto/opengles2

Please note that you can still use OpenGL on desktop but then you have to

  1. be sure that you're using a subset of OpenGL compatible with OpenGL ES 2.0
  2. compile the android version using the opengles2 package

from mandala.

tbruyelle avatar tbruyelle commented on July 30, 2024

Ok I see thanks you !

So after some research, it seems I have to rewrite almost all the opengl code in my application.
I'm currently using OpenGL 2 and OpenGL ES 2 is based on OpenGL 3 with the usage of shaders... Moreover I'm using a lot methods like glBegin, glEnd, glPushMatrix, glPopMatrix, and those methods doesn't exits in the ES version... Ok fine, see you later ^^.

from mandala.

remogatto avatar remogatto commented on July 30, 2024

Feel free to ping me if you need help.

from mandala.

tbruyelle avatar tbruyelle commented on July 30, 2024

Thanks a lot I will if needed. The issue can be closed I think.

from mandala.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.