Building Github - Visual Studio 2017 Enterprise

#1
I'm unable to build it, using waf and here's the code error, it doesn't look for vs 2017

Code: Select all

[WARNING] No default compiler found, enabling compiler auto-detection [WAF] Executing 'configure' Traceback (most recent call last): File "dl_sdks_exe.py", line 15, in <module> File "download_sdks.py", line 43, in main u = request.urlopen(url) File "urllib\request.py", line 161, in urlopen File "urllib\request.py", line 470, in open File "urllib\request.py", line 580, in http_response File "urllib\request.py", line 508, in error File "urllib\request.py", line 442, in _call_chain File "urllib\request.py", line 588, in http_error_default urllib.error.HTTPError: HTTP Error 404: Not Found Failed to execute script dl_sdks_exe [WARNING] - Compiler settings not found. (compile_settings_durango) [WARNING] - Compiler settings not found. (compile_settings_orbis) [INFO] Configure "win_x86 - [debug, profile, performance, release]" [ERROR] No MSVC compiler installed on this machine Please Press Any Key to Continue
CMake executable file doesn't have 2017 either
it shows https://www.cryengine.com/roadmap that it is supported since july
so how to compile it

If i edit cmake_create_win64_solution.bat i get the following error

Code: Select all

-- BUILD_CPU_ARCHITECTURE = x64 -- BUILD_CPU_ARCHITECTURE = x64 -- CMAKE_SYSTEM_NAME = Windows -- CMAKE_GENERATOR = Visual Studio 15 2017 Win64 -- CMAKE_CONFIGURATION_TYPES = Debug;Profile;Release -- BUILD_PLATFORM = Win64 -- OPTION_PROFILE = ON -- OPTION_PCH = ON -- MSVC = 1 -- CRYENGINE_DIR = D:/CryEngine -- UNITY BUILD Enabled -- Use Dynamic Linking (.dll/.so) -- OUTPUT_DIRECTORY=D:/CryEngine/bin/win_x64 -- Vulkan SDK not found in D:/CryEngine/Code/SDKs - disabling Vulkan renderer. -- Oculus SDK not found in D:/CryEngine/Code/SDKs - disabling Oculus based HRTF support. -- Enabling VR rendering. -- NVAPI SDK v.386 not found, excluding from the build. -- AMD AGS SDK not found, excluding from the build. -- copy_binary_files_to_target start Win64 -- Deploying C:/Program Files (x86)/Windows Kits/10/Debuggers/x64/srcsrv/dbghelp.dll -- Deploying C:/Program Files (x86)/Windows Kits/10/Debuggers/x64/srcsrv/dbgcore.dll -- Deploying C:/Program Files (x86)/Windows Kits/10/bin/x64/d3dcompiler_47.dll -- copy_binary_files_to_target end 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 files: SPEEX (ADVANCED) linked by target "CryNetwork" in directory D:/CryEngine/Code/CryEngine/CryNetwork linked by target "CryLobby" in directory D:/CryEngine/Code/CryPlugins/CryLobby/Module openvr_api linked by target "CryOpenVR" in directory D:/CryEngine/Code/CryPlugins/VR/CryOpenVR/Module osvrClientKit linked by target "CryOSVR" in directory D:/CryEngine/Code/CryPlugins/VR/CryOSVR/Module osvrRenderManager linked by target "CryOSVR" in directory D:/CryEngine/Code/CryPlugins/VR/CryOSVR/Module -- Configuring incomplete, errors occurred! See also "D:/CryEngine/solutions_cmake/win64/CMakeFiles/CMakeOutput.log". See also "D:/CryEngine/solutions_cmake/win64/CMakeFiles/CMakeError.log". Press any key to continue . . .

Code: Select all

Determining if the function stpcpy exists failed with the following output: Change Dir: D:/CryEngine/solutions_cmake/win64/CMakeFiles/CMakeTmp Run Build Command:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_85fd9.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0" Microsoft (R) Build Engine version 15.1.1012.6693 Copyright (C) Microsoft Corporation. All rights reserved. Build started 25/07/2017 04:52:10 AM. Project "D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\cmTC_85fd9.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "cmTC_85fd9.dir\Debug\". Creating directory "D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\Debug\". Creating directory "cmTC_85fd9.dir\Debug\cmTC_85fd9.tlog\". InitializeBuildStatus: Creating "cmTC_85fd9.dir\Debug\cmTC_85fd9.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D CHECK_FUNCTION_EXISTS=stpcpy /D DEBUG /D _DEBUG /D _WIN32 /D _WIN64 /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_85fd9.dir\Debug\\" /Fd"cmTC_85fd9.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /Zo "D:\CryEngine\Tools\CMake\Win32\share\cmake-3.8\Modules\CheckFunctionExists.c" Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D CHECK_FUNCTION_EXISTS=stpcpy /D DEBUG /D _DEBUG /D _WIN32 /D _WIN64 /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_85fd9.dir\Debug\\" /Fd"cmTC_85fd9.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /Zo "D:\CryEngine\Tools\CMake\Win32\share\cmake-3.8\Modules\CheckFunctionExists.c" CheckFunctionExists.c Link: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\Debug\cmTC_85fd9.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"D:/CryEngine/solutions_cmake/win64/CMakeFiles/CMakeTmp/Debug/cmTC_85fd9.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/CryEngine/solutions_cmake/win64/CMakeFiles/CMakeTmp/Debug/cmTC_85fd9.lib" /MACHINE:X64 /machine:x64 cmTC_85fd9.dir\Debug\CheckFunctionExists.obj CheckFunctionExists.obj : error LNK2019: unresolved external symbol stpcpy referenced in function main [D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\cmTC_85fd9.vcxproj] D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\Debug\cmTC_85fd9.exe : fatal error LNK1120: 1 unresolved externals [D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\cmTC_85fd9.vcxproj] Done Building Project "D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\cmTC_85fd9.vcxproj" (default targets) -- FAILED. Build FAILED. "D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\cmTC_85fd9.vcxproj" (default target) (1) -> (Link target) -> CheckFunctionExists.obj : error LNK2019: unresolved external symbol stpcpy referenced in function main [D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\cmTC_85fd9.vcxproj] D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\Debug\cmTC_85fd9.exe : fatal error LNK1120: 1 unresolved externals [D:\CryEngine\solutions_cmake\win64\CMakeFiles\CMakeTmp\cmTC_85fd9.vcxproj] 0 Warning(s) 2 Error(s) Time Elapsed 00:00:00.88
Last edited by fido9dido on Tue Jul 25, 2017 10:32 am, edited 3 times in total.

Re: Building Github - Visual Studio 2017 Enterprise

#5
Which repository are you trying to build?
The one from github
Your log output is missing a few lines from the top where it states which OS, IDE, configurations and so on. Please include that as well.
Which CMake version are you using?
I updated my log in the first post
Does the CMake GUI offer VS2017 as an option?
cry_cmake support 2015 only. as for cmake gui it doesn't ask me to specify generator as shown in your picture
here's the error in cmake-gui

Code: Select all

BUILD_CPU_ARCHITECTURE = x64 BUILD_CPU_ARCHITECTURE = x64 CMAKE_SYSTEM_NAME = Windows CMAKE_GENERATOR = Visual Studio 15 2017 Win64 CMAKE_CONFIGURATION_TYPES = Debug;Profile;Release BUILD_PLATFORM = Win64 OPTION_PROFILE = ON OPTION_PCH = ON MSVC = 1 CRYENGINE_DIR = D:/CryEngine UNITY BUILD Enabled Use Dynamic Linking (.dll/.so) OUTPUT_DIRECTORY=D:/CryEngine/bin/win_x64 Entering D:/CryEngine/Tools/CMake Returning to D:/CryEngine Vulkan SDK not found in D:/CryEngine/Code/SDKs - disabling Vulkan renderer. Oculus SDK not found in D:/CryEngine/Code/SDKs - disabling Oculus based HRTF support. Entering D:/CryEngine/Code/CryEngine/CrySystem Entering D:/CryEngine/Code/Libs/crashrpt Returning to D:/CryEngine/Code/CryEngine/CrySystem Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryCommon Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/RenderDll/XRenderD3D9 Enabling VR rendering. NVAPI SDK v.386 not found, excluding from the build. AMD AGS SDK not found, excluding from the build. Returning to D:/CryEngine Entering D:/CryEngine/Engine/Shaders Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/Cry3DEngine Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryAction Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryAISystem Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryAnimation Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryAudioSystem/Common Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryAudioSystem Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryDynamicResponseSystem Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryEntitySystem Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryFont Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryInput Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryMovie Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryNetwork Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CrySchematyc Entering D:/CryEngine/Code/CryEngine/CrySchematyc/Core/Impl Returning to D:/CryEngine/Code/CryEngine/CrySchematyc Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryScriptSystem Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryFlowGraph Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryLiveCreate Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryPhysics Returning to D:/CryEngine Entering D:/CryEngine/Code/CryEngine/CryAudioSystem/implementations/CryAudioImplSDLMixer Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/flac Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/libmikmod Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/libmodplug Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/libogg Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/libvorbis Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/SDL_mixer Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/smpeg Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/bigdigits Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/curl Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/freetype Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/lua Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/zlib Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/expat Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/png16 Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/tomcrypt Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/md5 Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/lz4 Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/jsmn Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/lzma Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/lzss Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/tiff Returning to D:/CryEngine Entering D:/CryEngine/Code/GameSDK Entering D:/CryEngine/Code/GameSDK/GameDll Entering D:/CryEngine/Code/CryPlugins/CryLobby Entering D:/CryEngine/Code/CryPlugins/CryLobby/Module Returning to D:/CryEngine/Code/CryPlugins/CryLobby Returning to D:/CryEngine/Code/GameSDK/GameDll Entering D:/CryEngine/Code/CryPlugins/CryPerceptionSystem/Module Returning to D:/CryEngine/Code/GameSDK/GameDll Returning to D:/CryEngine/Code/GameSDK Returning to D:/CryEngine Entering D:/CryEngine/Code/GameZero Returning to D:/CryEngine Entering D:/CryEngine/Code/CryExtensions Entering D:/CryEngine/Code/CryExtensions/CryLink Returning to D:/CryEngine/Code/CryExtensions Returning to D:/CryEngine Entering D:/CryEngine/Code/CryPlugins/CryDefaultEntities/Module Returning to D:/CryEngine Entering D:/CryEngine/Code/CryPlugins/CrySensorSystem/Module Returning to D:/CryEngine Entering D:/CryEngine/Code/CryPlugins/CryUserAnalytics/Module Returning to D:/CryEngine Entering D:/CryEngine/Code/Libs/oculus Returning to D:/CryEngine Entering D:/CryEngine/Code/CryPlugins/VR/CryOculusVR/Module Returning to D:/CryEngine Entering D:/CryEngine/Code/CryPlugins/VR/CryOpenVR/Module Returning to D:/CryEngine Entering D:/CryEngine/Code/CryPlugins/VR/CryOSVR/Module Returning to D:/CryEngine Entering D:/CryEngine/Code/CryPlugins/CryUQS Entering D:/CryEngine/Code/CryPlugins/CryUQS/Client Returning to D:/CryEngine/Code/CryPlugins/CryUQS Entering D:/CryEngine/Code/CryPlugins/CryUQS/Core Returning to D:/CryEngine/Code/CryPlugins/CryUQS Entering D:/CryEngine/Code/CryPlugins/CryUQS/DataSource_XML Returning to D:/CryEngine/Code/CryPlugins/CryUQS Entering D:/CryEngine/Code/CryPlugins/CryUQS/Interfaces Returning to D:/CryEngine/Code/CryPlugins/CryUQS Entering D:/CryEngine/Code/CryPlugins/CryUQS/Shared Returning to D:/CryEngine/Code/CryPlugins/CryUQS Entering D:/CryEngine/Code/CryPlugins/CryUQS/StdLib Returning to D:/CryEngine/Code/CryPlugins/CryUQS Returning to D:/CryEngine Entering D:/CryEngine/Code/Launcher/DedicatedLauncher Returning to D:/CryEngine Entering D:/CryEngine/Code/Launcher/WindowsLauncher Returning to D:/CryEngine copy_binary_files_to_target start Win64 Deploying C:/Program Files (x86)/Windows Kits/10/Debuggers/x64/srcsrv/dbghelp.dll Deploying C:/Program Files (x86)/Windows Kits/10/Debuggers/x64/srcsrv/dbgcore.dll Deploying C:/Program Files (x86)/Windows Kits/10/bin/x64/d3dcompiler_47.dll copy_binary_files_to_target end 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 files: SPEEX (ADVANCED) linked by target "CryNetwork" in directory D:/CryEngine/Code/CryEngine/CryNetwork linked by target "CryLobby" in directory D:/CryEngine/Code/CryPlugins/CryLobby/Module openvr_api linked by target "CryOpenVR" in directory D:/CryEngine/Code/CryPlugins/VR/CryOpenVR/Module osvrClientKit linked by target "CryOSVR" in directory D:/CryEngine/Code/CryPlugins/VR/CryOSVR/Module osvrRenderManager linked by target "CryOSVR" in directory D:/CryEngine/Code/CryPlugins/VR/CryOSVR/Module Configuring incomplete, errors occurred! See also "D:/CryEngine/solutions_cmake/win64/CMakeFiles/CMakeOutput.log". See also "D:/CryEngine/solutions_cmake/win64/CMakeFiles/CMakeError.log".
As said by gameinstitutes here and in github, there's a way to bypass that by
Open \Tools\CMake\cmake_create_win64_solution.bat with a text edtior, then modified "Visual Studio 14 2015 Win64" to "Visual Studio 15 2017 Win64".

Double click cmake_create_win64_solution.bat.

this is how i tried to run it.
the problem it seems with sdk. these files weren't downloaded and the sdk folder doesn't even exist in code folder


UPDATE:
it seems that i needed to download the sdk from the previous release and create sdk folder for it

Code: Select all

BUILD_CPU_ARCHITECTURE = x64 BUILD_CPU_ARCHITECTURE = x64 CMAKE_SYSTEM_NAME = Windows CMAKE_GENERATOR = Visual Studio 15 2017 Win64 CMAKE_CONFIGURATION_TYPES = Debug;Profile;Release BUILD_PLATFORM = Win64 OPTION_PROFILE = ON OPTION_PCH = ON MSVC = 1 CRYENGINE_DIR = D:/CryEngine SourceCode UNITY BUILD Enabled Use Dynamic Linking (.dll/.so) OUTPUT_DIRECTORY=D:/CryEngine SourceCode/bin/win_x64 Vulkan SDK not found in D:/CryEngine SourceCode/Code/SDKs - disabling Vulkan renderer. Oculus SDK not found in D:/CryEngine SourceCode/Code/SDKs - disabling Oculus based HRTF support. Enabling VR rendering. NVAPI SDK v.386 not found, excluding from the build. AMD AGS SDK not found, excluding from the build. copy_binary_files_to_target start Win64 Deploying D:/CryEngine SourceCode/Code/SDKs/SDL2/lib/win_x64/SDL2.dll Deploying C:/Program Files (x86)/Windows Kits/10/Debuggers/x64/srcsrv/dbghelp.dll Deploying C:/Program Files (x86)/Windows Kits/10/Debuggers/x64/srcsrv/dbgcore.dll Deploying C:/Program Files (x86)/Windows Kits/10/bin/x64/d3dcompiler_47.dll Deploying D:/CryEngine SourceCode/Code/SDKs/Brofiler/ProfilerCore64.dll Deploying D:/CryEngine SourceCode/Code/SDKs/CrashRpt/1403/bin/x64/crashrpt_lang.ini Deploying D:/CryEngine SourceCode/Code/SDKs/CrashRpt/1403/bin/x64/CrashSender1403.exe Deploying D:/CryEngine SourceCode/Code/SDKs/OpenVR/bin/win64/openvr_api.dll copy_binary_files_to_target end Configuring done Generating done
Last edited by fido9dido on Tue Jul 25, 2017 2:00 pm, edited 1 time in total.

Who is online

Users browsing this forum: No registered users and 1 guest