Add entries in for ofxDlib in Visual Studio

Hey there,

I wanted to use ofxDlib with Visual Studio. It compiled with some additional build commands.

Now I wanted to edit these commands in the

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 += -Wno-strict-aliasing

does not work as well.

Also defining flags for Visual Studio like

	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?

1 Like

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.


1 Like

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.

1 Like