Ofelia icon indicating copy to clipboard operation
Ofelia copied to clipboard

emscripten compile error

Open Jonathhhan opened this issue 5 years ago • 3 comments

hi cuinjune, with the newest emscripten 1.39.1 i get this compile error with the ofelia emscripten example on ubuntu 18.04:

/home/jonathan/Schreibtisch/of_v20191108_linux64gcc6_release/addons/ofxOfelia/libs/ofxLua/src/bindings/glmBindings.cpp:2733:10: fatal error: 
      'glm/gtc/functions.hpp' file not found
#include <glm/gtc/functions.hpp>

while it is possible to compile the open frameworks examples. the strange thing is the ofelia example was working before. but also downgrading emscripten to sdk-1.38.20-64bit did not work.

edit: actually i get the same error with the linux example, so it is not emscripten specific.

Jonathhhan avatar Nov 11 '19 03:11 Jonathhhan

i changed include in glmBindings.cpp to #include <glm/gtx/functions.hpp> and now it works again (because functions.hpp is located there somehow).

Jonathhhan avatar Nov 11 '19 18:11 Jonathhhan

can confirm the same bug with building example on macOS - @Jonathhhan's suggestion fixes the build.

klochowicz avatar Dec 03 '19 12:12 klochowicz

👍 The same on Xcode 10.1 and of_v0.11

AurelienConil avatar Jul 20 '20 17:07 AurelienConil