Giter VIP home page Giter VIP logo

ofxplugin's People

Contributors

elliotwoods avatar satoruhiga avatar tgfrerer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ofxplugin's Issues

OSX support : Duplicate symbols for GLUT and GLFW frameworks.

Hey,
Thanks for your making this plugin, this is great! :D
I forked ofxPlugin and improved it a bit:

Now the exampleApp launches and loads the circle plugin but gives some errors then crashes as soon as the circle plugin calls the OF renderer context.

I've been looking for a solutions without success...
Does anyone know how to prevent this duplicate symbols problem between the pluginApp and the .bundle. ? (ping: @satoruhiga )

Here are the errors I get then the .bundle loads at runtime:

objc[1271]: Class GLUTWindow is implemented in both [..]/exampleAppDebug.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT and /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT. One of the two will be used. Which one is undefined.
objc[1271]: Class GLUTView is implemented in both [..]/exampleAppDebug.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT and /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT. One of the two will be used. Which one is undefined.
objc[1271]: Class GLUTPreferencesController is implemented in both [..]/exampleAppDebug.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT and /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT. One of the two will be used. Which one is undefined.
objc[1271]: Class GLUTMenuItem is implemented in both [..]/exampleAppDebug.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT and /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT. One of the two will be used. Which one is undefined.
objc[1271]: Class GLUTMenu is implemented in both [..]/exampleAppDebug.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT and /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT. One of the two will be used. Which one is undefined.
objc[1271]: Class GLUTUnknownView is implemented in both [..]/exampleAppDebug.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT and /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT. One of the two will be used. Which one is undefined.
objc[1271]: Class GLUTClipboardController is implemented in both [..]/exampleAppDebug.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT and /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT. One of the two will be used. Which one is undefined.
objc[1271]: Class GLUTApplication is implemented in both [..]/exampleAppDebug.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT and /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT. One of the two will be used. Which one is undefined.
objc[1271]: Class GLFWLayoutListener is implemented in both [..]/exampleAppDebug.app/Contents/MacOS/exampleAppDebug and [..]/examplePlugin.bundle. One of the two will be used. Which one is undefined.
objc[1271]: Class GLFWWindowDelegate is implemented in both [..]/exampleAppDebug.app/Contents/MacOS/exampleAppDebug and [..]/examplePlugin.bundle. One of the two will be used. Which one is undefined.
objc[1271]: Class GLFWApplicationDelegate is implemented in both [..]/exampleAppDebug.app/Contents/MacOS/exampleAppDebug and [..]/examplePlugin.bundle. One of the two will be used. Which one is undefined.
objc[1271]: Class GLFWContentView is implemented in both [..]/exampleAppDebug.app/Contents/MacOS/exampleAppDebug and [..]/examplePlugin.bundle. One of the two will be used. Which one is undefined.
objc[1271]: Class GLFWWindow is implemented in both [..]/exampleAppDebug.app/Contents/MacOS/exampleAppDebug and [..]/examplePlugin.bundle. One of the two will be used. Which one is undefined.
objc[1271]: Class GLFWApplication is implemented in both [..]/exampleAppDebug.app/Contents/MacOS/exampleAppDebug and [..]/examplePlugin.bundle. One of the two will be used. Which one is undefined.

Fundamental Feature : Don't confuse module types

Right now anything with an 'initPlugin' function passes the grade
Rulr needs to be able to handle plugins of different types (e.g. Cameras and Nodes)
So the plugin API needs to handle that internally (only load the right plugins for the right FactoryRegister)

examplePlugin does not compile

This is some really useful stuff! I'm keen to play with this some more, but bumped into the following:

It seems that the switch over to ofxSingleton broke the examplePlugin.

While the exampleApp compiles and runs, examplePlugin fails to produce a valid .dll. This is down to a linker error. I get the following messages:

1>plugin.obj : error LNK2001: unresolved external symbol "public: void __cdecl ofxSingleton::Register::setParentRegister(class ofxSingleton::Register *)" (?setParentRegister@Register@ofxSingleton@@QEAAXPEAV12@@Z)
1>plugin.obj : error LNK2001: unresolved external symbol "public: static class std::shared_ptr<class ofxSingleton::Register> __cdecl ofxSingleton::UnmanagedSingleton<class ofxSingleton::Register>::getInstance(void)" (?getInstance@?$UnmanagedSingleton@VRegister@ofxSingleton@@@ofxSingleton@@SA?AV?$shared_ptr@VRegister@ofxSingleton@@@std@@XZ)

I've tried to find out what was going on, but I'm not too familiar with the patterns used, and can't really tell what's missing. Is it possible that there might be a .cpp file missing in the repo?

I've checked earlier commits, and d5ef807 works well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.