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

addon file hierarchy is wrong #23

Open
sphaero opened this issue Nov 1, 2012 · 1 comment
Open

addon file hierarchy is wrong #23

sphaero opened this issue Nov 1, 2012 · 1 comment

Comments

@sphaero
Copy link

sphaero commented Nov 1, 2012

Please rename your "include" dir "libs" as per default OF hierarchy. The default makefile searches the libs dir for files from libraries.

See this snippet from the makefile:
ADDONS_REL_DIRS = $(addsuffix /src, $(ADDONS))
ADDONS_LIBS_REL_DIRS = $(addsuffix /libs, $(ADDONS))
ADDONS_DIRS = $(addprefix $(OF_ROOT)/addons/, $(ADDONS_REL_DIRS) )
ADDONS_LIBS_DIRS = $(addprefix $(OF_ROOT)/addons/, $(ADDONS_LIBS_REL_DIRS) )
ADDONS_BIN_LIBS_DIRS = $(addsuffix /*/lib/$(LIBSPATH), $(ADDONS_LIBS_DIRS) )

ADDONS_INCLUDES = $(ADDONS_DIRS)
ADDONS_INCLUDES = $(ADDONS_LIBS_DIRS)
ADDONS_INCLUDES += $(shell find $(ADDONS_DIRS) -type d 2> /dev/null)
ADDONS_INCLUDES += $(shell find $(ADDONS_LIBS_DIRS) -type d 2> /dev/null)
ADDONSCFLAGS = $(addprefix -I,$(ADDONS_INCLUDES))

As you can see it only searches libs/ and src/

It will make it easier to get the addon running. :)

@bilderbuchi
Copy link

+1 to this, I also just ran into this. the "official" addon structure is at https://github.com/benben/ofxAddonTemplate

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