Comments (6)
首先你要确定你的系统有运行现代 3d 游戏的能力,比如可以运行 3d 桌面。
其次,你需要有 opengl 的开发库,并支持 opengl es 2.0 api .
from ejoy2d.
libgl1-mesa-dev和libgles2-mesa-dev我都已经安装过了
运行3d也没问题,而且我还开发过opengl1的C程序,也能正常工作
from ejoy2d.
看起来是你的 opengl 不支持 VAO,
Lines 16 to 28 in 21d7ad4
你可以编译的时候定义宏 VAO_DISABLE
from ejoy2d.
btw, MacOSX 的最新版强制要求用 VAO 了, 这是为什么 ejoy2d 给了一个 VAO 的实现的缘故。
from ejoy2d.
确实是这个问题, 已解决, 非常感谢云风大神
from ejoy2d.
记录下我最终在ubuntu14.04上编译过要做的事情:
安装包:
sudo apt-get install libglew-dev libgles2-mesa-dev liblua5.2-dev libfreetype6-dev
然后将 posix/winfont.c 里的 ttc 文件路径改成对应系统的,比如:
static const char* TTFONT = "/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc";
编译命令:
make CFLAGS='-DVAO_DISABLE -Ilib -Ilib/render -Ilua -I/usr/include/freetype2' linux
from ejoy2d.
Related Issues (20)
- mac osx glwf3 error HOT 1
- doc is not rendered properly
- PVS-Studio: CWE-476 NULL Pointer Dereference HOT 1
- Need support VS2017 platform
- 这个工程还会继续维护吗。 HOT 3
- the source still use the system Lua lib header files HOT 1
- sprite的rot=450时,画不出来
- ejoy2d在mac os x 使用xcode编译问题。 HOT 1
- ejoy2d中如何实现树状结构? HOT 1
- windows下编译一些问题 HOT 2
- Compile error in my ubuntu 14 enviroment.
- 能否为geometry绘制添加srt参数 HOT 3
- lnewlabel函数参数混乱 HOT 1
- macosx编译有warning HOT 1
- 关于sprite.ldraw中srt参数 HOT 2
- 求一个Android.mk文件 HOT 5
- 请问ejoy2d是否打算支持mesh HOT 8
- Mac Xcode 链接出错 HOT 3
- 绘制poly错误 HOT 4
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 ejoy2d.