Closed kazuki0824 closed 7 months ago
to avoid the error in Windows. This is mentioned in https://github.com/pybind/pybind11/pull/2293
-- Building for: Visual Studio 17 2022 -- The C compiler identification is MSVC 19.39.33218.0 -- The CXX compiler identification is MSVC 19.39.33218.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Preview/VC/Tools/MSVC/14.39.33218/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Preview/VC/Tools/MSVC/14.39.33218/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: C:/Users/kazuk/AppData/Local/Temp/build-env-yobt4j_l/Scripts/python.exe (found version "3.10.11") -- Found PythonLibs: C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0/libs/Python310.lib -- pybind11 v2.2.1 -- Performing Test HAS_MSVC_GL_LTCG -- Performing Test HAS_MSVC_GL_LTCG - Success -- LTO enabled -- Configuring done (8.7s) -- Generating done (0.1s) -- Build files have been written to: C:/Users/kazuk/AppData/Local/Temp/build-via-sdist-_4jemhuv/lapsolver-1.1.0/build/temp.win-amd64-cpython-310/Release MSBuild のバージョン 17.9.0-preview-23551-05+34ae4f308 (.NET Framework) C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: 中間ディレクトリまたは出力ディレクトリを一時ディレクトリに置くことはできません。インクリメンタル ビルドで問題が発生する可能性があります。 [C:\Users\kazuk\AppData\Local\Temp\build-via-sdist-_4jemhuv\lapsolver-1.1.0\build\temp.win-amd64-cpython-310\Release\ZERO_CHECK.vcxproj] Checking Build System C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: 中間ディレクトリまたは出力ディレクトリを一時ディレクトリに置くことはできません。インクリメンタル ビルドで問題が発生する可能性があります。 [C:\Users\kazuk\AppData\Local\Temp\build-via-sdist-_4jemhuv\lapsolver-1.1.0\build\temp.win-amd64-cpython-310\Release\lapsolverc.vcxproj] Building Custom Rule C:/Users/kazuk/AppData/Local/Temp/build-via-sdist-_4jemhuv/lapsolver-1.1.0/CMakeLists.txt lapsolverc.cpp C:\Users\kazuk\AppData\Local\Temp\build-via-sdist-_4jemhuv\lapsolver-1.1.0\pybind11\include\pybind11\numpy.h(35,22): error C2065: 'ssize_t': 定義されていない識別子です。 [C:\Users\kazuk\AppData\Local\Temp\build-via-sdist-_4jemhuv\lapsolver-1.1.0\build\temp.win-amd64-cpython-310\Release\lapsolverc.vcxproj] (ソース ファイル '../../../src/lapsolverc.cpp' をコンパイルしています) C:\Users\kazuk\AppData\Local\Temp\build-via-sdist-_4jemhuv\lapsolver-1.1.0\pybind11\include\pybind11\numpy.h(35,31): error C2338: static_assert failed: 'ssize_t != Py_intptr_t' [C:\Users\kazuk\AppData\Local\Temp\build-via-sdist-_4jemhuv\lapsolver-1.1.0\build\temp.win-amd64-cpython-310\Release\lapsolverc.vcxproj] (ソース ファイル '../../../src/lapsolverc.cpp' をコンパイルしています)
Also mentioned in #17
thx
to avoid the error in Windows. This is mentioned in https://github.com/pybind/pybind11/pull/2293