为何Ogre3D部分依赖项Debug构建失败,仅能以Release构建?
Ogre3D 14.1.1(Direct3D11)Debug构建中Assimp与OgreBullet依赖失败问题
环境信息
- 系统:Windows 10
- Ogre3D版本:14.1.1
- 渲染器:Direct3D11
- 代码仓库:OGRECave/ogre
问题描述
此前已成功构建Debug版本并正常使用Assimp,但尝试同时构建OgreBullet后,Assimp与OgreBullet均无法完成Debug构建,其余依赖项可正常以Debug模式构建。
已执行的构建步骤
- 下载并解压代码仓库
- 在仓库内创建
/build/debug目录 - 打开命令提示符,设置环境变量
set CMAKE_BUILD_TYPE=Debug(依赖项在CMake配置阶段构建,需通过命令行指定,修改CMake GUI无效) - 执行
cmake-gui.exe -DCMAKE_BUILD_TYPE=Debug启动CMake图形界面 - 在CMake界面中设置源码目录为下载的仓库文件夹,构建目录为
/build/debug - 点击Configure按钮,确认Debug构建设置后点击Generate(无错误)
- 在Visual Studio 2022中打开生成的解决方案,构建预定义目标"ALL_BUILD"
CMake配置输出
Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045. Configuring OGRE 14.1.1 DEPENDENCIES_DIR: D:/Ogre_3/ogre-master/build/debug/Dependencies Looking for FreeImage... Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Could not locate FreeImage Looking for DirectX9... Could not locate DirectX9 Looking for DirectX11... Found DirectX11 headers: C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/um Found DirectX11: d3d11.lib;dxgi.lib;dxguid.lib Looking for Cg... Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Could not locate Cg CMake Warning (dev) at CMake/Dependencies.cmake:278 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:284 (include) This warning is for project developers. Use -Wno-dev to suppress it. Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) CMake Warning (dev) at CMake/Dependencies.cmake:279 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:284 (include) This warning is for project developers. Use -Wno-dev to suppress it. Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) Looking for Softimage... Could not locate Softimage send_errorD:/Ogre_3/ogre-master/build/debug/Dependencies/bin/debug/libGLESv2.dll did not exist, can't install! send_errorD:/Ogre_3/ogre-master/build/debug/Dependencies/bin/release/libEGL.dll did not exist, can't install! Looking for GLSL_Optimizer... Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Could not locate GLSL_Optimizer Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) ----------------------------------------------------------------------------- -- The following external packages were located on your system. -- This installation will have the extra features provided by these packages. + freetype + OpenGL + OpenGL ES 2.x + DirectX11 + pugixml + zlib + Assimp + Bullet + SDL2 ----------------------------------------------------------------------------- -- The following OPTIONAL packages could NOT be located on your system. -- Consider installing them to enable more features from this software. + freeimage: Support for commonly used graphics image formats <http://freeimage.sourceforge.net> + DirectX9: Support for the DirectX render system <http://msdn.microsoft.com/en-us/directx/> + cg: C for graphics shader language <http://developer.nvidia.com/object/cg_toolkit.html> + Vulkan SDK: Vulkan RenderSystem, glslang Plugin. Alternatively use system packages <https://vulkan.lunarg.com/> + OpenEXR: Load High dynamic range images <http://www.openexr.com/> + Python: Language bindings to use OGRE from Python <http://www.python.org/> + SWIG: Language bindings (Python, Java, C#) for OGRE <http://www.swig.org/> + Qt: optional integration with the Qt Library for window creation and input <http://www.qt.io/> + Doxygen: Tool for building API documentation <http://doxygen.org> + Softimage: Softimage SDK needed for building XSIExporter <> + GLSL Optimizer: GLSL Optimizer <http://github.com/aras-p/glsl-optimizer/> + HLSL2GLSL: HLSL2GLSL <http://hlsl2glslfork.googlecode.com/> ----------------------------------------------------------------------------- ---------------------------------------------------------------------------- FEATURE SUMMARY ---------------------------------------------------------------------------- Building components: + Bites + Bullet + MeshLodGenerator + Overlay + Overlay Dear Imgui + Paging + Property + RTShader System + RTShader System Shaders + Terrain + Volume Building plugins: + BSP scene manager + Octree scene manager + STBI codec (generic) + Portal connected zone scene manager + Particle FX + DotScene loader + Assimp loader (.obj, .ply, .fbx and more) Building rendersystems: + Direct3D 11 + OpenGL + OpenGL 3+ + OpenGL ES2/ ES3 Building executables: + Samples + Tools Building core features: + Mesh Lod + DDS image codec (.dds) + ETC image codec (.pkm, .ktx) + ASTC image codec (.astc) + ZIP archives + Multi-threaded WorkQueue Build type: shared Use double precision: disabled Assert mode: release exceptions ---------------------------------------------------------------------------- Configuring done (1.9s) Generating done (0.4s)
内容的提问来源于stack exchange,提问作者SKB_BGPL
相关产品推荐
相关产品推荐

