LNK1104: cannot open file 'SDL2.lib'

984 views
Skip to first unread message

Another

unread,
Apr 28, 2017, 12:56:17 PM4/28/17
to recastnavigation
Hello folks,

I tried to build the RecastDemo but I get the following error: LNK1104: cannot open file 'SDL2.lib'

I followed the instructions of the GitHub Page (README.md) so placed premake5.exe in the RecastDemo folder and the SDL2.dll in the RecastDemo\Contrib\SDL\lib\x86 folder.
Running ""premake5" vs2015" in CMD in RecastDemo folder worked but opening and building the recastnavigation.sln with Visual Studio 2015 (Enterprise/Community) prints the following errors:

Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\sampleinterfaces.cpp 10
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc DetourCrowd c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc Recast c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc DetourTileCache c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc Detour c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc DetourCrowd c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc Detour c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc DetourCrowd c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc Recast c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4244 '=': conversion from 'int' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 185
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 294
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 352
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 360
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 365
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 366
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 408
Warning C4244 '=': conversion from 'int' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 185
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 294
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 312
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 317
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 320
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 330
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 332
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 341
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 343
Warning C4244 '=': conversion from 'flzuint32' to 'flzuint8', possible loss of data RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\contrib\fastlz\fastlz.c 408
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\main.cpp 23
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\imguirendergl.cpp 23
Warning C4530 C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\xlocale 341
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\testcase.cpp 27
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\sample_tilemesh.cpp 23
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\sample_tempobstacles.cpp 25
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\sample_solomesh.cpp 23
Warning C4530 C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\xlocale 341
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\sample_debug.cpp 30
Warning C4530 C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\xlocale 341
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\sample.cpp 31
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\offmeshconnectiontool.cpp 24
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\navmeshtestertool.cpp 24
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\navmeshprunetool.cpp 25
Warning C4530 C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\xlocale 341
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception 359
Warning C4530 C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\xlocale 341
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\limits 210
Error LNK1104 cannot open file 'SDL2.lib' Tests C:\Users\Admin\Desktop\recastnavigation-release-2.0\RecastDemo\Build\vs2015\LINK 1
Warning C4530 C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\xlocale 341
Warning C4577 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc RecastDemo c:\program files (x86)\microsoft visual studio 14.0\vc\include\limits 210
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\crowdtool.cpp 24
Error C1083 Cannot open include file: 'SDL.h': No such file or directory RecastDemo c:\users\admin\desktop\recastnavigation-release-2.0\recastdemo\source\convexvolumetool.cpp 24

I'm using Windows 10 with Visual Studio 2015 Community (also tried Visual Studio 2015 Enterprise on Windows 10 at work) with the SDL2.dll from SDL2-2.0.5-win32-x64.zip.
Any suggestion appreciated.

Kind regards,
Another

Ben Hymers

unread,
May 11, 2017, 6:43:59 AM5/11/17
to recastnavigation
Reply all
Reply to author
Forward
0 new messages