Skip to content

[bug] Cannot compile the sample codes with MSVC compiler on Windows. #111

@hwhsu1231

Description

@hwhsu1231

Building Commands

git clone https://github.com/p-ranav/indicators
cd indicators
mkdir build && cd build
vcvarsall x64
cmake -DINDICATORS_SAMPLES=ON -DINDICATORS_DEMO=ON -GNinja ..
cmake --build .

Platform and Version

  • OS+System: Windows 11
  • CMake Version: 3.21.2
  • Ninja Version: 1.10.2
  • Compiler+Version: MSVC 2019

Logs

  • Click to expand log
    C:\CPackages\indicators>git clone https://github.com/p-ranav/indicators
    Cloning into 'indicators'...
    remote: Enumerating objects: 1997, done.
    remote: Counting objects: 100% (171/171), done.
    remote: Compressing objects: 100% (41/41), done.
    remote: Total 1997 (delta 83), reused 162 (delta 83), pack-reused 1826
    Receiving objects: 100% (1997/1997), 34.55 MiB | 7.26 MiB/s, done.
    Resolving deltas: 100% (1120/1120), done.
    
    C:\CPackages\indicators>cd indicators
    
    C:\CPackages\indicators\indicators>mkdir build && cd build
    
    C:\CPackages\indicators\indicators\build>vcvarsall x64
    **********************************************************************
    ** Visual Studio 2019 Developer Command Prompt v16.11.11
    ** Copyright (c) 2021 Microsoft Corporation
    **********************************************************************
    [vcvarsall.bat] Environment initialized for: 'x64'
    
    C:\CPackages\indicators\indicators\build>cmake -DINDICATORS_SAMPLES=ON -DINDICATORS_DEMO=ON -GNinja ..
    -- The CXX compiler identification is MSVC 19.29.30141.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Looking for C++ include pthread.h
    -- Looking for C++ include pthread.h - not found
    -- Found Threads: TRUE
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/CPackages/indicators/indicators/build
    
    C:\CPackages\indicators\indicators\build>cmake --build .
    
  • Log of cmake --build . is too long, so I save it into a .txt file and upload it:

    CompileError.txt

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions