openframeworks / openframeworks/openFrameworks
Linux and OpenGL ES 2.0
Open
@arturoc is already working on this.
Since Jan 15, 2015.
core
feature
linux
prelim-analysis
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I tried to get Linux 64bit and OpenGL ES 2.0 working and did it in a hackish manner, because I just needed it fast. The steps to get it done:
- compile and include a
libglfw3.awithGLFW_USE_EGL = trueandGLFW_CLIENT_LIBRARY = glesv2
In ofAppRunner.cpp:
- include
ofAppEGLWindow.h, so in cases weredefined(TARGET_RASPBERRY_PI)add|| defined(TARGET_OPENGLES) - don't include "glu.h" in
ofGraphics.cpp
In ofConstants.h:
- move the
#ifdef TARGET_OPENGLESup such that only GLES and EGL is included, not X11
In config.linux.common.mk:
- I forced
PLATFORM_DEFINES = TARGET_OPENGLES - removed
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/app/ofAppEGLWindow.cpp - forced
PLATFORM_LIBRARIES = EGL Xineramafor correctlibglfw3.alinking - removed
PLATFORM_LIBRARIES += glutfor#ifneq ($(LINUX_ARM),1)
One has to make the makefiles and the ifdefs cleaner in differenciating between TARGET_LINUX, TARGET_ARM, TARGET_OPENGLES and such. There are many implicit assumptions tangled up in them.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.