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

Linking error: LNK1181: cannot open input file 'DirectXTex.lib #1

Open
tincivilfx opened this issue May 7, 2020 · 7 comments
Open

Comments

@tincivilfx
Copy link

1>------ Rebuild All started: Project: DirectXTex, Configuration: Release x64 ------
1>DirectXTexUtil.cpp
1>BC.cpp
1>BC4BC5.cpp
1>BC6HBC7.cpp
1>BCDirectCompute.cpp
1>DirectXTexCompress.cpp
1>DirectXTexCompressGPU.cpp
1>DirectXTexConvert.cpp
1>DirectXTexD3D11.cpp
1>DirectXTexD3D12.cpp
1>DirectXTexDDS.cpp
1>DirectXTexFlipRotate.cpp
1>DirectXTexHDR.cpp
1>DirectXTexImage.cpp
1>DirectXTexMipMaps.cpp
1>DirectXTexMisc.cpp
1>DirectXTexNormalMaps.cpp
1>DirectXTexPMAlpha.cpp
1>DirectXTexResize.cpp
1>DirectXTexTGA.cpp
1>DirectXTexWIC.cpp
1>Generating Code...
1>DirectXTex_Desktop_2019_Win10.vcxproj -> ...\VideoRecorder\DirectXTex\DirectXTex\Bin\Desktop_2019_Win10\x64\Release\DirectXTex.lib
2>------ Rebuild All started: Project: VideoRecorder, Configuration: Release x64 ------
2>VideoRecorder.cpp
2>...\VideoRecorder\VideoRecorder.cpp(79,4): warning C4996: 'av_register_all': was declared deprecated
2>...\VideoRecorder\VideoRecorder.cpp(80,4): warning C4996: 'avcodec_register_all': was declared deprecated
2>...\VideoRecorder\VideoRecorder.cpp(468,44): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
2>...\VideoRecorder\VideoRecorder.cpp(468,44): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
2>...\VideoRecorder\VideoRecorder.cpp(595,67): warning C4996: 'std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\codecvt(35,92): message : see declaration of 'std::codecvt_utf8'
2>...\VideoRecorder\VideoRecorder.cpp(595,46): warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\xlocbuf(296,55): message : see declaration of 'std::wstring_convert'
2>...\VideoRecorder\VideoRecorder.cpp(595,91): warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>::to_bytes': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
2>LINK : fatal error LNK1181: cannot open input file 'DirectXTex.lib'
2>Done building project "VideoRecorder.vcxproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

@tincivilfx
Copy link
Author

Need to fix linker path reference:
Capture

@sahilsharma-dot
Copy link

fatal error LNK1181: cannot open input file 'avcodec.lib'

@sahilsharma-dot
Copy link

their is no avcodec.lib in C:/ffmpeg/
their is exist avcode.h
does it requires to create avcodec.lib

@ash3D
Copy link
Owner

ash3D commented Oct 14, 2020

@sahilsharma-dot
'avcodec.lib' should be in 'lib' directory, appropriate variant of ffmpeg build with development files contains it.
Also do not forget to specify path to ffmpeg in 'FFMPEG_ROOT' macro in property pages.

@sahilsharma-dot
Copy link

sahilsharma-dot commented Oct 15, 2020 via email

@ash3D
Copy link
Owner

ash3D commented Oct 17, 2020

@sahilsharma-dot
Do you use this lib diretly or build it for Unreal Engine plugin?
This lib just takes bitmap and encodes it to video stream. It's completely up to you for what pixels you are feeding if you use it directly.
If you are interested in capturing Unreal Engine's UI, UEVideoRecorder has trick to support UI capturing if 'CaptureGUI' setting enabled. It worked well with older UE4 version on Windows DX11. I didn't tested it with recent Unreal Engine versions and/or other UI subsystems. If they behave differenly other handling can potentially be required for UI.

@sahilsharma-dot
Copy link

sahilsharma-dot commented Oct 17, 2020 via email

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