fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Error trying to build fivem

Open DaniGP17 opened this issue 3 years ago • 2 comments

Hello, good morning, I have a problem, I am trying to compile fivem from visual studio 2019, but I am encountering several errors, when I look at the code many parts are underlined in red saying that they are not defined, at the beginning of many files appear #include <package-name.h> but many of the include ma are underlined in red. image I have followed the steps in the documentation of the build.md file but I have run into some problems, I have installed all the requirements that are indicated at the beginning of the file, but when I run the code 'fxd vs -game five' I get an error saying that a file was not found and after a few seconds the project will open in visual studio 2019 and if I open any file I see that many words are underlined in red. image I don't know if this has anything to do with it but when I run the command 'git submodule update --jobs=16 --init' I get an error, to solve this I have manually installed each submodule one by one. image

DaniGP17 avatar Sep 14 '22 12:09 DaniGP17

I also have a problem using the Five

PRMerger935 avatar Sep 14 '22 19:09 PRMerger935

I find, that we've to install sdk of windows 11 in visual studio, but in the build docs, they don't say anything about that. I know that make a issue is a bad thing because that they say some times that they don't give support here, but I don't know where to ask, in the discord when someone ask about it anyone answer.

DaniGP17 avatar Sep 15 '22 14:09 DaniGP17

Did you manage to build the project? I installed windows 11 sdk but when I go to build the solution in visual studio I get many errors but the first one is:

>------ Build started: Project: botan, Configuration: Debug x64 ------ 3>No C:\Users\lucas\Desktop\fivem\code\tools\build\run_prebuild.ps1:79 caractere:2 3>+ throw "natives failed 2" 3>+ ~~~~~~~~~~~~~~~~~~~~~~~~ 3> + CategoryInfo : OperationStopped: (natives failed 2:String) [], RuntimeException 3> + FullyQualifiedErrorId : natives failed 2

In the run_prebuild.ps1 script there is a reference to a file "code\client\clrcore\NativesFive.cs" which does not exist in the project.

luccasbr avatar Sep 28 '22 13:09 luccasbr

Did you manage to build the project? I installed windows 11 sdk but when I go to build the solution in visual studio I get many errors but the first one is:

>------ Build started: Project: botan, Configuration: Debug x64 ------ 3>No C:\Users\lucas\Desktop\fivem\code\tools\build\run_prebuild.ps1:79 caractere:2 3>+ throw "natives failed 2" 3>+ ~~~~~~~~~~~~~~~~~~~~~~~~ 3> + CategoryInfo : OperationStopped: (natives failed 2:String) [], RuntimeException 3> + FullyQualifiedErrorId : natives failed 2

In the run_prebuild.ps1 script there is a reference to a file "code\client\clrcore\NativesFive.cs" which does not exist in the project.

Same problem, I have not achieved

DaniGP17 avatar Sep 28 '22 14:09 DaniGP17

Hi, this is not a place for support, please use our discord guild or forums.

neptunium-cfx avatar Sep 28 '22 15:09 neptunium-cfx