우분투 16.04에서 Cryengine 5를 설치할 수 없습니다

우분투 16.04에서 Cryengine 5를 설치할 수 없습니다

우분투 16.04에 크라이엔진 5를 설치하려고 합니다. 나는 제공되는 소스 코드와 SDK를 사용하고 있습니다.github 레포. 이것은 내가 사용하는 컴파일 명령입니다.

./cry_waf.sh build_linux_x64_gcc_profile --project-spec=gamesdk

이전에 제가 한 일은 GameSDK 콘텐츠를 CryEngine root/Code/SDKs폴더에 복사하는 것뿐입니다.

내가 겪고 있는 오류는 다음과 같습니다.

In file included from /home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/uber_files/CryAction/CryAction_main_uber_3.cpp:5:0:
/home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/uber_files/CryAction/../../../Code/CryEngine/CryAction/SimpleHttpServer/SimpleHttpServerListener.cpp: In member function ‘virtual void CSimpleHttpServerListener::OnGetRequest(int, string)’:
/home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/uber_files/CryAction/../../../Code/CryEngine/CryAction/SimpleHttpServer/SimpleHttpServerListener.cpp:251:52: error: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Werror=unused-result]
     fread((char*)page.data(), 1, page.size(), file);
                                                    ^
cc1plus: all warnings being treated as errors
^[[1;3C
In file included from /home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryCommon/CryCore/Assert/CryAssert_impl.h:23:0,
                 from /home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryCommon/CryCore/Platform/platform_impl.inl:144,
                 from /home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/uber_files/CryAction/../../../Code/CryEngine/CryAction/CryAction.cpp:28,
                 from /home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/uber_files/CryAction/CryAction_main_uber_1.cpp:14:
/home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryCommon/CryAssert/CryAssert_Linux.h: In function ‘bool CryAssert(const char*, const char*, unsigned int, bool*)’:
/home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryCommon/CryAssert/CryAssert_Linux.h:103:37: error: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Werror=unused-result]
   fscanf(assert_file, "%d", &result);
                                     ^
cc1plus: all warnings being treated as errors
Build failed
 -> task in 'cxx (linux_x64_gcc|profile)' failed (exit status 1): 
    {task 140323113462352: cxx CryAction_main_uber_3.cpp -> CryAction_main_uber_3.cpp.1.o}
'g++ -m64 -Wall -Werror -ffast-math -fvisibility=hidden -Wno-char-subscripts -Wno-unknown-pragmas -Wno-unused-variable -Wno-unused-value -Wno-parentheses -Wno-switch -Wno-unused-function -Wno-multichar -Wno-format-security -Wno-empty-body -Wno-comment -Wno-char-subscripts -Wno-sign-compare -Wno-narrowing -Wno-write-strings -Wno-format -Wno-strict-aliasing -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-strict-overflow -Wno-uninitialized -Wno-unused-local-typedefs -Wno-deprecated -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -std=c++11 -Wno-invalid-offsetof -Wno-reorder -Wno-conversion-null -Wno-overloaded-virtual -O2 -msse2 -MD -g2 -gdwarf-2 -fpic -fpic -I/home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/linux_x64_gcc_profile/_shared/Code/CryEngine/CryAction -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryAction -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/SDKs/boost -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/SDKs/yasli -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/Libs/yasli -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryCommon -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/SDKs -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryAction -DCODE_BASE_FOLDER="/home/cortana/Desktop/CRYENGINE-5.1.1/Code/" -D_PROFILE -DPROFILE -DLINUX -D__linux__ -DLINUX64 -DSWIG_CSHARP_NO_IMCLASS_STATIC_CONSTRUCTOR -D_MT -D_DLL -DCRY_FEATURE_SCALEFORM_HELPER -D_USRDLL -DEXE_VERSION_INFO_0=1 -DEXE_VERSION_INFO_1=0 -DEXE_VERSION_INFO_2=0 -DEXE_VERSION_INFO_3=0 /home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/uber_files/CryAction/CryAction_main_uber_3.cpp -c -o /home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/linux_x64_gcc_profile/_shared/BinTemp/uber_files/CryAction/CryAction_main_uber_3.cpp.1.o'
 -> task in 'cxx (linux_x64_gcc|profile)' failed (exit status 1): 
    {task 140323113462288: cxx CryAction_main_uber_1.cpp -> CryAction_main_uber_1.cpp.1.o}
'g++ -m64 -Wall -Werror -ffast-math -fvisibility=hidden -Wno-char-subscripts -Wno-unknown-pragmas -Wno-unused-variable -Wno-unused-value -Wno-parentheses -Wno-switch -Wno-unused-function -Wno-multichar -Wno-format-security -Wno-empty-body -Wno-comment -Wno-char-subscripts -Wno-sign-compare -Wno-narrowing -Wno-write-strings -Wno-format -Wno-strict-aliasing -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-strict-overflow -Wno-uninitialized -Wno-unused-local-typedefs -Wno-deprecated -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -std=c++11 -Wno-invalid-offsetof -Wno-reorder -Wno-conversion-null -Wno-overloaded-virtual -O2 -msse2 -MD -g2 -gdwarf-2 -fpic -fpic -I/home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/linux_x64_gcc_profile/_shared/Code/CryEngine/CryAction -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryAction -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/SDKs/boost -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/SDKs/yasli -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/Libs/yasli -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryCommon -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/SDKs -I/home/cortana/Desktop/CRYENGINE-5.1.1/Code/CryEngine/CryAction -DCODE_BASE_FOLDER="/home/cortana/Desktop/CRYENGINE-5.1.1/Code/" -D_PROFILE -DPROFILE -DLINUX -D__linux__ -DLINUX64 -DSWIG_CSHARP_NO_IMCLASS_STATIC_CONSTRUCTOR -D_MT -D_DLL -DCRY_FEATURE_SCALEFORM_HELPER -D_USRDLL -DEXE_VERSION_INFO_0=1 -DEXE_VERSION_INFO_1=0 -DEXE_VERSION_INFO_2=0 -DEXE_VERSION_INFO_3=0 /home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/uber_files/CryAction/CryAction_main_uber_1.cpp -c -o /home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/linux_x64_gcc_profile/_shared/BinTemp/uber_files/CryAction/CryAction_main_uber_1.cpp.1.o'

또한 다음과 같은 경고와 오류가 나타납니다.

[WARNING] No default compiler found, enabling compiler auto-detection
[WAF] Executing 'build_linux_x64_gcc_profile' in '/home/cortana/Desktop/CRYENGINE-5.1.1/BinTemp/linux_x64_gcc_profile/_shared'
[WARNING] /home/cortana/Desktop/CRYENGINE-5.1.1/Code/SDKs/Scaleform not found, this feature is excluded from this build.
[WARNING] NVAPI SDK not found, excluding from the build.
[WARNING] AMD AGS SDK not found, excluding from the build.
MSVC 14.0 is not being used - CryRenderD3D12 cannot be built.
[WARNING] SDL_Mixer binaries missing
[ERROR] Attempting to build CryAudioImplFmod, but could not find the Fmod SDK at Code/SDKs/Audio/fmod, skipping.
[ERROR] Attempting to build CryAudioImplWwise, but could not find the Wwise SDK at Code/SDKs/Audio/AK, skipping.

이 중 몇 가지가 왜 나타나는지, 제거하는 방법을 이해할 수 없습니다. 나는 g++를 설치했기 때문에 첫 번째 경고가 나타나지 않아야 합니다. 에 대해 sdl_mixer설치했는데 libsdl2-dev여전히 libsdl2-mixer-dev바이너리가 누락되었다고 표시됩니다. 저장소에서 GameSDK 전체를 다운로드했지만 여전히 뭔가 빠졌다는 메시지가 나타납니다. 이러한 오류를 해결하고 Cryengine을 컴파일하고 실행하려면 어떻게 해야 합니까?

답변1

간단 해! 인터넷에서 많은 검색을 한 후에 나는 크라이엔진 사이트에 있는 답변 외에는 아무것도 찾지 못했지만 그들은 (선택 사항)을 사용했습니다. 터미널을 열고 입력하십시오.

sudo apt-get 설치 clang

그리고 넣어

./cry_waf.sh build_linux_x64_clang_profile --project-spec=gamesdk

그리고는 아니다

./cry_waf.sh build_linux_x64_gcc_profile --project-spec=gamesdk

제가 도움이 되었기를 바랍니다. 제 영어 실력이 나쁘다면 그냥 7학년 영어입니다.

관련 정보