Error - cannot open file 'RenderSystem_Direct3D9_d.lib'

Problems building or running the engine, queries about how to use features etc.
Post Reply
Kev121
Gnoblar
Posts: 1
Joined: Tue Jul 19, 2016 3:06 pm

Error - cannot open file 'RenderSystem_Direct3D9_d.lib'

Post by Kev121 »

Hi, I'm having an issue running OGRE. I've followed the instructions in this video exactly (https://www.youtube.com/watch?v=-3XwyYQ9OLg), but am getting the following fatal error when trying to build the final project:

Code: Select all

1>------ Build started: Project: RenderSystem_Direct3D11, Configuration: Debug Win32 ------
2>------ Build started: Project: RenderSystem_Direct3D9, Configuration: Debug Win32 ------
2>  compile_RenderSystem_Direct3D9_0.cpp
1>  compile_RenderSystem_Direct3D11_0.cpp
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(12): warning C4005: 'DXGI_STATUS_OCCLUDED' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50092) : see previous definition of 'DXGI_STATUS_OCCLUDED'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(13): warning C4005: 'DXGI_STATUS_CLIPPED' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50101) : see previous definition of 'DXGI_STATUS_CLIPPED'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(14): warning C4005: 'DXGI_STATUS_NO_REDIRECTION' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50110) : see previous definition of 'DXGI_STATUS_NO_REDIRECTION'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(15): warning C4005: 'DXGI_STATUS_NO_DESKTOP_ACCESS' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50119) : see previous definition of 'DXGI_STATUS_NO_DESKTOP_ACCESS'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(16): warning C4005: 'DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50128) : see previous definition of 'DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(17): warning C4005: 'DXGI_STATUS_MODE_CHANGED' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50137) : see previous definition of 'DXGI_STATUS_MODE_CHANGED'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(18): warning C4005: 'DXGI_STATUS_MODE_CHANGE_IN_PROGRESS' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50146) : see previous definition of 'DXGI_STATUS_MODE_CHANGE_IN_PROGRESS'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(21): warning C4005: 'DXGI_ERROR_INVALID_CALL' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50161) : see previous definition of 'DXGI_ERROR_INVALID_CALL'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(22): warning C4005: 'DXGI_ERROR_NOT_FOUND' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50170) : see previous definition of 'DXGI_ERROR_NOT_FOUND'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(23): warning C4005: 'DXGI_ERROR_MORE_DATA' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50179) : see previous definition of 'DXGI_ERROR_MORE_DATA'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(24): warning C4005: 'DXGI_ERROR_UNSUPPORTED' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50188) : see previous definition of 'DXGI_ERROR_UNSUPPORTED'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(25): warning C4005: 'DXGI_ERROR_DEVICE_REMOVED' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50197) : see previous definition of 'DXGI_ERROR_DEVICE_REMOVED'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(26): warning C4005: 'DXGI_ERROR_DEVICE_HUNG' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50206) : see previous definition of 'DXGI_ERROR_DEVICE_HUNG'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(27): warning C4005: 'DXGI_ERROR_DEVICE_RESET' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50216) : see previous definition of 'DXGI_ERROR_DEVICE_RESET'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(28): warning C4005: 'DXGI_ERROR_WAS_STILL_DRAWING' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50225) : see previous definition of 'DXGI_ERROR_WAS_STILL_DRAWING'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(29): warning C4005: 'DXGI_ERROR_FRAME_STATISTICS_DISJOINT' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50235) : see previous definition of 'DXGI_ERROR_FRAME_STATISTICS_DISJOINT'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(30): warning C4005: 'DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50244) : see previous definition of 'DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(31): warning C4005: 'DXGI_ERROR_DRIVER_INTERNAL_ERROR' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50254) : see previous definition of 'DXGI_ERROR_DRIVER_INTERNAL_ERROR'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(32): warning C4005: 'DXGI_ERROR_NONEXCLUSIVE' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50263) : see previous definition of 'DXGI_ERROR_NONEXCLUSIVE'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(33): warning C4005: 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50272) : see previous definition of 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(34): warning C4005: 'DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50282) : see previous definition of 'DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(35): warning C4005: 'DXGI_ERROR_REMOTE_OUTOFMEMORY' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50291) : see previous definition of 'DXGI_ERROR_REMOTE_OUTOFMEMORY'
1>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3d11.h(917): warning C4005: 'D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50469) : see previous definition of 'D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS'
1>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3d11.h(918): warning C4005: 'D3D11_ERROR_FILE_NOT_FOUND' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50478) : see previous definition of 'D3D11_ERROR_FILE_NOT_FOUND'
1>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3d11.h(919): warning C4005: 'D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50488) : see previous definition of 'D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS'
1>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3d11.h(920): warning C4005: 'D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50497) : see previous definition of 'D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d3d10.h(608): warning C4005: 'D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50445) : see previous definition of 'D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d3d10.h(609): warning C4005: 'D3D10_ERROR_FILE_NOT_FOUND' : macro redefinition
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h(50454) : see previous definition of 'D3D10_ERROR_FILE_NOT_FOUND'
1>C:/Users/Kevin/Desktop/OgreSDK/Ogre/RenderSystems/Direct3D11/src/OgreD3D11Driver.cpp(68): error C2065: 'DXGI_ADAPTER_FLAG_SOFTWARE' : undeclared identifier
1>C:/Users/Kevin/Desktop/OgreSDK/Ogre/RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp(260): error C2065: 'D3D_FEATURE_LEVEL_11_1' : undeclared identifier
1>C:/Users/Kevin/Desktop/OgreSDK/Ogre/RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp(575): error C2065: 'D3D_FEATURE_LEVEL_11_1' : undeclared identifier
1>C:/Users/Kevin/Desktop/OgreSDK/Ogre/RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp(3907): error C2065: 'D3D_FEATURE_LEVEL_11_1' : undeclared identifier
1>C:/Users/Kevin/Desktop/OgreSDK/Ogre/RenderSystems/Direct3D11/src/OgreD3D11RenderWindow.cpp(968): error C2065: 'DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL' : undeclared identifier
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(237): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(237): error C2143: syntax error : missing ';' before '*'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(356): error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(356): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(372): error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(372): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(423): error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(423): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(432): error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(432): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(702): error C2061: syntax error : identifier 'LPWAVEFORMATEX'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(713): error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(788): error C2061: syntax error : identifier 'LPWAVEFORMATEX'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(799): error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(1061): error C2061: syntax error : identifier 'LPWAVEFORMATEX'
2>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dsound.h(1120): error C2061: syntax error : identifier 'LPWAVEFORMATEX'
3>------ Build started: Project: Sample_HLMS, Configuration: Debug Win32 ------
3>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\RenderSystem_Direct3D9_d.lib'
4>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
4>Project not selected to build for this solution configuration 
5>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
5>Project not selected to build for this solution configuration 
========== Build: 0 succeeded, 3 failed, 69 up-to-date, 2 skipped ==========
Any ideas/help is appreciated. Thanks!
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Error - cannot open file 'RenderSystem_Direct3D9_d.lib'

Post by spacegaier »

That "RenderSystem_Direct3D9_d.lib" cannot be found error when building the HLMS sample is only a symptom not the cause. The problem lies within trying to build the render system due to some unfound identifiers, e.g. "D3D_FEATURE_LEVEL_11_1" although I cannot explain that right now. This value is only available in certain conditions, and then should be usable (either not known and not used or know and used).

What version and commit of Ogre are you using? What OS are you on?
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Post Reply