MyGUI build error. DirectX_DXERR9_LIBRARY

c:\Users\wwforever.NOWCOM\Downloads\MyGUI_3.2.0>cmake -DMYGUI_RENDERSYSTEM=1 -G "Visual Studio 7 .NET 2003"
-- Configuring MYGUI 3.2.0
-- Looking for FREETYPE...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- CMAKE_PREFIX_PATH: Dependencies;C:/Users/wwforever.NOWCOM/Downloads/MyGUI_3.2.0/Dependencies;C:/Users/wwforever.NOWCOM/Downloads/MyGUI_3.2.0/Dependencies;C:/Users/wwforever.NOWCOM/Downloads/MyGUI_3.2.0/../Dependencies;C:/Users/wwforever.NOWCOM/Downloads/MyGUI_3.2.0/../Dependencies
-- Found FREETYPE: optimized;C:/Users/wwforever.NOWCOM/Downloads/MyGUI_3.2.0/Dependencies/lib/release/freetype2311.lib;debug;C:/Users/wwforever.NOWCOM/Downloads/MyGUI_3.2.0/Dependencies/lib/debug/freetype2311_D.lib
-- Looking for DirectX...
-- DirectX_PREFIX_PATH changed.
-- Found DirectX: D:/KabodStudio/SDK/DirectX_Oct2005/Lib/x86/d3d9.lib
-- Looking for DirectX11...
-- DirectX_PREFIX_PATH changed.
-- Could not locate DirectX11
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ freetype
+ DirectX
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ Doxygen: Tool for building API documentation <http://doxygen.org>
-----------------------------------------------------------------------------

-- Unknown svn revision. It won't be included into build.
CMake Error: The following variables are used in this project, but they are set
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake file
s:
DirectX_DXERR9_LIBRARY
    linked by target "MyGUI.DirectXPlatform" in directory C:/Users/wwforever.NOWCOM/Downloads/MyGUI_3.2.0/Platforms/DirectX/DirectXPlatform

-- Configuring incomplete, errors occurred!


 DXERR9 라이브러리 관련 에러가 발생하네요. 보아하니 전에 CEGUI 빌드할 때도 비슷한 링크에러가 있었죠. 보통은 dxerr.lib 일텐데 저희 프로젝트는 파일명이 dxerr9.lib여서 생긴 문제인 듯합니다.

 기존에 Could not locate DirectX 빌드 에러를 해결했듯이 MyGUI가 설치된 디렉터리안에 CMake\Packages\FindDirectX.cmake 파일을 수정해야합니다.

find_library(DirectX_DXERR9_LIBRARY NAMES dxerr HINTS ${DirectX_LIB_SEARCH_PATH} PATH_SUFFIXES ${DirectX_LIBPATH_SUFFIX})

 58라인쯤에 위와 같이 되어있습니다. NAMES dxerr에서 dxerr9로 바꿔줍니다. 아래와 같이요.

find_library(DirectX_DXERR9_LIBRARY NAMES dxerr9 HINTS ${DirectX_LIB_SEARCH_PATH} PATH_SUFFIXES ${DirectX_LIBPATH_SUFFIX})

댓글

이 블로그의 인기 게시물

'xxx.exe' 프로그램을 시작할 수 없습니다. 지정된 파일을 찾을 수 없습니다.

goorm IDE에서 node.js 프로젝트로 Hello World Simple Server 만들어 띄워보기

애드센스 수익을 웨스턴 유니온으로 수표대신 현금으로 지급 받아보자.