Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Headers in 3rd party frameworks on Mac OS X

I'm using the Sparkle framework in Qt. I've added the following to my .pro file:

LIBS += -framework Sparkle
QMAKE_CXX_FLAGS += -F/path/to/the/directory/sparkle.framework/is/in

However I get a compilation error saying "Sparkle/Sparkle.h" cannot be found. Framework headers physically reside in MyFramework.framework/Headers/*.h and are included like MyFramework/*.h

What commands do I need to add to my .pro file to properly include the Sparkle framework headers?

like image 230
Jake Petroules Avatar asked Sep 20 '25 00:09

Jake Petroules


1 Answers

The problem was that I was using QMAKE_CXXFLAGS, I needed to use QMAKE_CFLAGS for the compiler to include the headers.

like image 52
Jake Petroules Avatar answered Sep 23 '25 12:09

Jake Petroules