openframeworks / openframeworks/openFrameworks

Linux and OpenGL ES 2.0

Open
#3,559 7 comments 0 reactions 1 assignee View on GitHub

@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.a with GLFW_USE_EGL = true and GLFW_CLIENT_LIBRARY = glesv2

In ofAppRunner.cpp:

  • include ofAppEGLWindow.h, so in cases were defined(TARGET_RASPBERRY_PI) add || defined(TARGET_OPENGLES)
  • don't include "glu.h" in ofGraphics.cpp

In ofConstants.h:

  • move the #ifdef TARGET_OPENGLES up 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 Xinerama for correct libglfw3.a linking
  • removed PLATFORM_LIBRARIES += glut for #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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.