cuinjune / Ofelia

A real-time cross-platform creative coding tool for multimedia development
GNU General Public License v3.0
370 stars 21 forks source link

compiling with additional addons... #50

Open Jonathhhan opened 3 years ago

Jonathhhan commented 3 years ago

hi cuinjune, i managed to compile ofelia with additional addons for linux without any issues. but when i want to compile with the same steps for windows, the addons are not recognized. "addon".h not found (in ofxOfeliaPdBindings.h). while compiling ofelia for windows without additional addons works well. here is the example: https://github.com/Jonathhhan/volumetrics_anaglyph_example_ofelia any idea what could be the compiling issue? kind regards, jonathan

cuinjune commented 3 years ago

Hi Jonathan, Are you using Visual Studio Community 2017 to compile Ofelia external?

cuinjune commented 3 years ago

If you start with the existing ofelia project in Visual Studio, you can locate additional addons inside ofxOfelia/libs directory and manually add that folder in the Visual Studio file system.

Screen Shot 2021-01-22 at 1 16 03 AM

And you should also add path to your addon's source folder (and any subfolders) through Property -> C/C++ -> General -> Additional Include Directories in Visual Studio.

Screen Shot 2021-01-22 at 1 17 59 AM

Please let me know if it works.

Jonathhhan commented 3 years ago

thank you. it works for ofxvolumetrics (even with vs 2019), but not for ofxcameraanaglyph. i think the problem is that it uses ofcamera: class ofxCameraAnaglyph : public ofCamera (from ofxCameraAnaglyph.h) because getNearClip() and getFarClip() (from ofCamera) in ofxCameraAnaglyph.cpp is not defined... do i need to include ofcamera for this addon too?