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

ogre2 does not compile with MSVC2022 #11

Open
j-rivero opened this issue Apr 14, 2023 · 0 comments
Open

ogre2 does not compile with MSVC2022 #11

j-rivero opened this issue Apr 14, 2023 · 0 comments

Comments

@j-rivero
Copy link
Contributor

While working on gazebo-tooling/release-tools#892 , when compiling with MSVS2022 the following error appear in the ogre2 code:

[1/480] C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1435~1.322\bin\Hostx64\x64\cl.exe   /TP -DBOOST_THREAD_VERSION=4 -DFREEIMAGE_LIB -DOGRE_NONCLIENT_BUILD -DOgreMain_EXPORTS -D_MT -D_USRDLL -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include -IC:\vcpkg\buildtrees\ogre2\x64-windows-rel\include -IC:\vcpkg\installed\x64-windows\include -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\WIN32 -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\src\nedmalloc /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /fp:fast /MP /Zm256 /MD /O2 /Oi /Gy /DNDEBUG /Z7    /wd4786 /wd4503 /wd4251 /wd4275 /wd4290 /wd4661 /wd4996 /wd4127 /wd4100 /showIncludes /FoOgreMain\CMakeFiles\OgreMain.dir\src\OgreAnimationState.cpp.obj /FdOgreMain\CMakeFiles\OgreMain.dir\ /FS -c C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\src\OgreAnimationState.cpp
FAILED: OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationState.cpp.obj 
C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1435~1.322\bin\Hostx64\x64\cl.exe   /TP -DBOOST_THREAD_VERSION=4 -DFREEIMAGE_LIB -DOGRE_NONCLIENT_BUILD -DOgreMain_EXPORTS -D_MT -D_USRDLL -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include -IC:\vcpkg\buildtrees\ogre2\x64-windows-rel\include -IC:\vcpkg\installed\x64-windows\include -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\WIN32 -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\src\nedmalloc /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /fp:fast /MP /Zm256 /MD /O2 /Oi /Gy /DNDEBUG /Z7    /wd4786 /wd4503 /wd4251 /wd4275 /wd4290 /wd4661 /wd4996 /wd4127 /wd4100 /showIncludes /FoOgreMain\CMakeFiles\OgreMain.dir\src\OgreAnimationState.cpp.obj /FdOgreMain\CMakeFiles\OgreMain.dir\ /FS -c C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\src\OgreAnimationState.cpp
C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\OgreWorkarounds.h(1): warning C4828: The file contains a character starting at offset 0x80a that is illegal in the current source character set (codepage 65001).
C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\OgreString.h(219): error C2039: 'hash_compare': is not a member of 'stdext'
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include\iterator(1447): note: see declaration of 'stdext'
C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\OgreString.h(219): error C2143: syntax error: missing ';' before '<'
C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\OgreString.h(219): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\Vao/OgreBufferPacked.h(278): warning C4267: 'return': conversion from 'size_t' to 'Ogre::uint32', possible loss of data
C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\Vao/OgreBufferPacked.h(280): warning C4267: 'return': conversion from 'size_t' to 'Ogre::uint32', possible loss of data
C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\Vao/OgreBufferPacked.h(285): warning C4267: 'return': conversion from 'size_t' to 'Ogre::uint32', possible loss of data
C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\Vao/OgreBufferPacked.h(286): warning C4267: 'return': conversion from 'size_t' to 'Ogre::uint32', possible loss of data
[2/480] C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1435~1.322\bin\Hostx64\x64\cl.exe   /TP -DBOOST_THREAD_VERSION=4 -DFREEIMAGE_LIB -DOGRE_NONCLIENT_BUILD -DOgreMain_EXPORTS -D_MT -D_USRDLL -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include -IC:\vcpkg\buildtrees\ogre2\x64-windows-rel\include -IC:\vcpkg\installed\x64-windows\include -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\include\WIN32 -IC:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\src\nedmalloc /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /fp:fast /MP /Zm256 /MD /O2 /Oi /Gy /DNDEBUG /Z7    /wd4786 /wd4503 /wd4251 /wd4275 /wd4290 /wd4661 /wd4996 /wd4127 /wd4100 /showIncludes /FoOgreMain\CMakeFiles\OgreMain.dir\src\OgreAlignedAllocator.cpp.obj /FdOgreMain\CMakeFiles\OgreMain.dir\ /FS -c C:\vcpkg\buildtrees\ogre2\src\d8a86cf19d-8de27863b9.clean\OgreMain\src\OgreAlignedAllocator.cpp
FAILED: OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.obj 
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