Não é possível instalar o Cryengine 5 no Ubuntu 16.04

0

Estou tentando instalar o cryengine 5 no Ubuntu 16.04. Estou usando o código-fonte e o sdk fornecidos em seu repositório do github . Este é o comando de compilação que estou usando:

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

Tudo o que fiz antes disso foi copiar o conteúdo do GameSDK para a pasta root/Code/SDKs do CryEngine.

Este é o erro que estou recebendo:

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'

Além disso, estou recebendo esses avisos e erros:

[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.

Eu não entendo porque alguns deles estão chegando e como removê-los. Eu tenho o g ++ instalado, então o primeiro aviso não deveria estar lá. Para sdl_mixer , instalei libsdl2-dev e libsdl2-mixer-dev , mas ainda falta binários. Eu baixei o GameSDK inteiro do repositório, mas ele ainda diz que algo está faltando. Como resolvo esses erros e compilo e executo o Cryengine?

    
por kneelb4darth 05.09.2016 / 13:10

1 resposta

0

É simples! Depois de muita pesquisa na internet eu encontrei nada, mas a resposta é no site cryengine mas eles usam (opcional). Apenas abra o terminal e digite

sudo apt-get install clang

e depois coloque

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

e não

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

Espero ter ajudado você e se o meu inglês for ruim, é apenas inglês do 7º ano

    
por Kravata XD 23.04.2017 / 20:24