Unreal Project Could Not Be Compiled, Try Re-Building From Source Manually

Sdílet
Vložit
  • čas přidán 19. 08. 2024
  • Today I am going to show the basic steps of how to build a project from source. The reason to make this video is I get many questions n how to build the shooter project. As it contains some C++ classes, when you try to open the project, if you don't have the pre-built binaries of those C++ classes, or if they are built with a different engine version, you will have to re-build them.
    ► 👇 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐓𝐡𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 // 𝐁𝐞𝐜𝐨𝐦𝐞 𝐀 𝐏𝐚𝐭𝐫𝐨𝐧!
    / codelikeme
    ►Patrons will have access to project files of all the stuff I do in the channel and other extra benefits
    Join this channel to get access to perks:
    / @codelikeme
    Like my facebook page for more content : / gamedevelopersclub
    Follow me on twitter : / codelikeme2
    Follow me on reddit : / codelikeme
    #CodeLikeMe #unrealengine #ue4 #indiegamedev

Komentáře • 174

  • @TheIronDragonBrigade
    @TheIronDragonBrigade Před rokem +18

    AHHH THANK YOU SO MUCH!!! You helped me fix my project which I haven't opened for quite some time, so I had no idea why it was broken and just selecting "rebuild" without deleting those folders is why I couldn't fix it. Thank you!!

  • @David_Fernandez
    @David_Fernandez Před rokem +18

    :( Visual Studio says "The command: ... Exited with code 6"

  • @jokufriikki
    @jokufriikki Před měsícem +1

    Worked for me as well, followed this vid and installed needed stuff for VS and it works now. Thank you

  • @ZerofeverOfficial
    @ZerofeverOfficial Před rokem +7

    you saved my project bro, i love you

    • @CodeLikeMe
      @CodeLikeMe  Před rokem +4

      Glad I could help. Love you back

  • @RwanLink
    @RwanLink Před rokem +14

    When I click on generate project files with Visual Studio I have this error messages ' This project does not have any source code. You need to add C++ source file to the project from Editor before you can generate project files' Any ideas?

    • @CommanderColson
      @CommanderColson Před rokem +1

      I'm running into this as well

    • @DayzeXzxR
      @DayzeXzxR Před rokem +1

      me to

    • @Need2pee
      @Need2pee Před rokem +2

      Easy fix would be create a brand new project then copy all the folders from your corrupted project onto the new one and let it replace all folders, boom it's fixed!

    • @MaxStudioCG2023
      @MaxStudioCG2023 Před rokem +1

      @@Need2pee not working ,...i did that and i get same error

    • @user-yw9ti4es7v
      @user-yw9ti4es7v Před rokem +3

      @@MaxStudioCG2023 Just make any C++ class in Unreal Engine

  • @territorygameofficial
    @territorygameofficial Před rokem +5

    Thanks buddy, helped me finish upgrading to 5.1!

  • @grimlord4765
    @grimlord4765 Před 6 měsíci +1

    holly moly, thanks a lot. Tryed to find this on redit and UE documents and didnt find this kind of solution. Thanks for your videos they're really helpfull.

  • @gurila11
    @gurila11 Před rokem +2

    I was having problems, when I started the BP child classes directly from the editor, it didn't recognize the parent C++ class. 2 days ago I had to reference everything from the beginning to each opening of the project. Your video saved me, thank you! Post on the Unreal forum, a lot of people there are having this problem without getting help.

    • @CodeLikeMe
      @CodeLikeMe  Před rokem +1

      Happy to help. Feel free to share the video in unreal forum or anywhere you like. That would help me greatly

  • @KDmadness18
    @KDmadness18 Před měsícem

    I had the issue where even trying to regenerate vs project files" failed.
    To fix this, I renamed the folder of my project (might have been too long), then deleted folders “build, builds, intermediate, binaries” in my project.
    Then I right clicked .uproject and ran “generate vs project files”.
    This allowed a successful project file regen, and fixed the issue when I reopened vs

  • @vadstart
    @vadstart Před rokem +1

    You saved me with this, thanks a lot! Project launches normally now.

  • @kieran8266
    @kieran8266 Před měsícem

    Thank you, I needed to delete the project .sln and the other intermediate VS files. I was having a ton of trouble with this.

    • @SoloGameDeveloper
      @SoloGameDeveloper Před měsícem

      I can't delete saved, and intermediate files are so important for the project!!

  • @Athasin
    @Athasin Před rokem +3

    I wish I could give you 1,000 likes because this helped me when nothing else could

  • @SuperMyckie
    @SuperMyckie Před rokem +2

    i've tried for a month now without success.. cant get houdini engine installed on my UE 5... tried everything online, no success

  • @leonkre4w
    @leonkre4w Před 5 měsíci

    Thank you man! I was struggling with it. You solved my problem!

  • @TheSilpperyTrickery
    @TheSilpperyTrickery Před 6 měsíci

    Thank you man works for me! I wish you good luck in the future!

  • @suncaye
    @suncaye Před 8 měsíci

    thank you so much for this solution, dont know what i wouldve done without you haha

  • @Cadenza203
    @Cadenza203 Před 2 měsíci

    My UE5 can’t even create a working project in C++. It’s too annoying to do it in every project. Is there any solutions about it? Thanks.

  • @iansmith3301
    @iansmith3301 Před 8 měsíci

    It's also a good test to make sure you can create a new UE5 C++ project, if that fails, fix what is preventing that from working and retry.

  • @calebswann6893
    @calebswann6893 Před 6 měsíci +1

    what if it still fails when you right click and say it failed to generate project files??

    • @CodeLikeMe
      @CodeLikeMe  Před 6 měsíci

      Have you installed visual studio?

  • @HuefulPhoenix
    @HuefulPhoenix Před 2 měsíci

    Thank you this still works!

  • @k1ngnes
    @k1ngnes Před 9 měsíci

    You saved my project, thank you very much

  • @AthosSampaio
    @AthosSampaio Před 2 měsíci

    Thanks for the video! Very useful!

  • @atypicalcrow
    @atypicalcrow Před 8 měsíci

    It really worked, thank you very much for sharing this tip

  • @DangerPilz
    @DangerPilz Před rokem +1

    Thank you so much you are a Hero

  • @isitsafe535
    @isitsafe535 Před rokem +2

    how to do this on the mac?

  • @Mrafael52
    @Mrafael52 Před rokem +1

    Thanks a lot mate!!

  • @DragetaLP
    @DragetaLP Před rokem +1

    Thank you so much for showing the setup guide for Visual Studio by Epic Games. I forgot to add the UE installer option to my Visual Studio and that forced the error message this video is about.

  • @sara-uh8xy
    @sara-uh8xy Před rokem +1

    Fatal Error: Engine\Engine\Source\Runtime\Core\Private\Modules\ModuleManager.cpp] [Line: 1167]
    Unable to read module manifest from '../../../Engine/Binaries/Win64/UnrealEditor.modules'. Module manifests are generated at build time, and must be present to locate modules at runtime.
    how to correct it?

  • @zqz.66
    @zqz.66 Před 6 měsíci +1

    BRO SAVED MEEEEEEEEEE

  • @happydoongni
    @happydoongni Před 2 měsíci

    hi! I have same problem in Mac :( Do you know how to fix it? Thanks

  • @prateekraikar2420
    @prateekraikar2420 Před 9 měsíci

    LIFE SAVER BRO

  • @vocalsync135
    @vocalsync135 Před 4 měsíci

    You are awesome! Thank you!

  • @Frostu_
    @Frostu_ Před rokem +1

    Thank you! You saved me :D

  • @bangalash
    @bangalash Před rokem

    Worked for me. Lots of thanks!

  • @said_ess661
    @said_ess661 Před 10 měsíci

    Thanks you help me debug rapidly

  • @gonzalolopez9768
    @gonzalolopez9768 Před rokem +1

    Problem fixed. Nice video ;)

  • @sesyagamez
    @sesyagamez Před 5 měsíci

    thank you ! helped a lot

  • @StanDrago
    @StanDrago Před 4 měsíci

    THANK YOU BRO

  • @jeyburns.t9209
    @jeyburns.t9209 Před 11 měsíci

    Thanks men! Like always the best!

  • @peacepeace9462
    @peacepeace9462 Před 7 měsíci

    you save my life

  • @moonbather4724
    @moonbather4724 Před rokem +1

    lol I know this is a 7 month old video, but dang gotta appreciate Elden Ring + artbook

  • @spongeunction
    @spongeunction Před 18 dny

    I owe you my life

    • @CodeLikeMe
      @CodeLikeMe  Před 17 dny

      Oh, you don't owe me anything. Just glad to be helpful

  • @AJGameDev
    @AJGameDev Před rokem

    You are glorious. Thank you so much for this.

  • @anas-elhabil258
    @anas-elhabil258 Před rokem +2

    Can you make wall climb like in spiderman2

    • @CodeLikeMe
      @CodeLikeMe  Před rokem +1

      sure, If I can get a proper animation set

  • @Pascha284
    @Pascha284 Před rokem

    Thank you for this guide! In my case the error was caused by the megascan plugin.

  • @touchstone1682
    @touchstone1682 Před 3 měsíci

    Thankyouuuu!!!!!!

  • @ALEXforLOVE
    @ALEXforLOVE Před 2 měsíci

    parfait! Merci supprimer les dossiers a fonctionné pour moi

  •  Před rokem

    YESSSSS! I LOVE YOU BROO! VUHHUUUUUUUUU!

    • @CodeLikeMe
      @CodeLikeMe  Před rokem +1

      guess your problem is solved. :D

  • @koko-nl5tp
    @koko-nl5tp Před rokem

    I worked many times before but now It does not work anymore. I cant build it anymore. Then, I went inside .h and .cpp. They don't understand unreal. I think I got to build it successfully first. What should I do now?

  • @user-ym6gt8zz4v
    @user-ym6gt8zz4v Před 10 měsíci

    It worked 😊 thank u

  • @WhyNMan
    @WhyNMan Před 5 měsíci

    I Hecking love you!

  • @adrocks3716
    @adrocks3716 Před měsícem

    thks bro

  • @LazerGODxD
    @LazerGODxD Před 5 měsíci

    Hello, How do i fix this issue on a macbook? currently i'm working on 5.1.1 and i've shifted my project from Windows to Mac. Xcode compiler is compiling the project, also i'm using the latest MacOS(Sonoma) and latest version of Xcode

  • @StanfordRodrigues
    @StanfordRodrigues Před 6 měsíci

    thank you

  • @hareinferno
    @hareinferno Před 10 měsíci

    Thank you!!!!

  • @wolfenstine6195
    @wolfenstine6195 Před rokem

    THANK YOU

  • @Lerizrn
    @Lerizrn Před 4 měsíci

    If I were rich he would make you a statue in your honor, you are a hero without a cape, your just make my day homie, I hope I can continue learning with you and one day I can reward you in a proper way

    • @CodeLikeMe
      @CodeLikeMe  Před 4 měsíci

      Thanks for the comment. That made my day

  • @Seventro7
    @Seventro7 Před rokem

    Thanks bro!

  • @huhubagoly2000
    @huhubagoly2000 Před 4 měsíci

    And in C++ if you have a non-English letter in the destination folder, it won't compile either.

  • @mjzcreations8571
    @mjzcreations8571 Před 3 měsíci

    Here's the thing, I don't even have the option to generate visual studio project when I right click.

  • @valeravalik6251
    @valeravalik6251 Před rokem

    Big thanx

  • @DJenriqez
    @DJenriqez Před rokem

    Thanks :)

  • @ruellerz
    @ruellerz Před rokem

    I could open my project in General but not Source 5.2.1? Rebuild did the trick. Compiling shaders....:)

  • @sammypolaroid7225
    @sammypolaroid7225 Před rokem

    I have an Invalid x64 - Thie selected platform/config is not valid for this target?

  • @davidsullivan1254
    @davidsullivan1254 Před rokem

    This did it!

  • @akhilldhilipkumarkalaiyara1601

    for me it gave me this error when I made my first project

  • @danielmokobia106
    @danielmokobia106 Před rokem

    Ya this did not work for me is there any other way to do this?

  • @user-jb4ib8kl8v
    @user-jb4ib8kl8v Před rokem

    Duuuuuuuuuuude
    You just saved my sorry a*se

  • @Sharlito
    @Sharlito Před 10 měsíci

    Thanks a lot! Now my project does not start and nothing works! The same success to you! May everything break for you too!

  • @shamabdullah7249
    @shamabdullah7249 Před rokem

    hi i tried all u showed. doesnt work it comes with really complicated message. can u help me out?thanksss

  • @patrik6088
    @patrik6088 Před rokem

    thanks was afraid my project is corrupted

  • @chris-xi7uo
    @chris-xi7uo Před rokem

    you say if you dont have an issue it will succeed what if you have a problem how do you fix the issues

    • @CodeLikeMe
      @CodeLikeMe  Před rokem

      Refer to the error messages and fix them. Those are specific to what's written in code. No general fixes

  • @unique8721
    @unique8721 Před rokem

    I tried these and still get the same errors saying it can't find project lol

  • @KratonWolf
    @KratonWolf Před rokem

    I get error messages and am not sure how to resolve them. Wondering if you'd be willing to help?

    • @CodeLikeMe
      @CodeLikeMe  Před rokem

      perhaps, you can post the error here. If that is something I am, or someone else is familiar, you might get an answer

  • @pleasedontsub2732
    @pleasedontsub2732 Před 5 měsíci

    "generate visual studios project files" is not an option

    • @CodeLikeMe
      @CodeLikeMe  Před 5 měsíci

      If you are in Windows 11, you may have to use "show more options"

    • @pleasedontsub2732
      @pleasedontsub2732 Před 5 měsíci

      @@CodeLikeMe i'm on a mac and don't see it under more show more options

  • @boisbois2947
    @boisbois2947 Před rokem

    Hi, I'm using Unreal Engine 5.2 and when I try to generate VS project files I get the error "The batch file does not appear to be located in the Engine/Build/BatchFiles directory. This script must be run from within that directory.". I also get the same error when I try to create a new C++ project. Do you know how to fix it?

    • @CodeLikeMe
      @CodeLikeMe  Před rokem

      perhaps try re-installing the engine. Or run verify in from launcher for the engine. may be that file is either corrupted or deleted by antivirus.

  • @laurino.
    @laurino. Před 8 měsíci

    If you can't build manually. Right click the uproject, properties, open with Unreal engine (instead of Unreal editor) worked for me

    • @CodeLikeMe
      @CodeLikeMe  Před 8 měsíci

      I'm not clear. what do you mena by engine, not editor

    • @laurino.
      @laurino. Před 8 měsíci

      When you choose with what to open the .uproject you can choose between those two, I don't know the difference, just that there was an option that you had in the video (generate visual studio files or something like that) that I didn't have but I had them when I did that@@CodeLikeMe

    • @CartoonUnpluggedTV
      @CartoonUnpluggedTV Před 6 měsíci

      Where did you find Unreal Engine? I can only find the unreal editor when looking for it

  • @user-nz1vg2gu8c
    @user-nz1vg2gu8c Před 10 měsíci

    this project does not have any source code

    • @CodeLikeMe
      @CodeLikeMe  Před 10 měsíci

      So, do you have any plugins in the project?

  • @fmjavedgaming2198
    @fmjavedgaming2198 Před rokem

    hi bro
    i have a different problem

    • @CodeLikeMe
      @CodeLikeMe  Před rokem

      What happened?

    • @fmjavedgaming2198
      @fmjavedgaming2198 Před rokem +1

      @@CodeLikeMe sorry for disturbing you it works i made a mistake by myself i added a megascane plugin in unreal engine 5 version although it has already in engine.. so i deleted the megascane folder and it works fine

    • @fmjavedgaming2198
      @fmjavedgaming2198 Před rokem

      @@CodeLikeMe thanku so much bro

    • @CodeLikeMe
      @CodeLikeMe  Před rokem

      @@fmjavedgaming2198 no problem

  • @fmjavedgaming2198
    @fmjavedgaming2198 Před rokem

    please help me

  • @furkanserdar8725
    @furkanserdar8725 Před 7 měsíci

    same shit, doesnt work.

  • @PhatNguyen-cu2bx
    @PhatNguyen-cu2bx Před rokem +1

    I wonder why you animated time or exported time. Next, why don't you use Swat model in mixamo to upload but use skeletal mesh Swat In your video TPS! Ah or Skeletal Mesh! 🧐? Or are both ways the same?

  • @MrOfficialMetaverse
    @MrOfficialMetaverse Před 2 měsíci

    IF IT DIDNT WORK TAKE THE DELETED FILES AND PUT THEM PACK IT WORKS FINE BUT YOU MUST LAUNCH IT WITH OUT THE FILES 1ST

  • @tx7shoorxxmw948
    @tx7shoorxxmw948 Před rokem

    My whole hard work project has been deleted thanks to u

    • @CodeLikeMe
      @CodeLikeMe  Před rokem

      What happened?

    • @MaxStudioCG2023
      @MaxStudioCG2023 Před rokem +1

      you should know that when you do something to any of the projects you should have a backup copy before you do anything lol

  • @Reapervaloratch
    @Reapervaloratch Před 3 měsíci

    Let's be honest, this tutorial is like torture to watch!! You're too slow and talk about unnecessary things. 7min video could be 3min maximum , and in the end it didn't solve my problem, what a waste of time to hear you just talk about useless things!

  • @rubaduba8263
    @rubaduba8263 Před rokem +2

    fix ur voice its too hard to understand you mr salad fingers

    • @grimmkin3741
      @grimmkin3741 Před rokem +2

      who raised you

    • @rubaduba8263
      @rubaduba8263 Před rokem

      @@grimmkin3741 have u seen the flash animations salad fingers? u cant tell me he dose not sound like salad fingers lol

    • @grimmkin3741
      @grimmkin3741 Před rokem +1

      @@rubaduba8263 i guess but no need to be so harsh

    • @user-td9hg5pe6z
      @user-td9hg5pe6z Před rokem +1

      hey,i'm china man,say something to me

    • @alexjr977
      @alexjr977 Před rokem +2

      @@user-td9hg5pe6z hey china man !

  • @damienbarthe2373
    @damienbarthe2373 Před rokem +1

    Hello! Thanks for your videos!!! But I've a little problem. When I use visual studio for to do same thing like you(for to use on UE 4.27), I've an Error : MSB3073 Command ""C:\Program Files\Epic Games\UE_4.27\Engine\Build\BatchFiles\Build.bat" ShootLikeMeEditor Win64 Development -Project="C:\Users\conta\Desktop\ShootLikeMe\ShootLikeMe.uproject" -WaitMutex -FromMsBuild" stopped with code 6. What do you think? I searched on web but... ^^ Thank you Damien From France

    • @adamodimattia
      @adamodimattia Před rokem

      The engine is probably under a different path than previously set inside the project

    • @grimmkin3741
      @grimmkin3741 Před rokem

      @@adamodimattia so how do you fix that

    • @armeddreams9141
      @armeddreams9141 Před rokem

      Alright, several fixes for this Error, for anyone encountering this in the future. These are not steps but all individual solutions that may or may not work.
      1. If any build error you see says ...\....UE_5.1\ etc, if you see a ... as the file name for a folder in the error, that means your file path or folder/project names is too long. Move your installation or project folder closer to the C drive or whatever drive you have.
      2. If you have your projects on OneDrive, move it closer to your root drive.
      3. Disable Live Coding inside of unreal engine by going into the settings. Before you do this, open up VS and use CTRL+ALT+F11 and see if live coding works or not. Otherwise try disabling.
      4. Do not have unreal engine open when trying to build.
      5. If you get the stopped with code 6 error in VS, at the bottom left, double click on output to see all the steps the compiler did and look at any errors that popped up. In my case, my SDK .NET was not fully updated.

    • @user-oo7kc1pu2l
      @user-oo7kc1pu2l Před rokem

      @@armeddreams9141 You are a hero, thank you!

  • @omphya6229
    @omphya6229 Před rokem