Qt Creator cmake project paths
-
I have a cmake project that is identical over two different version of Qt Creator and am trying to figure out why one of the crashes.
Following are the System settings
+++++++ Works +
Qt 5.12.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.3.0) on "xcb"
OS: Ubuntu 19.04 [linux version 5.0.0-38-generic]Architecture: x86_64; features: SSE2 SSE3
Environment:
QT_ACCESSIBILITY="1"
QT_AUTO_SCREEN_SCALE_FACTOR="0"Features: QT_NO_EXCEPTIONS
Library info:
PrefixPath: /usr
DocumentationPath: /usr/share/qt5/doc
HeadersPath: /usr/include/x86_64-linux-gnu/qt5
LibrariesPath: /usr/lib/x86_64-linux-gnu
LibraryExecutablesPath: /usr/lib/x86_64-linux-gnu/qt5/libexec
BinariesPath: /usr/lib/qt5/bin
PluginsPath: /usr/lib/x86_64-linux-gnu/qt5/plugins
ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/imports
Qml2ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/qml
ArchDataPath: /usr/lib/x86_64-linux-gnu/qt5
DataPath: /usr/share/qt5
TranslationsPath: /usr/share/qt5/translations
ExamplesPath: /usr/lib/x86_64-linux-gnu/qt5/examples
TestsPath: /usr/tests
SettingsPath: /etc/xdgStandard paths [... denote writable entry]:
DesktopLocation: "Desktop" /home/llist/Desktop
DocumentsLocation: "Documents" /home/llist/Documents
FontsLocation: "Fonts" /home/llist/.local/share/fonts /home/llist/.fonts
ApplicationsLocation: "Applications" /home/llist/.local/share/applications /home/llist/kdedev/share/applications /usr/share/plasma/applications /usr/local/share/applications /usr/share/applications /var/lib/snapd/desktop/applications
MusicLocation: "Music" /home/llist/Music
MoviesLocation: "Movies" /home/llist/Videos
PicturesLocation: "Pictures" /home/llist/Pictures
TempLocation: "Temporary Directory" /tmp
HomeLocation: "Home" /home/llist
AppLocalDataLocation: "Application Data" /home/llist/.local/share/QtProject/qtdiag /home/llist/kdedev/share/QtProject/qtdiag /usr/share/plasma/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag
+++++++========== Fails ==============
Qt 5.12.4 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.2.1 20191008) on "xcb"
OS: Ubuntu 19.10 [linux version 5.3.0-40-generic]Architecture: x86_64; features: SSE2 SSE3
Environment:
QT_AUTO_SCREEN_SCALE_FACTOR="0"Features: QT_NO_EXCEPTIONS
Library info:
PrefixPath: /usr
DocumentationPath: /usr/share/qt5/doc
HeadersPath: /usr/include/x86_64-linux-gnu/qt5
LibrariesPath: /usr/lib/x86_64-linux-gnu
LibraryExecutablesPath: /usr/lib/x86_64-linux-gnu/qt5/libexec
BinariesPath: /usr/lib/qt5/bin
PluginsPath: /usr/lib/x86_64-linux-gnu/qt5/plugins
ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/imports
Qml2ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/qml
ArchDataPath: /usr/lib/x86_64-linux-gnu/qt5
DataPath: /usr/share/qt5
TranslationsPath: /usr/share/qt5/translations
ExamplesPath: /usr/lib/x86_64-linux-gnu/qt5/examples
TestsPath: /usr/tests
SettingsPath: /etc/xdgStandard paths [... denote writable entry]:
DesktopLocation: "Desktop" /home/llist/Desktop
DocumentsLocation: "Documents" /home/llist/Documents
FontsLocation: "Fonts" /home/llist/.local/share/fonts /home/llist/.fonts
ApplicationsLocation: "Applications" /home/llist/.local/share/applications /usr/share/plasma/applications /usr/local/share/applications /usr/share/applications /var/lib/snapd/desktop/applications
MusicLocation: "Music" /home/llist/Music
MoviesLocation: "Movies" /home/llist/Videos
PicturesLocation: "Pictures" /home/llist/Pictures
TempLocation: "Temporary Directory" /tmp
HomeLocation: "Home" /home/llist
AppLocalDataLocation: "Application Data" /home/llist/.local/share/QtProject/qtdiag /usr/share/plasma/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag
CacheLocation: "Cache" /home/llist/.cache/QtProject/qtdiagI think the problem is that the ApplicationsLocation on the second environment misses the "/home/llist/kdedev" path.
How do I add this path to a cmake project?
Thanks -
Are running this on two different computers (or VMs)? It seems there are more variables involved than just 'different version of QtCreator'.
Working:
Qt 5.12.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.3.0) on "xcb" OS: Ubuntu 19.04 [linux version 5.0.0-38-generic] Environment: QT_ACCESSIBILITY="1" QT_AUTO_SCREEN_SCALE_FACTOR="0"
Not Working (note, QT_ACCESSIBILITY is not set):
Qt 5.12.4 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.2.1 20191008) on "xcb" OS: Ubuntu 19.10 [linux version 5.3.0-40-generic] Environment: QT_AUTO_SCREEN_SCALE_FACTOR="0"
Do you have additional KDE packages (not sure what that the 'kdedev' folder is) installed on the one that's working? Does your application depend on them? Can you run it in debugging to see where exactly it is crashing?