I seem to have hit a bit of an odd problem here. My UE4 Project will compile and build in Visual Studio just fine but When I try to open it from the launcher it says it needs to compile the module again. So I say yes and it starts but It fails. It returns and linking error saying this:
[1/221] link.exe UE4Editor-Core.dll
LINK : fatal error LNK1104: cannot open file 'F:\UE4\Unreal Engine\4.2\Engine\Binaries\Win64\UE4Editor-Core.dll'
I checked and the file is there. I have rebuilt the engine as well as regenerated project files. Not sure where to go from here. What would cause this problem?
Ends up I was building in Debug not Development-Editor This resulted in a bunch of unresolved external linking errors. Why this error changed after rebuilding 2 times is beyond me but this problem is solved.
Iām having same error when I try to open project by clicking on myprojectname.uproject, then it asks if I want code to be compiled and I say yes and it gives that linker error.
remember your build mode in visual studio.
Iām building with Development-editor, but still have this issue
Hi ,
What version of the Engine are you using, and did you build it from source code or are you using the binary version with the Launcher?
Iām using 4.2.1 and the binary version with launcher.
Does this happen for you on every project that you create, or only on certain ones? What template are you using to create your projects? Do you see the same error when you try to open the project from inside the Editor?
This happens only on the project Iām currently working on and not on new projects. When I checkout any version from SVN the project doesnāt have solution or project files.
If I try to open it from launcher or the editor, the message appears saying āProject modules are missing or out of date. Would you like to recompile themā. When I click yes the compiling starts but gives multiple linker errors such as
āLINK : fatal error LNK1104: cannot open file āC:\Program Files\Unreal Engine\4.2\Engine\Binaries\Win64\UE4Editor-RenderCore.dllāā.
The compilation fails with the message :āGame code couldnāt be compiled. Continue trying to start anyway?ā.
Clicking yes results in "The game module āmyprojectnameā could not be found. Please ensure that this module exists and that it is compiled.
The result is same if I right click on the .uproject file and generate project files and try to compile through visual studio.
Iām able to workaround this by copying the solution and project files of my older revision. Then the VS compiles just fine.
Since I have a workaround I would like to ask you to check out my other issue which is much more severe than this and prevents the game from being run without editor. This issue can be found here: Game crashes when running without editor - Programming & Scripting - Unreal Engine Forums Any help on that topic would be greatly appreciated. Thanks!
Inside the visual studio project files, see if you have the project setup to look at the correct engine targets.
That would be under project properties->configuration properties->NMake
Look at the build, rebuild and clean paths.
Ohhh I just found your question, and Iāve just solved it. Visual studio is angry because it canāt rewrite files. Just launch it with administrator rights and this will be ok
1 Like