Hello. As I want to move to source build, I’m trying to convert my projects and plugins that I use for source build. I run in 2 errors, I can’t figure out how to solve.
These is from Don’s Pathfinding plugin.
And these is error from one of project I try to convert.
First things first - you’ll have to paste the content of the “Output” tab that appears when you compile. The “Error List” (tab name highlighted in yellow above) is just Visual Studio’s best guess at the errors in your code. The “Output” tab shows you the actual errors in your code. Once we see those, then we can try to solve the problem.
In the first image, you need to include the headers that define “FRunnable” “FRunnableThread” and “FThreadSafeCounter” before you use those types. Same issue with “FL_CPP_Info.cpp” – You aren’t including the headers that define the types you are using.
Unreal and specifically 4.24 is moving towards the IWYU paradigm. IWYU, (Include What You Use).
Previously the Build.cs file listed a dependency on the module that included FRunnable. The header file was added to the compiler at the command line, rather than in source code.
in 4.24 that no longer happens. You MUST #include the proper headers for FRunnable to use FRunnable.
This was done to reduce the # of files being sent to the compiler, and decrease the compile times. Its a little extra work up front, but will save you hours every week on compile times.
FOR the record, when you asking people on a forum to finish your code for you YOU DO NOT HAVE THE RIGHT TO PRETEND THAT YOU ARE THE LICENSING AUTHORITY!
LOOSE THE EGO, and THE NOTICE. If your code ran it might be worth protecting. It only runs because someone else finished it. YOU DO NOT OWN IT.