For whatever reason no matter what I do, since yesterday all of a sudden I can’t build my plugin module anymore. If I remove it (the whole Plugins folder) from my project it builds just fine, but if I try to build the plugin it fails due to
But there is no other error or warning.
Well, there’s about 300 UE4Editor-****.lib files in that folder, but nothing without a suffix name for an engine component. Does anyone have the slightest clue as to why it won’t build? Is there a more verbose log output from UE Build tools or Visual Studio somewhere that can help me track this down? I don’t know what to do. This is completely stopping me from working on the plugin any further.
UBT occasionally screws up and deletes a file it shouldn’t during clean/rebuild. I’ve had that error a bunch of times before.
You just need to get the file back, which if you’re using a launcher build is easy, just run the Verify option on the engine installation from the launcher. If you’re on source engine build, you’ll probably need to build part of the engine again to generate the lib.
I thought that may be the case and I tried Verify, didn’t work. 4.14 that just came out today and after I installed, that UE4Editor.lib does not exist in 4.14 or anywhere on my harddrive at all.
Hmm, yeah that’s weird. Looks like that lib file exists within all my source-built engines, but not any launcher installations. Why your launcher build is looking for it then I can’t say, sorry.
I can confirm that I do not have that file either in my binary build, which makes me think that the error is misleading and isn’t pointing to the actual issue.
If you would like to see if it is the cause of the issue, I would suggest downloading the 4.13 source from Github and seeing if it’ll compile for you on that build. Even if it doesn’t, it’s possible that it will give another error that this one may be hiding.
You mentioned that this happened all of a sudden. Had you made any changes to the plugin or the project’s source and/or structure between when this last worked and when it started having problems? Also, could you try moving the plugin’s source to a new project to see if you get any different results?
I got the UE source to build from Github, then set UE version to the Source copy for my plugin’s project, and was able to build the plugin solution without an error in VS2015 (using the Development Editor / Win64 / <ProjectName> as target). However, when I attempt to open the project, it complains that the UE4Editor-PluginModule.dll is from a different version or outdated, and wants to rebuild it. If I do, it fails, but if course if I don’t it won’t open.
If I drop the \Plugins\ folder into an entirely new blank project with a blank C++ class (as the visual studio project files won’t generate without anything in <Project>\Source), I get the same exact error as my original post.
I found out the problem, and it’s so stupid. I had “Launch” in my plugin’s PublicDepedencyModuleNames which was causing all of this. I figured it out by stripping down my plugin while comparing it to a new sandbox plugin that I made from the editor’s Plugin menu in a separate project, and comparing it with my own as the bare-bones plugin built just fine and listed in the editor.
What a hard lesson to learn here. If anything I hope anyone else who may run into this problem finds this thread so they don’t make the same mistake I did.
I tried deleting the Launch module but still get the same error. What’s strange is that this plugin gives me problems only with a particular project, fresh ones are fine. Where can I look for probable incompatibilities or settings that prevent its build
Hello I had such a mistake
Error LNK1181 input file cannot be opened "….…\UE4.27.2Source\Engine\Plugins\Media\BinkMedia\Source\BinkMediaPlayerSDK\lib\BinkUnrealWin64.lib " UE4 ….…\UE4.27.2Source\Engine\Intermediate\ProjectFiles\LINK 1
I fixed it this way
I installed the Unreal Engine 4.27.2 Binary engine and took the missing lib file from there. It is saved in this path
UE_4.27\Engine\Plugins\Media\BinkMedia\Source\SDK then copied the lib file itself and inserted it into the engine from the source code. Then I launched UE4.sln and rebuilt the engine and everything worked.
For me helped deletion of folders
C:\Users"UserName"\AppData\Local\UnrealEngine"EngineVersion"\Saved
and
C:\Users"UserName"\AppData\Local\UnrealEngine\Intermediate
(Or entire folder C:\Users"UserName"\AppData\Local\UnrealEngine ; Error occurred upon update of plugin created by me).