Del

If this section is not appropriate for this question, please tell the correct section. I’m trying to compile FiveM source code, but I get compile errors. I am using VS2017.

File preparation:

  1. I have cloned the repository “https://github.com/citizenfx/fivem”.
  2. I downloaded Boost 1.63.0 via the link “https://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.7z/download” and put it in C:\libraries\boost_1_63_0".
  3. I downloaded the “Modified CEF” link “https://runtime.fivem.net/build/cef/cef_binary_73.0.0-cef-patchset.1936+ga086e57+chromium-73.0.3683.75_windows64_minimal.zip” and put it in “C:\Repo\fivem\vendor\cef”
  4. I downloaded the installer “Python 2.7.16” from the link “https://www.python.org/ftp/python/2.7.16/python-2.7.16.amd64.msi” and installed it in “C:\Python27”(in the installer settings, a check mark was selected for the item" compilation into binary code ").
  5. I downloaded “Premake 5.0” from the link “https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-windows.zip” and put in “C:\Repo\fivem\code\tools\ci”.
  6. I downloaded “MSYS2” under the link “http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20180531.exe” and installed it in “C:\msys64”

Setting up a project for VS:
Commands entered on the command line:
cd C:\Repo\fivem
set BOOST_ROOT=C:\libraries\boost_1_63_0
set PATH=%path%;C:\tools\python27amd64
prebuild
cd code
tools\ci\premake5 vs2017 --game=five

Opening a project in VS:
I opened the project file on the path “C:\Repo\fivem\code\build\five\CitizenMP.sln” project in VS. VS announced the need to update the target platform to “10.0.17763”, I agreed. I switched to the “Release” configuration and clicked “build solution”.

I received errors: https://pastebin.com/Jh2BR57e or https://dl.dropboxusercontent.com/s/yvqd8xp9473l0x4/errors.txt
Build log: https://pastebin.com/290wDSg6 or https://dl.dropboxusercontent.com/s/whu8k46lwjszdfv/build_release_log.txt
I also attach links to screenshots:
https://dl.dropboxusercontent.com/s/zbvjteb6gvt77n6/explorer_MmxwRaU5b2.png
https://dl.dropboxusercontent.com/s/xcbsgupzzylv9m3/explorer_VipcMqIL65.png
https://dl.dropboxusercontent.com/s/83sb5z0mfuljlkl/explorer_2VrXwA0ymh.png
https://dl.dropboxusercontent.com/s/h80y59xfqoyws75/explorer_9720xQSpPL.png
https://dl.dropboxusercontent.com/s/l0aqs7hrhkuhfgk/explorer_HmPsH3WUAi.png
https://dl.dropboxusercontent.com/s/4z9yisc1j06rgmx/devenv_tIMa2HK6g7.png

Please note that my VS uses Russian to describe errors! If you need more logs, translations of error descriptions from Russian to English, or more screenshots, let me know!

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

It tries to execute a file that doesn’t exist… In this case it is:
corhost.cpp
And much more that does not exist where the diretory is setted up.
Please correct that, then it might work.

Have a nice day! :mascot: :hamburger:

You probably forgot to install certain VS components such as ATL/MFC.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.