[kde-doc-english] [frameworks-kdoctools] [Bug 362849] meinproc5.exe searches the wrong path for kdoctools

Jasem Mutlaq via KDE Bugzilla bugzilla_noreply at kde.org
Sat May 21 12:33:20 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=362849

--- Comment #3 from Jasem Mutlaq <mutlaqja at ikarustech.com> ---
I suspect it could be due to some environment variables not being set? Here is
my environment variables:

PS D:\> Get-ChildItem Env:

Name                           Value
----                           -----
ALLUSERSPROFILE                C:\ProgramData
APPDATA                        C:\Users\Jasem\AppData\Roaming
APR_ICONV_PATH                 C:\Program Files (x86)\Subversion\iconv
CommandPromptType              Native
CommonProgramFiles             C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)        C:\Program Files (x86)\Common Files
CommonProgramW6432             C:\Program Files\Common Files
COMPUTERNAME                   JASEM-PC
ComSpec                        C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK               NO
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_ST... Default
Framework40Version             v4.0
FrameworkDir                   C:\WINDOWS\Microsoft.NET\Framework64
FrameworkDIR64                 C:\WINDOWS\Microsoft.NET\Framework64
FrameworkVersion               v4.0.30319
FrameworkVersion64             v4.0.30319
git_ssh                        plink
HOME                           C:\Users\Jasem
HOMEDRIVE                      C:
HOMEPATH                       \Users\Jasem
INCLUDE                        C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows
Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\NE...
KDEROOT                        D:\k
LIB                            C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows
Kits\10\lib\10.0.10240.0\ucrt\x64;C:\Program Files (x86)\Windows Kit...
LIBPATH                       
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files
(x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files
(x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files
(x86)\Windows Kits\8.1\References\...
LOCALAPPDATA                   C:\Users\Jasem\AppData\Local
LOGONSERVER                    \\MicrosoftAccount
NETFXSDKDir                    C:\Program Files (x86)\Windows
Kits\NETFXSDK\4.6.1\
NUMBER_OF_PROCESSORS           8
OS                             Windows_NT
Path                          
D:\k\bin;D:\k\dev-utils\bin;D:\Qt\Qt5.6.0\5.6\msvc2015\bin;C:\Program Files
(x86)\Microsoft Visual Studio
14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files
(x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\MSBuil...
PATHEXT                       
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.CPL
PKG_CONFIG_PATH                D:\k\lib\pkgconfig
Platform                       X64
PROCESSOR_ARCHITECTURE         x86
PROCESSOR_ARCHITEW6432         AMD64
PROCESSOR_IDENTIFIER           Intel64 Family 6 Model 58 Stepping 9,
GenuineIntel
PROCESSOR_LEVEL                6
PROCESSOR_REVISION             3a09
ProgramData                    C:\ProgramData
ProgramFiles                   C:\Program Files (x86)
ProgramFiles(x86)              C:\Program Files (x86)
ProgramW6432                   C:\Program Files
PROMPT                         $P$G
PSModulePath                  
C:\Users\Jasem\Documents\WindowsPowerShell\Modules;C:\Program
Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC                         C:\Users\Public
PythonPath                     D:\k\lib\site-packages
QT_PLUGIN_PATH                 D:\k\plugins;D:\k\lib\plugins;D:\k\lib\plugin
SESSIONNAME                    Console
svn_ssh                        plink
SystemDrive                    C:
SystemRoot                     C:\WINDOWS
TEMP                           C:\Users\Jasem\AppData\Local\Temp
TMP                            C:\Users\Jasem\AppData\Local\Temp
UCRTVersion                    10.0.10240.0
UniversalCRTSdkDir             C:\Program Files (x86)\Windows Kits\10\
USERDOMAIN                     JASEM-PC
USERDOMAIN_ROAMINGPROFILE      JASEM-PC
USERNAME                       Jasem
USERPROFILE                    C:\Users\Jasem
VBOX_MSI_INSTALL_PATH          C:\Program Files\Oracle\VirtualBox\
VCINSTALLDIR                   C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\
VisualStudioVersion            14.0
VS110COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\Tools\
VS120COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio
12.0\Common7\Tools\
VS140COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\Tools\
VSINSTALLDIR                   C:\Program Files (x86)\Microsoft Visual Studio
14.0\
windir                         C:\WINDOWS
windows_tracing_flags          3
windows_tracing_logfile        C:\BVTBin\Tests\installpackage\csilogfile.log
WindowsLibPath                 C:\Program Files (x86)\Windows
Kits\8.1\References\CommonConfiguration\Neutral
WindowsSDK_ExecutablePath_x64  C:\Program Files (x86)\Microsoft
SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\
WindowsSDK_ExecutablePath_x86  C:\Program Files (x86)\Microsoft
SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\
WindowsSdkDir                  C:\Program Files (x86)\Windows Kits\8.1\
WindowsSDKLibVersion           winv6.3\
WindowsSDKVersion              \
XDG_DATA_DIRS                  D:\k\share

If I explicitly pass  --srcdir D:\k\share\kf5\kdoctools\

Then meinproc5.exe works just fine. The problem is when no source dir is being
passed. I see that in xslt.cpp:

QStringList locateFilesInDtdResource(const QString &file, const
QStandardPaths::LocateOptions option)

In source dir is empty, it searches for it here:

const QString fileName = QStringLiteral("kf5/kdoctools/") + file;
    const QStringList result =
QStandardPaths::locateAll(QStandardPaths::GenericDataLocation,
            fileName, option);

But then GenericDataLocation for Windows is no way near D:\k\share 

Should it perhaps use the XDG_DATA_DIRS environment variable to search there?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-doc-english mailing list