Problem to build oci plugin in Windows 10



  • Hi,
    I'm new in Qt.
    I'm working on an application using Qt 5.11.0 and Oracle 12.1 ["winnt_12102_client32"] in Windows 10. The application was compiled in minGw32 and that application is working fine. Now I want to change the compiler from minGW32 to MSVC x64. For database connectivity I have to make oci.dll for msvc compiler. As per the "SQL Database Drivers" document I have tried to make the dll, but that is not generated. Here I'm sharing the MSVC 2017 command prompt message --

    Setting up environment for Qt usage...
    Remember to call vcvarsall.bat to complete environment setup!

    C:\Qt\Qt5.11.0\5.11.0\msvc2017_64>cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build>dir
    Volume in drive C has no label.
    Volume Serial Number is FA88-9069

    Directory of C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build

    11-03-2019 18:24 <DIR> .
    11-03-2019 18:24 <DIR> ..
    11-03-2019 18:13 13 Microsoft.VCRedistVersion.default.txt
    11-03-2019 18:13 401 Microsoft.VCToolsVersion.default.props
    11-03-2019 18:13 13 Microsoft.VCToolsVersion.default.txt
    11-03-2019 18:13 39 vcvars32.bat
    11-03-2019 18:13 39 vcvars64.bat
    11-03-2019 18:13 9,889 vcvarsall.bat
    11-03-2019 18:13 43 vcvarsamd64_x86.bat
    11-03-2019 18:13 43 vcvarsx86_amd64.bat
    8 File(s) 10,480 bytes
    2 Dir(s) 127,620,227,072 bytes free

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build>vcvarsall.bat
    [ERROR:vcvarsall.bat] Error in script usage. The correct usage is:
    Syntax:
    vcvarsall.bat [arch] [platform_type] [winsdk_version] [-vcvars_ver=vc_version] [-vcvars_spectre_libs=spectre_mode]
    where :
    [arch]: x86 | amd64 | x86_amd64 | x86_arm | x86_arm64 | amd64_x86 | amd64_arm | amd64_arm64
    [platform_type]: {empty} | store | uwp
    [winsdk_version] : full Windows 10 SDK number (e.g. 10.0.10240.0) or "8.1" to use the Windows 8.1 SDK.
    [vc_version] : {none} for default VS 2017 VC++ compiler toolset |
    "14.0" for VC++ 2015 Compiler Toolset |
    "14.1x" for the latest 14.1x.yyyyy toolset installed (e.g. "14.11") |
    "14.1x.yyyyy" for a specific full version number (e.g. 14.11.25503)
    [spectre_mode] : {none} for default VS 2017 libraries without spectre mitigations |
    "spectre" for VS 2017 libraries with spectre mitigations

    The store parameter sets environment variables to support Universal Windows Platform application
    development and is an alias for 'uwp'.

    For example:
    vcvarsall.bat x86_amd64
    vcvarsall.bat x86_amd64 10.0.10240.0
    vcvarsall.bat x86_arm uwp 10.0.10240.0
    vcvarsall.bat x86_arm onecore 10.0.10240.0 -vcvars_ver=14.0
    vcvarsall.bat x64 8.1
    vcvarsall.bat x64 store 8.1

    Please make sure either Visual Studio or C++ Build SKU is installed.

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build>


    [ERROR:vcvarsall.bat] Error in script usage. The correct usage is: ... This error is generated.
    Please help how to generate oci.dll for MSVC x64. It is urgent.
    Thanks in advance.

    Qt Creator: Qt Creator 4.6.1
    Based on Qt 5.11.0 (MSVC 2015, 32 bit)
    Oracle: winnt_12102_client32
    Compiler: MSVC2017 64bit


  • Qt Champions 2018

    @SabbyM said in Problem to build oci plugin in Windows 10:

    Please make sure either Visual Studio or C++ Build SKU is installed.

    Did you make sure this is the case? Did you install VS2017 C++ compiler (this is not done by default when installing VS)?



  • @jsulm

    Yes, VS2017 C++ compiler was installed. The application has been successfully compiled using MSVC.


Log in to reply