[Interest] Qt 5.1 can't find headers in third-party frameworks?

Israel Brewster israel at eraalaska.net
Tue Jun 4 22:43:47 CEST 2013


Sure. Under 5.1:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -Wall -W -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/qt-5.1.0b/mkspecs/macx-clang -I../EZPReport -I/usr/local/qt-5.1.0b/include -I/usr/local/qt-5.1.0b/include/QtPrintSupport -I/usr/local/qt-5.1.0b/lib/QtPrintSupport.framework/Versions/5/Headers -I/usr/local/qt-5.1.0b/include/QtWidgets -I/usr/local/qt-5.1.0b/lib/QtWidgets.framework/Versions/5/Headers -I/usr/local/qt-5.1.0b/include/QtSql -I/usr/local/qt-5.1.0b/lib/QtSql.framework/Versions/5/Headers -I/usr/local/qt-5.1.0b/include/QtGui -I/usr/local/qt-5.1.0b/lib/QtGui.framework/Versions/5/Headers -I/usr/local/qt-5.1.0b/include/QtCore -I/usr/local/qt-5.1.0b/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I. ../EZPReport/EvernoteInterface.mm -o EvernoteInterface.o
../EZPReport/EvernoteInterface.mm:20:9: fatal error: 'EvernoteSDK-Mac/EvernoteSDK.h' file not found
#import <EvernoteSDK-Mac/EvernoteSDK.h>
        ^
1 error generated.
make: *** [EvernoteInterface.o] Error 1
12:36:24: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project EZPReport (kit: Desktop-Qt-5.1.0b)
When executing step 'Make'


And the same file under 5.0.1 (which works):

 clang -c -pipe -mmacosx-version-min=10.6 -O2 -Wall -W -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/qt-5.0.1/mkspecs/macx-clang -I../EZPReport -I/usr/local/qt-5.0.1/include -I/usr/local/qt-5.0.1/include/QtPrintSupport -I/usr/local/qt-5.0.1/lib/QtPrintSupport.framework/Versions/5/Headers -I/usr/local/qt-5.0.1/include/QtWidgets -I/usr/local/qt-5.0.1/lib/QtWidgets.framework/Versions/5/Headers -I/usr/local/qt-5.0.1/include/QtSql -I/usr/local/qt-5.0.1/lib/QtSql.framework/Versions/5/Headers -I/usr/local/qt-5.0.1/include/QtGui -I/usr/local/qt-5.0.1/lib/QtGui.framework/Versions/5/Headers -I/usr/local/qt-5.0.1/include/QtCore -I/usr/local/qt-5.0.1/lib/QtCore.framework/Versions/5/Headers -I. -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -I. ../EZPReport/EvernoteInterface.mm -o EvernoteInterface.o

This produces a warning about an unused variable, but continues happily on to the next file.


-----------------------------------------------
Israel Brewster
Computer Support Technician II
Era Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x7293
-----------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 417 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130604/05ec7b74/attachment.bin>
-------------- next part --------------

On Jun 4, 2013, at 12:31 PM, Thiago Macieira <thiago.macieira at intel.com> wrote:

> On terça-feira, 4 de junho de 2013 12.09.49, Israel Brewster wrote:
>> I'm hoping this is just something I'm doing wrong. I have a project which
>> uses a third-party framework - specifically the EvernoteSDK-Mac.framework.
>> I have this framework installed in /Library/Frameworks. When I build my
>> project under Qt 5.0.1, it builds and runs properly. However, when I try
>> with the 5.1 beta, the build fails, complaining about being unable to find
>> one of the Evernote header files. I wouldn't think this would be a Qt
>> issue, except literally the only change I made was building against Qt 5.1
>> rather than Qt 5.0.1. Even all the project build settings are identical.
>> Why might it find the headers fine when building under Qt 5.0.1, but not
>> find them when building under Qt 5.1.0beta?
> 
> My guess is that this is somehow related to our use of the SDK compiler, 
> instead of the global compiler.
> 
> Can you paste the exact command-line that failed when building (as printed by 
> make)? And can you do the same with Qt 5.0.1 which passed?
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list