Comments (9)
At a first glance, it doesn't seem a problem related to Mandala.
from mandala.
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.
Have you tried to build the goandroid native-activity example?
from mandala.
Moreover, which version of Go are you using?
from mandala.
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.
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
- be sure that you're using a subset of OpenGL compatible with OpenGL ES 2.0
- compile the android version using the opengles2 package
from mandala.
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.
Feel free to ping me if you need help.
from mandala.
Thanks a lot I will if needed. The issue can be closed I think.
from mandala.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mandala.