guys im trying to compile a plugin to the latest ue4 version but the build fails with an error.
the video im referring to Video
and this is the error i get:
LINK : fatal error LNK1181: cannot open input file 'C:\Users\my pc\Downloads\Compressed\FMODStudio\Compiled\HostProject\Plugins\FMODStudio\Source\FMODStudio\..\..\Binaries\Win64\fmodL_vc.lib'
Took 93.462384s to run UnrealBuildTool.exe, ExitCode=6
UnrealBuildTool failed. See log for more details. (C:\Users\my pc\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\UBT-UE4Editor-Win64-Development.txt)
AutomationTool exiting with ExitCode=6 (6)
BUILD FAILED
and also i get a warning
WARNING: Library 'C:\Users\my pc\Downloads\Compressed\FMODStudio\Compiled\HostProject\Plugins\FMODStudio\Source\FMODStudio\..\..\Binaries\Win64\fmodstudioL_vc.lib' was not resolvable to a file when used in Module 'FMODStudio', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
your plugin requires to link against the FMODStudio library.
In your plugin build.cs file you probably have defined some path to tell Unreal Build system where those libraries file are. But UE cannot find them where specified.
Did you change something in your FMODStudio installation or in your Build.cs file?
i didnt change anything in the plugin, this plugin was added by another team member and when i pulled the changes from gitlab it fails to compile for me.
so how do i link them properly? i had never encountered such errors before and google doesnt seem to help.
The root cause here is “your team member broke the build.”
Your teammate has added a dependency (FMOD Studio) to the build, that is not present on your machine.
Generally, this is a bad idea – all build dependencies should be checked in, rather than locally installed.
I am understanding you took a version of the plugin FMODStudio, that is probably 4.25 or 4.26 (fmod does not provide more recent versions), from your internal git and you are trying to make it work with a more recent version of the engine 4.27 / 5.0.
Solution 1 is to wait for FMOD to ship a version of the plugin that works with 4.27/5.0.
Alternative is to build the plugin, what you seem to be trying.
For that I assume FMOD ship their plugin with some source code to allow you to rebuild it (not all plugin are shipped with source), and for that you will also need access to some library from FMODStudio itself (the fmodL_vc.lib UBT is looking for).
How is your colleague using that plugin?
Did he manage to update the plugin to run on the same version of the engine than you? In that case you might end up in what @jwatte is describing: your team member added a plugin with a dependency to a source that is only on his local machine.
guys i solved the problem by downloading the latest plugin version which was made for 27.2 and replacing it manually in the project files. seems like he was using an older version of the plugin.