You might want to use a clean path and do an absolute path for MYPROJ, some tools are not super friendly with path and spaces into them too.
MYPROJ = $$clean_path($$PWD/../ phidget-spinner) That would remove the .. from the path and resolve the actual path properly. Try to change your variable name just to make sure you ain’t hitting a name clash. Try to always put the {} around your var it always mor safe, if you can add the “ “ to your path usage too in any case where the path has spaces. From: Jason H <jh...@gmx.com> Date: Tuesday, April 27, 2021 at 3:35 PM To: Andy Shaw <andy.s...@qt.io> Cc: Jérôme Godbout <godbo...@amotus.ca>, interestqt-project.org <interest@qt-project.org> Subject: Re: Svar: [Interest] Qt permanently broke on computer Good news everybody, I have partialyl figured it out, but I hope you can help me further. MYPROJ = ../phidget-spinner win32 { INCLUDEPATH +=$$MYPROJ/libraries/phidget22-windevel/lib/c #this works: LIBS +=-L$$PWD/../phidget-spinner/libraries/phidget22-windevel/lib/c/x64 -lphidget22 #these breaks Qt (each): LIBS +=-L$$MYPROJ/libraries/phidget22-windevel/lib/c/x64 -lphidget22 LIBS +=-L"$${MYPROJ}/libraries/phidget22-windevel/lib/c/x64" -lphidget22 LIBS +=-L$${MYPROJ}/libraries/phidget22-windevel/lib/c/x64 -lphidget22 } message("PWD") message($${PWD}) message("MYPROJ") message($$MYPROJ) message("INCLUDEPATH") message($${INCLUDEPATH}) message("LIBS") message($${LIBS}) Working: Project MESSAGE: PWD Project MESSAGE: C:/Users/Admin/phidget-spinner Project MESSAGE: MYPROJ Project MESSAGE: ../phidget-spinner Project MESSAGE: INCLUDEPATH Project MESSAGE: ../phidget-spinner/libraries/phidget22-windevel/lib/c Project MESSAGE: LIBS Project MESSAGE: -LC:/Users/Admin/phidget-spinner/../phidget-spinner/libraries/phidget22-windevel/lib/c/x64 -lphidget22 Now working: Project MESSAGE: PWD Project MESSAGE: C:/Users/Admin/phidget-spinner Project MESSAGE: MYPROJ Project MESSAGE: ../phidget-spinner Project MESSAGE: INCLUDEPATH Project MESSAGE: ../phidget-spinner/libraries/phidget22-windevel/lib/c Project MESSAGE: LIBS Project MESSAGE: -L../phidget-spinner/libraries/phidget22-windevel/lib/c/x64 -lphidget22 Not sure why $$MYPROJ works for INCLUDEPATH but breaks the linker? If the link path is wrong I would expect it to fail the build, bot break Qt? Sent: Monday, April 26, 2021 at 2:47 PM From: "Andy Shaw" <andy.s...@qt.io> To: "Jérôme Godbout" <godbo...@amotus.ca>, "Jason H" <jh...@gmx.com> Cc: "interestqt-project.org" <interest@qt-project.org> Subject: Svar: [Interest] Qt permanently broke on computer What is also useful to check is to set QT_DEBUG_PLUGINS=1 as your environment variable, it can tell you where it is looking for the plugin then. Maybe it finds a qt.conf file and it is influencing the paths incorrectly there. Andy Fra: Interest <interest-boun...@qt-project.org> på vegne av Jérôme Godbout <godbo...@amotus.ca> Dato: mandag, 26. april 2021 kl. 19:33 Til: Jason H <jh...@gmx.com> Kopi: interestqt-project.org <interest@qt-project.org> Emne: Re: [Interest] Qt permanently broke on computer You might try to delete the .user files for the project and clean the build folder manually (erase the whole folder). Check the project config to spot any differences there. If some project work with the same Qt version, the Qt install is probably good. Make sure all you dependencies are ok. From: Interest <interest-boun...@qt-project.org> on behalf of Jason H <jh...@gmx.com> Date: Monday, April 26, 2021 at 11:11 AM To: Jason H <jh...@gmx.com> Cc: interestqt-project.org <interest@qt-project.org> Subject: Re: [Interest] Qt permanently broke on computer > Sent: Monday, April 26, 2021 at 11:01 AM > From: "Jason H" <jh...@gmx.com> > To: "Jason H" <jh...@gmx.com> > Cc: "interestqt-project.org" <interest@qt-project.org> > Subject: Re: [Interest] Qt permanently broke on computer > > > I tried to port an app on a Win10 PC. That went well. Then I tried to > > deploy (windeployqt) it. > > > > Now when I run it in creator I get: > > 10:26:28: Starting > > C:\Users\Admin\Projects\build-phidget-spinner-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\debug\phidget-spinner.exe > > ... > > qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" > > > > I have deleted the C:\Qt dir and re-installed. > > I have cleaned the app source dir and deleted the shadow build dirs, > > deleted the .pro.user file, > > I launched QtC from the start menu. > > > > I have no idea how to get this working again. > > Some additional info: > Other projects work. > The crash is in this statement: > QGuiApplication app(argc, argv); > > the stack indicates a crash starting at: > QGuiApplicationPrivate::createPlatformIntegration() > > > All the online help (stackexchange) seems to be about deployment, but I'm > just trying to run it in creator. Update #2: The same thing happens on a totaly new computer, never had qt on it before, installed Qt, copied the source and built it, some error. _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest