Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sorry for all the absolute paths, i'm just trying to make it work _somehow_.
- ----------
- RuntimeObject01.cpp
- ----------
- #include "/Users/hansi/Documents/OF/of_v0084_osx_release/addons/ofxRuntimeCompiledCPlusPlus/Aurora/RuntimeObjectSystem/ObjectInterfacePerModule.h"
- #include "/Users/hansi/Documents/OF/of_v0084_osx_release/addons/ofxRuntimeCompiledCPlusPlus/Aurora/RuntimeObjectSystem/IObject.h"
- #include "IUpdateable.h"
- #include "InterfaceIds.h"
- #include <iostream>
- #include "ofMain.h"
- class RuntimeObject01 : public TInterface<IID_IUPDATEABLE,IUpdateable>
- {
- public:
- virtual int Get()
- {
- // outputs pt=0
- cout << "pt= " << ofGetAppPtr() << endl;
- // crashes
- ofLine(50,500,100,100);
- return -1;
- }
- };
- REGISTERCLASS(RuntimeObject01);
- ----------
- compile.sh
- ----------
- #! /bin/bash
- clang++ -stdlib=libstdc++ -m32 -g -fPIC -fvisibility=hidden -shared -m32 -Os -I"/Users/hansi/Documents/OF/of_v0084_osx_release/addons/ofxRuntimeCompiledCPlusPlus/Aurora/RuntimeObjectSystem" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/addons/ofxRuntimeCompiledCPlusPlus/Aurora/RuntimeCompiler" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/3d" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/app" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/communication" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/events" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/gl" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/graphics" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/math" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/ofMain.h" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/sound" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/types" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/utils" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworks/video" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/cairo/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/cairo/include/cairo/" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/fmodex/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/FreeImage/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/freetype/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/glew/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/glfw/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/glut/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openssl/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/rtAudio/include" -I"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/tess2/include" -L"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworksCompiled/lib/osx" -F"/Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworksCompiled/lib/osx" -o testlib "/Users/hansi/Documents/OF/of_v0084_osx_release/apps/myApps/runtimeCPPDraw/src/RuntimeObject01.cpp" "/Users/hansi/Documents/OF/of_v0084_osx_release/addons/ofxRuntimeCompiledCPlusPlus/Aurora/RuntimeObjectSystem/ObjectInterfacePerModuleSource.cpp" /Users/hansi/Documents/OF/of_v0084_osx_release/libs/fmodex/lib/osx/libfmodex.dylib /Users/hansi/Documents/OF/of_v0084_osx_release/libs/glut/lib/osx/GLUT.framework/GLUT /Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworksCompiled/lib/osx/openFrameworksDebug.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/cairo/lib/osx/cairo-script-interpreter.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/cairo/lib/osx/cairo.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/cairo/lib/osx/pixman-1.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/FreeImage/lib/osx/freeimage.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/freetype/lib/osx/freetype.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/glew/lib/osx/glew.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/glfw/lib/osx/_libglfw3.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/glfw/lib/osx/libglfw3.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/openFrameworksCompiled/lib/osx/openFrameworksDebug.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/openssl/lib/osx/crypto.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/openssl/lib/osx/ssl.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoCrypto.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoData.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoDataODBC.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoDataSQLite.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoFoundation.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoNet.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoNetSSL.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoUtil.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoXML.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/poco/lib/osx/PocoZip.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/rtAudio/lib/osx/rtAudio.a /Users/hansi/Documents/OF/of_v0084_osx_release/libs/tess2/lib/osx/tess2.a -framework CoreFoundation -framework Foundation -framework AppKit -framework Accelerate -framework QTKit -framework CoreVideo -framework GLUT -framework AGL -framework ApplicationServices -framework AudioToolbox -framework CoreAudio -framework CoreFoundation -framework CoreServices -framework OpenGL -framework QuickTime -framework IOKit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement