Warning: This file is not part of any project
-
I was working on a simple project that was using both Desktop 5.15 and WebAssembly of the same version. Both were working and compiling, but after spending some time in Desktop, I switched back to WebAssembly and it no longer compiles.
For some reason WebAssembly no longer imports any file from the project at all. I have tried making new WebAssembly projects, uninstalling and reinstalling both Qt and emsdk. I have changed versions for both, but its always the same result. Any file I open while in WebAssembly says "Warning: this file is not part of any project. The code model might have issues parsing this file properly" and the top include statement says 'file not found'. I can switch back to and run Desktop just fine, but not WebAssembly
Any help is greatly appreciated -
@sschmitz98 Please post your pro file
-
QT += quick virtualkeyboard core network # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ conference.cpp \ main.cpp \ matchup.cpp \ team.cpp RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = QT_PLUGIN_PATH=`pwd`/plugins # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target HEADERS += \ conference.h \ matchup.h \ team.h CONFIG += c++11
-
well, QGuiApplication requires
QT += gui
which is missing from your pro file. -
@J-Hilk Apologies, I forgot I had an older branch checked out, this is my current .pro
QT += quick core network widgets qml gui # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ conference.cpp \ main.cpp \ matchup.cpp \ team.cpp RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = QT_PLUGIN_PATH=`pwd`/plugins # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target HEADERS += \ conference.h \ matchup.h \ team.h CONFIG += c++11 #QMAKE_LFLAGS+= "-s TOTAL_MEMORY=67108864"
I'm still receiving that error, and its not specifically QGuiApplication, it is whatever my top most include statement is
And so none of my Q elements will work correctly
But if I switch to Desktop 5.15 (or other Desktop versions but not Web Assembly) the errors go away
I assume I'm missing something simple with my .pro, but I can't figure out what that would be
-
@JoeCFD said in Warning: This file is not part of any project:
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWDThat didn't seem to work :/
I'll also note the issues that are coming up in QtCreator
My Emscripten version is 3.1.6, it just doesn't seem to recognize the version number
and I've tried with 3.0.0 and 1.39.7 with WebAssembly 5.15.2. This project is currently 6.3.2 but I can't get any WebAssembly to work