I wanted to use ofxDlib with Visual Studio. It compiled with some additional build commands.
Now I wanted to edit these commands in the addon_config.mk.
When adding multiple entries to a flag the project generator only uses the first entry:
ADDON_CFLAGS = -O3 -Wno-strict-aliasing
for instance only creates the cflag
in the Visual Studio project
I tried then adding a separate cflag
ADDON_CFLAGS = -O3
ADDON_CFLAGS += -Wno-strict-aliasing
does not work as well.
Also defining flags for Visual Studio like
ADDON_CFLAGS += DLIB_PNG_SUPPORT
ADDON_CFLAGS += /bigobj
ADDON_INCLUDES += libs\dlib\include\dlib\all
ADDON_INCLUDES += libs\dlib\include\dlib\external\libpng
is also not working.
Someone has an idea how make an addon config work?
This should be possible, but I don’t have a windows machine to work with at the moment …
Ok, solved it. The project generator had a bug and overwrote all previous flags when creating a project.
Hey @brino So you were able to get ofxDlib working on VS? Are there any special instructions? If so I’d like to incorporate them into the documentation.
Hey @bakercp, I wrote a little instruction
you may include it in your documentation. I am working a little on the project generator to get rid of the manual steps when creating the project.