Old thread but I am getting the same error as the OP.
I am trying to get a blank v-play “Tabbed App” running.
../../../../VPlayTest/main.cpp:1:10: fatal error: ‘QApplication’ file not found
#include
Qt5.7 on MacOS using clang_64.
If I add to the project config
QT += widgets
It then errors with
../../../../VPlayTest/main.cpp:2:10: fatal error: ‘VPApplication’ file not found
#include
My other Qt projects run fine.
Full log:
15:40:13: Starting: “/usr/bin/make”
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -isysroot /Applications/Dev/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.8 -O2 -std=gnu++11 -Wall -W -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../VPlayTest -I. -I/Users/user/Qt5.7.1/5.7/clang_64/lib/QtWidgets.framework/Headers -I/Users/user/Qt5.7.1/5.7/clang_64/lib/QtGui.framework/Headers -I/Users/user/Qt5.7.1/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Dev/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Dev/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/user/Qt5.7.1/5.7/clang_64/mkspecs/macx-clang -F/Users/user/Qt5.7.1/5.7/clang_64/lib -o main.o ../../../../VPlayTest/main.cpp
../../../../VPlayTest/main.cpp:2:10: fatal error: ‘VPApplication’ file not found
#include
^
1 error generated.
make: *** [main.o] Error 1
15:40:15: The process “/usr/bin/make” exited with code 2.
Error while building/deploying project VPlayTest (kit: Desktop Qt 5.7.1 clang 64bit)
When executing step “Make”
15:40:15: Elapsed time: 00:02.