Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hwhsu1231 opened this issue May 7, 2022 · 0 comments
Open

Comments

@hwhsu1231
Copy link

hwhsu1231 commented May 7, 2022

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

@hwhsu1231 hwhsu1231 changed the title [bug] Cannot compile the source codes with MSVC compiler on Windows. [bug] Cannot compile the sample codes with MSVC compiler on Windows. May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant