Unreal Project Could Not Be Compiled, Try Re-Building From Source Manually
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
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!!
:( Visual Studio says "The command: ... Exited with code 6"
Worked for me as well, followed this vid and installed needed stuff for VS and it works now. Thank you
you saved my project bro, i love you
Glad I could help. Love you back
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?
I'm running into this as well
me to
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!
@@Need2pee not working ,...i did that and i get same error
@@MaxStudioCG2023 Just make any C++ class in Unreal Engine
Thanks buddy, helped me finish upgrading to 5.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.
Glad it helped!
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.
Happy to help. Feel free to share the video in unreal forum or anywhere you like. That would help me greatly
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
You saved me with this, thanks a lot! Project launches normally now.
You are welcome!
Thank you, I needed to delete the project .sln and the other intermediate VS files. I was having a ton of trouble with this.
I can't delete saved, and intermediate files are so important for the project!!
I wish I could give you 1,000 likes because this helped me when nothing else could
i've tried for a month now without success.. cant get houdini engine installed on my UE 5... tried everything online, no success
Thank you man! I was struggling with it. You solved my problem!
great
Thank you man works for me! I wish you good luck in the future!
Glad I could help
thank you so much for this solution, dont know what i wouldve done without you haha
:D
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.
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.
what if it still fails when you right click and say it failed to generate project files??
Have you installed visual studio?
Thank you this still works!
You're welcome!
You saved my project, thank you very much
Welcome
Thanks for the video! Very useful!
Glad it was helpful!
It really worked, thank you very much for sharing this tip
Great to hear!
Thank you so much you are a Hero
:D
how to do this on the mac?
Thanks a lot mate!!
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.
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?
BRO SAVED MEEEEEEEEEE
My preasure!
hi! I have same problem in Mac :( Do you know how to fix it? Thanks
LIFE SAVER BRO
happy to help
You are awesome! Thank you!
welcome!
Thank you! You saved me :D
Glad I could help!
Worked for me. Lots of thanks!
You're welcome!
Thanks you help me debug rapidly
Problem fixed. Nice video ;)
Good to hear!
thank you ! helped a lot
THANK YOU BRO
No problem
Thanks men! Like always the best!
Thanks
you save my life
great
lol I know this is a 7 month old video, but dang gotta appreciate Elden Ring + artbook
Yeah, couldn't finish it though
I owe you my life
Oh, you don't owe me anything. Just glad to be helpful
You are glorious. Thank you so much for this.
You're very welcome!
Can you make wall climb like in spiderman2
sure, If I can get a proper animation set
Thank you for this guide! In my case the error was caused by the megascan plugin.
Glad it helped!
Thankyouuuu!!!!!!
You're welcome!!
parfait! Merci supprimer les dossiers a fonctionné pour moi
Thanks
YESSSSS! I LOVE YOU BROO! VUHHUUUUUUUUU!
guess your problem is solved. :D
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?
It worked 😊 thank u
Welcome
I Hecking love you!
Happy to help
thks bro
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
thank you
You're welcome
Thank you!!!!
You're welcome!
THANK YOU
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
Thanks for the comment. That made my day
Thanks bro!
No problem!
And in C++ if you have a non-English letter in the destination folder, it won't compile either.
Thanks for the tip
Here's the thing, I don't even have the option to generate visual studio project when I right click.
What's the OS?
@@CodeLikeMe windows 11
@@mjzcreations8571 did you try show more options in right click menu?
@@CodeLikeMe I did infact try that
Big thanx
thank you so much!
Thanks :)
I could open my project in General but not Source 5.2.1? Rebuild did the trick. Compiling shaders....:)
I have an Invalid x64 - Thie selected platform/config is not valid for this target?
This did it!
for me it gave me this error when I made my first project
Ya this did not work for me is there any other way to do this?
Duuuuuuuuuuude
You just saved my sorry a*se
Thanks a lot! Now my project does not start and nothing works! The same success to you! May everything break for you too!
Thanks
hi i tried all u showed. doesnt work it comes with really complicated message. can u help me out?thanksss
What's the message?
thanks was afraid my project is corrupted
you say if you dont have an issue it will succeed what if you have a problem how do you fix the issues
Refer to the error messages and fix them. Those are specific to what's written in code. No general fixes
I tried these and still get the same errors saying it can't find project lol
I get error messages and am not sure how to resolve them. Wondering if you'd be willing to help?
perhaps, you can post the error here. If that is something I am, or someone else is familiar, you might get an answer
"generate visual studios project files" is not an option
If you are in Windows 11, you may have to use "show more options"
@@CodeLikeMe i'm on a mac and don't see it under more show more options
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?
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.
If you can't build manually. Right click the uproject, properties, open with Unreal engine (instead of Unreal editor) worked for me
I'm not clear. what do you mena by engine, not editor
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
Where did you find Unreal Engine? I can only find the unreal editor when looking for it
this project does not have any source code
So, do you have any plugins in the project?
hi bro
i have a different problem
What happened?
@@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
@@CodeLikeMe thanku so much bro
@@fmjavedgaming2198 no problem
please help me
same shit, doesnt work.
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?
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
My whole hard work project has been deleted thanks to u
What happened?
you should know that when you do something to any of the projects you should have a backup copy before you do anything lol
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!
fix ur voice its too hard to understand you mr salad fingers
who raised you
@@grimmkin3741 have u seen the flash animations salad fingers? u cant tell me he dose not sound like salad fingers lol
@@rubaduba8263 i guess but no need to be so harsh
hey,i'm china man,say something to me
@@user-td9hg5pe6z hey china man !
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
The engine is probably under a different path than previously set inside the project
@@adamodimattia so how do you fix that
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.
@@armeddreams9141 You are a hero, thank you!
Thank you.