Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling with additional addons... #50

Open
Jonathhhan opened this issue Jan 20, 2021 · 3 comments
Open

compiling with additional addons... #50

Jonathhhan opened this issue Jan 20, 2021 · 3 comments

Comments

@Jonathhhan
Copy link
Collaborator

Jonathhhan commented Jan 20, 2021

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
Copy link
Owner

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

@cuinjune
Copy link
Owner

cuinjune commented Jan 22, 2021

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
Copy link
Collaborator Author

Jonathhhan commented Jan 22, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants