ofxOpenNI icon indicating copy to clipboard operation
ofxOpenNI copied to clipboard

addon file hierarchy is wrong

Open sphaero opened this issue 13 years ago • 1 comments

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. :)

sphaero avatar Nov 01 '12 17:11 sphaero

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

bilderbuchi avatar Jan 04 '13 17:01 bilderbuchi