1. download Openframeworks 0.9.2 or 0.9.3 mingw source code
unzip to C:\msys64\home\JetLan\of_v0.9.3
follow setup guide http://openframeworks.cc/setup/msys2/
2. download ofxLua from https://github.com/danomatika/ofxLua
3. unzip ofxLua to C:\msys64\home\JetLan\of_v0.9.3\addons
4. copy C:\msys64\home\JetLan\of_v0.9.3\addons\ofxLua\luaExample to
C:\msys64\home\JetLan\of_v0.9.3\examples\addons\luaExample
5. copy makefile configure files from C:\msys64\home\JetLan\of_v0.9.3\examples\addons\allAddonsExample to \luaExample
6. In addons.make add ofxLua
7. In C:\msys64\home\JetLan\of_v0.9.3\addons\ofxLua\src\ofxLua.cpp add patch for chdir() compile error.
#ifdef __MINGW32__
#include "unistd.h"
#endif
8. In C:\msys64\home\JetLan\of_v0.9.3\libs\openFrameworks\app\ofAppGlutWindow.cpp add patch for link error undefined __imp____glutInitWithExit@12
#define GLUT_DISABLE_ATEXIT_HACK
#include
9. In C:\msys64\home\JetLan\of_v0.9.3\libs\openFrameworksCompiled\project\msys2\config.msys2.default.mk add define for link GLUT
add
PLATFORM_LIBRARIES += freeglut
沒有留言:
張貼留言