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

VS2022 Build issue #748

Closed
felpic opened this issue Mar 16, 2022 · 3 comments
Closed

VS2022 Build issue #748

felpic opened this issue Mar 16, 2022 · 3 comments

Comments

@felpic
Copy link

felpic commented Mar 16, 2022

Platform: Windows 10
Compiler: MSVC

I have been trying for a while, but I haven't managed to build Pangolin. I get the following errors repeated many times for different packages: atomic, xmemory and xpolymorphic_allocator at least.

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\atomic(206,9): error C2039: '
_invalid_parameter': is not a member of '`global namespace'' [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\atomic(206,9): error C3861: '
_invalid_parameter': identifier not found [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\atomic(221,9): error C2039: '
_invalid_parameter': is not a member of '`global namespace'' [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\atomic(221,9): error C3861: '
_invalid_parameter': identifier not found [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\atomic(237,9): error C2039: '
_invalid_parameter': is not a member of '`global namespace'' [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\atomic(237,9): error C3861: '
_invalid_parameter': identifier not found [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
  gl.cpp
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xmemory(154,5): error C2039:
'_invalid_parameter': is not a member of '`global namespace'' [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xmemory(154,5): error C3861:
'_invalid_parameter': identifier not found [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xmemory(164,5): error C2039:
'_invalid_parameter': is not a member of '`global namespace'' [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xmemory(164,5): error C3861:
'_invalid_parameter': identifier not found [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xmemory(1203,9): error C2039:
 '_invalid_parameter': is not a member of '`global namespace'' [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xmemory(1203,1): error C3861:
 '_invalid_parameter': identifier not found [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xpolymorphic_allocator.h(146,
13): error C2039: '_invalid_parameter': is not a member of '`global namespace'' [C:\ORB-SLAM3\Pangolin\build\pypangolin
.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xpolymorphic_allocator.h(146,
1): error C3861: '_invalid_parameter': identifier not found [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xpolymorphic_allocator.h(152,
13): error C2039: '_invalid_parameter': is not a member of '`global namespace'' [C:\ORB-SLAM3\Pangolin\build\pypangolin
.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\xpolymorphic_allocator.h(152,
1): error C3861: '_invalid_parameter': identifier not found [C:\ORB-SLAM3\Pangolin\build\pypangolin.vcxproj]
@felpic
Copy link
Author

felpic commented Mar 16, 2022

Brief update. This seems to be a fairly common issue with VS2022, which could be somehow related to pybind11:
microsoft/onnxruntime#9735
microsoft/STL#2335
pybind/pybind11#3459

I am new to this, so I don't really understand what is going on and if and how I can fix it. Any help would be greatly appreciated. Otherwise, I might just try to install an older version of Visual Studio

@stevenlovegrove stevenlovegrove changed the title Build failed VS2022 Build issue Mar 17, 2022
@Manuel-Meyer
Copy link

Have you found a solution? I have the same problem with VS2019.

@christian-rauch
Copy link
Collaborator

Windows + MSVC is now part of the CI pipeline again (#899). This should make sure that this builds.

Apart from this, I cannot see how this is caused by Pangolin. _invalid_parameter is nothing that appears in the Pangolin code.

I am closing this now. But feel free to reopen and send a PR to the CI configuration to reproduce this.

@christian-rauch christian-rauch closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
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

3 participants