Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator: error with SHGetSpecialFolderPath while building any example
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: error with SHGetSpecialFolderPath while building any example

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 2.8k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    DenisFromNN
    wrote on last edited by
    #1

    I'm trying to build one of Qt examples in Qt Creator and give an error with SHGetSpecialFolderPath:

    Starting: "C:\ALL\QtSrc\5.6\msvc2015_64\bin\qmake.exe" C:\ALL\QtSrc\Examples\Qt-5.6\qtdeclarative\quick\demos\calqlatr\calqlatr.pro -r -spec win32-msvc2015 "CONFIG+=debug" "CONFIG+=qml_debug"
    SHGetSpecialFolderPath() failed for standard location "16", clsid=0x1c. (??????? ?? ??????? ????? ????????? ????.)
    

    I have found that clsid with value 0x1c is the path to CSIDL_LOCAL_APPDATA, which also contains the user name, and on my machine it consists of non-ASCII symbols (Russian letters).
    May be a problem in this? Is there any way to resolve it without renaming the folder with an user name?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you create a dummy project and run this code ?

      wchar_t path[MAX_PATH];
      qDebug() << SHGetSpecialFolderPath(0, path, CSIDL_LOCAL_APPDATA, FALSE);
      qDebug() << QDir::fromNativeSeparators(QString::fromWCharArray(path));
      

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D Offline
        D Offline
        DenisFromNN
        wrote on last edited by
        #3

        I can't run any project on Visual Studio kits, because it writes that "cl" compiler wasn't found, but I was able to build an example with MinGW without any errors

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you install the visual studio version that matches your Qt version ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            By the way, building is one thing, could you run it ? If so, what did you got ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

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