Qt Creator: error with SHGetSpecialFolderPath while building any example



  • 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?


  • Lifetime Qt Champion

    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));
    


  • 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


  • Lifetime Qt Champion

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


  • Lifetime Qt Champion

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.