Agora.io Unreal Engine Plugin Build error - c++

when i try to rebuild the sample or the plugin, i have some errors in the visual studio console
1-
Severity Code Description Project File Line Suppression State
Warning Library 'agora_rtc_sdk.lib' was not resolvable to a file when used in Module 'Agora', 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. AgoraVideoCall C:\Users\Ahmed Hassn\Desktop\Agora-Unreal-SDK-Blueprint-master\Intermediate\ProjectFiles\UnrealBuildTool 1
2-
Severity Code Description Project File Line Suppression State
Error Expected an include at the top of the header: '#include "GameplayTagsK2Node_MultiCompareGameplayTagAssetInterfaceSingle.generated.h"' AgoraVideoCall C:\Program Files\Epic Games\UE_4.24\Engine\Plugins\Editor\GameplayTagsEditor\Source\GameplayTagsEditor\Classes\GameplayTagsK2Node_MultiCompareGameplayTagAssetInterfaceSingle.h 32
3-
Severity Code Description Project File Line Suppression State
Error MSB3073 The command ""C:\Program Files\Epic Games\UE_4.24\Engine\Build\BatchFiles\Rebuild.bat" AgoraVideoCallEditor Win64 Development -Project="C:\Users\Ahmed Hassn\Desktop\Agora-Unreal-SDK-Blueprint-master\AgoraVideoCall.uproject" -WaitMutex -FromMsBuild" exited with code -1. AgoraVideoCall C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 49
those the three errors i got when i try to build in visual studio

in context to building the project, which of these build descriptions fit your situation?
Is this during:
the initial project opening ie: "build agora modules?"
packaging/building the project to test a standalone build.
Thanks!

Related

Errors coming from UE5 source files even in new project

I have these errors from files that I have not made any changed to.
I have tried regenerating Visual Studio files.
I also uninstalled/reinstalled Unreal engine and Visual Studio.
I originally started with Visual Studio 2019 but when I started getting these issues, I did update to Visual Studio 2022.
One post I found said the issue was resolved by going to the Visual Studio Installer → Visual Study Community 2022 → Modify - Individual Components → uncheck IDE Support for Unreal Engine. but this did not resolve it for me
Another post suggested Click Edit → Editor Preferences → Source Code
Change Source Code Editor to “Visual Studio 2022”
Click Tools → Refresh Visual Studio 2022 Project
Click Tools → Open Visual Studio 2022 to open the project in Visual Studio
I have tried opening various UE5 projects but the errors persist even when no code/classes have been added.
I'm lost in this dark world any help is appreciated!
Output:
[2023.01.15-23.40.10:775][ 0]LogShaderCompilers: Display: Autogen file is unchanged, skipping write.
[2023.01.15-23.40.11:312][ 0]LogAudio: Display: Registering Engine Module Parameter Interfaces...
[2023.01.15-23.40.12:303][ 0]LogAudioCaptureCore: Display: No Audio Capture implementations found. Audio input will be silent.
[2023.01.15-23.40.12:304][ 0]LogAudioCaptureCore: Display: No Audio Capture implementations found. Audio input will be silent.
[2023.01.15-23.40.12:615][ 0]LogInit: Error: VisualStudioToolsCommandlet looked like a commandlet, but we could not find the class.
Command failed with exit code 1.
Some of Error List:
Severity Code Description Project File Line Suppression State
Error (active) E1835 attribute "deprecated" does not apply here MyProject C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Serialization\BulkData.h 283
Severity Code Description Project File Line Suppression State
Error (active) E1835 attribute "deprecated" does not apply here MyProject C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Serialization\BulkData.h 1239
Severity Code Description Project File Line Suppression State
Error (active) E1455 member function declared with 'override' does not override a base class member MyProject C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 381
Severity Code Description Project File Line Suppression State
Error (active) E0020 identifier "FRHIViewableResource" is undefined MyProject C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\RHI\Public\RHI.h 2233
Coming from a comment I gave to the original question:
The "Error List" window in Visual Studio does not work well with Unreal, due to parsing issues of IntelliSense. The best way to see if an Unreal project builds seems to be to just build it and ignore IntelliSense alltogether. In this case, it is best to set the dropdown in the "Error List" window to "Build" instead of "Build + IntelliSense", to filter out any errors that just come from IntelliSense.
I found to just ignore the "Error List" and just work with the "Output" window to be a good solution as well, but that's just preference.

Error when opening UnrealEngine

Im new to UnrealEngine but I have worked with unity before. im trying to create a new unreal engine file but I keep getting this error every time I try (Can not compile, basically):
The project could not be compiled. Would you like to open it in Visual Studio?
Running C:/Program Files/Epic Games/UE_4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe test Development Win64 -project="C:/Users/abdel/Desktop/gamemaking/Unreal/BuildingEscape/test/test.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015
#progress push 5%
Parsing headers for testEditor
Running UnrealHeaderTool "C:/Users/abdel/Desktop/gamemaking/Unreal/BuildingEscape/test/test.uproject" "C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Intermediate\Build\Win64\testEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
Reflection code generated for testEditor in 7.1584488 seconds
#progress pop
Performing 8 actions (2 in parallel)
[2/8] Resource PCLaunch.rc
PCH.test.h.cpp
[3/8] Resource ModuleVersionResource.rc.inl
testGameMode.cpp
test.generated.cpp
C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Intermediate\Build\Win64\UE4Editor\Inc\test\test.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled headerC:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Source\test\testGameMode.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
testCharacter.cpp
C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Source\test\testCharacter.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
test.cpp
C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Source\test\test.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Binaries\Win64\UE4Editor-test.dll
Total build time: 26.15 seconds
I have visual studio downloaded and when I try to open it in Visual Studio, I get a build error.
please help :)
Please take a look at
https://docs.unrealengine.com/latest/INT/Programming/Development/VisualStudioSetup/
and check that you are using the correct Visual Studio version.
Also, is there a reason that you are using Unreal Engine 4.10 instead of the newest version, even though you are just starting with UE and, I assume, you don't have any previous projects?

opencv2/core/core.hpp': No such file or directory

I followed this video tutorial for installing OpenCV for Visual C++ in Visual Studio 2015 (14) under Windows 10. https://www.youtube.com/watch?v=7SM5OD2pZKY
However I get this error:
Severity Code Description Project File Line Category Source Suppression State Tool
Error C1083 Cannot open include file: 'opencv2/core/core.hpp': No such file or directory CannyStill1 c:\users\mona\documents\visual studio 2015\projects\cannystill1\cannystill1\cannystill1.cpp 3 fatal Build
Please suggest solution.

Errors when running the program in Visual Studio 2013

I have these problems coming up, when trying to run the program in Visual Studio 2013 C++. I know the code is ok, but every time, this happens.
Error 1 error : The source file for this compilation can be found at:
"C:\Users\Łukasz\AppData\Local\Temp\4fac5eed-ed73-4dda-8bdc-c333e2e82b4c.txt" C:\Program
Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
Error 2
error MSB3758: An error has occurred during compilation. error CS0016:
Could not write to output file
'c:\Users\Łukasz\AppData\Local\Temp\dtlusbnh.dll' -- 'Access is
denied. ' C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
Error 3
error MSB4036: The "SetEnvironmentVariable" task was not found. Check
the following: 1.) The name of the task in the project file is the
same as the name of the task class. 2.) The task class is "public" and
implements the Microsoft.Build.Framework.ITask interface. 3.) The task
is correctly declared with in the project file, or in the
*.tasks files located in the "C:\Program Files (x86)\MSBuild\12.0\bin" directory. C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
The
” Could not write to output file
error message means that the file is in use.
Since it's a DLL, it's in use by some program or programs.
You need to terminate those processes.
Error 3
error MSB4036: The "SetEnvironmentVariable" task was not found. Check
the following: 1.) The name of the task in the project file is the
same as the name of the task class. 2.) The task class is "public" and
implements the Microsoft.Build.Framework.ITask interface. 3.) The task
is correctly declared with in the project file, or in the *.tasks
files located in the "C:\Program Files (x86)\MSBuild\12.0\bin"
directory. C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
I had only the one error above, after repairing visual studio it resolved the problem.
I faced the same problem.
Run Visual Studio as Administrator solved my problem.
I encountered this issues for Visual Studio 2019 and running visual studio as administrator resolved the issue

Clan lib error LNK1104: cannot open file 'clanCore-static-mt-debug.lib'?

1>------ Build started: Project: clanlib 2, Configuration: Debug Win32 ------
1>Build started 24-07-2012 16:34:27.
1>InitializeBuildStatus:
1> Touching "C:\Users\Voldy\documents\visual studio 2010\Projects\clanlib 2\clanlib 2\Build\Debug\clanlib 2\clanlib 2.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'clanCore-static-mt-debug.lib'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.16
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This is the error I am getting this error when trying to make a clan lib application. Please help me resolve the prob.
From official documentation, possible causes:
Not enough disk space
File does not exist. For example, you will get this error if you try to use the PGINSTRUMENT parameter to the /LTCG linker option on a machine with a 32-bit operating system.
When specifying libraries in a project's property pages dialog box, library names should be separated by spaces (and not commas).
Incorrect filename or path.
Invalid drive specification.
Insufficient file permissions.
Path for filename expands to more than 260 characters.
If the given file is named LNKn, which is a filename generated by the linker for a temporary file, the directory specified in the TMP environment variable may not exist, or more than one directory is specified for the TMP environment variable. (Only one directory path should be specified for the TMP environment variable.)
If the error message occurs for a library name, and you recently ported the .mak file from a previous Microsoft Visual C++ development system, the library may no longer be valid. Ensure that the library still exists in this circumstance.
Another program may have the file open and the linker cannot write to it.
Incorrect LIB environment variable. For information on how to update the LIB environment variable, see VC++ Directories, Projects, Options Dialog Box. Make sure any directories with libraries you need are listed here.
You should have to include the lib file in the project property.
Project Property-->Linker-->Input-->Additional Dependencies-->clanCore-static-mt-debug.lib
ClanLib uses pragmas under Visual Studio to automatically link required libraries. So if you get that message, it means Visual Studio can't locate the lib files. It probably means you haven't set up the directories where Visual Studio should look for library files correctly.
Detailed explanations how to set this up is located at http://clanlib.org/wiki/VisualStudio2010GlobalIncludes