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 8 May 2016, 16:54 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 May 2016, 21:01 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 14 May 2016, 11:39 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 May 2016, 19:42 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 14 May 2016, 19:43 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

            1/5

            8 May 2016, 16:54

            • Login

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