Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator cmake project paths
QtWS25 Last Chance

Qt Creator cmake project paths

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qt creatorcmakepath
2 Posts 2 Posters 466 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Poldi
    wrote on 7 Mar 2020, 00:07 last edited by
    #1

    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/xdg

    Standard 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/xdg

    Standard 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/qtdiag

    I 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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on 10 Mar 2020, 19:17 last edited by mchinand 3 Oct 2020, 19:18
      #2

      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?

      1 Reply Last reply
      0

      1/2

      7 Mar 2020, 00:07

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved