caseymcc / UE4_FastNoise2

Example for importing FastNoise2 into UE4
MIT License
12 stars 0 forks source link

#include <FastNoise/FastNoise.h> fails? #4

Closed Travistyse closed 1 year ago

Travistyse commented 1 year ago

I did also try including the directory path and was in the process of adding an external include when I realized that the page I was referring to was linking a .dll and.. this isn't a .dll integration.

I am so sorry for reaching out again - I'm using the project exactly as cloned with the command:

git clone --recurse-submodules https://github.com/caseymcc/UE4_FastNoise2.git

Except that I opened up the .UProject with 5.1 as the target and generated all of the files in doing so before closing the Unreal Editor and opening up the .sln in VS 2022

I'm presently just trying to include FastNoise into the FastNoise2ExampleGameModeABase.h and it doesn't show up in the autofill options when I type in #include <Fa

I did check (as before) every closed Issue prior to opening this one and I looked for a way to reach out privately in order to keep this out of the Issues tab, but I figured that it's at least now at a location where somebody else might see it who needs to see it in the future?

But yeah, neither of these worked:

#include "E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2"
#include <FastNoise/FastNoise.h>

And Source/Deps isn't inside of my solution explorer which is why I figured it's maybe an includes issue - so I went to the official documentation for FastNoise2 but there's just no information related to this use case beyond "Use this repo instead".

caseymcc commented 1 year ago

In the project's Intermediate directory there should be a CMakeTarget/FastNoise/build directory with some file buildinfo_{buildtype}.output. What is in that file? This is the file that is generated from the CMake information on fastnoise2 that is read in by the UnrealBuild tools so that everything can be added to Unreal Target/ModuleRules for the build. It might also be beneficial since you have changed the UE4CMake version to delete the Intermediate/CMakeTarget/FastNoise directory and let it rebuild it.

I have to admit I have not tested with VS in a while have been doing all my Unreal development as of late with VS code. When I get a chance I will test it with VS.

Travistyse commented 1 year ago

Went to my computer as soon as I saw this, admittedly I've been in bed and am probably going to sleep soon unfortunately but to answer your question the build folder is empty. There's nothing inside Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build

And I just used Everything to confirm that no file on my system exists that even begins with Buildinfo

Also I'm not familiar with VSCode for C++ and Unreal engine development but love it for Python, Java, and the occasional web development thing - I'm aware that this isn't the most appropriate place to ask but beyond it being already installed and portable is it better than Visual Studio for Unreal development or is it just that you don't really write code for Unreal typically so it's not something you have installed?

Also I could delete and rebuild but this isn't a changed version of Cmake - I made a new directory and cloned the updated repo into a completely fresh directory.

Edit: Deleted it, rebuilt, still empty build folder.

Decided to open up the solution and just hit rebuild, maybe this is relevant?

Rebuild started...
1>------ Rebuild All started: Project: FastNoise2Example, Configuration: Development_Editor x64 ------
2>------ Skipped Rebuild All: Project: UE5, Configuration: BuiltWithUnrealBuildTool Win64 ------
2>Project not selected to build for this solution configuration 
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" FastNoise2ExampleEditor Win64 Development -Project="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\FastNoise2Example.uproject" -WaitMutex -FromMsBuild -Rebuild
1>Log file: C:\Users\Travi\AppData\Local\UnrealBuildTool\Log.txt
1>Cleaning FastNoise2ExampleEditor and UnrealHeaderTool binaries...
1>Using 'git status' to determine working set for adaptive non-unity build (E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2).
1>Creating makefile for FastNoise2ExampleEditor (no existing makefile)
1>CMakeTarget load target: FastNoise loc:E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Source\FastNoise2Example\../Deps/FastNoise2
1>Loading cmake target: UnrealBuildTool.ReadOnlyTargetRules
1>Target FastNoise CMakeLists.txt out of date, rebuilding
1>CMakeTarget calling cmake with:  -G "Visual Studio 17 2022" -A x64  -S "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise" -B "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\toolchain.cmake" -T host=x64 -DFASTNOISE2_NOISETOOL=OFF
1>Calling: cmd.exe /c cmake.exe -G "Visual Studio 17 2022" -A x64  -S "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise" -B "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\toolchain.cmake" -T host=x64 -DFASTNOISE2_NOISETOOL=OFF
1>'cmake.exe' is not recognized as an internal or external command,
1>operable program or batch file.
1>
1>
1>'cmake.exe' is not recognized as an internal or external command,operable program or batch file.
1>Cannot configure CMake project. Exited with code: 1
1>CMakeTarget failed to load target: FastNoise
1>Parsing headers for FastNoise2ExampleEditor
1>  Running Internal UnrealHeaderTool "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\FastNoise2Example.uproject" "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\Build\Win64\FastNoise2ExampleEditor\Development\FastNoise2ExampleEditor.uhtmanifest" -WarningsAsErrors -installed
1>Total of 4 written
1>Reflection code generated for FastNoise2ExampleEditor in 0.9737857 seconds
1>Building FastNoise2ExampleEditor...
1>Using Visual Studio 2022 14.35.32215 toolchain (E:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>[Upgrade]
1>[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
1>[Upgrade]     IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
1>[Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;' in FastNoise2ExampleEditor.Target.cs.
1>[Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
1>[Upgrade]
1>Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
1>  Executing up to 6 processes, one per physical core
1>  Requested 1.5 GB free memory per action, 8.58 GB available: limiting max parallel actions to 5
1>Building 13 actions with 5 processes...
1>[1/13] Resource Default.rc2
1>[2/13] Resource Default.rc2
1>[3/13] Compile SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.cpp
1>[4/13] Compile FastNoise2Example.init.gen.cpp
1>[5/13] Compile FastNoise2Example.cpp
1>[6/13] Compile FastNoise2ExampleGameModeBase.gen.cpp
1>[7/13] Compile FastNoise2ExampleGameModeBase.cpp
1>[8/13] Link UnrealEditor-FastNoise2Example.lib
1>   Creating library E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\Build\Win64\UnrealEditor\Development\FastNoise2Example\UnrealEditor-FastNoise2Example.lib and object E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\Build\Win64\UnrealEditor\Development\FastNoise2Example\UnrealEditor-FastNoise2Example.exp
1>[9/13] Link UnrealEditor-FastNoise2Example.dll
1>   Creating library E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\Build\Win64\UnrealEditor\Development\FastNoise2Example\UnrealEditor-FastNoise2Example.suppressed.lib and object E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\Build\Win64\UnrealEditor\Development\FastNoise2Example\UnrealEditor-FastNoise2Example.suppressed.exp
1>[10/13] Compile module.cpp
1>[11/13] Link UnrealEditor-CMakeTarget.lib
1>   Creating library E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Plugins\UE4CMake\Intermediate\Build\Win64\UnrealEditor\Development\CMakeTarget\UnrealEditor-CMakeTarget.lib and object E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Plugins\UE4CMake\Intermediate\Build\Win64\UnrealEditor\Development\CMakeTarget\UnrealEditor-CMakeTarget.exp
1>[12/13] Link UnrealEditor-CMakeTarget.dll
1>   Creating library E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Plugins\UE4CMake\Intermediate\Build\Win64\UnrealEditor\Development\CMakeTarget\UnrealEditor-CMakeTarget.suppressed.lib and object E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Plugins\UE4CMake\Intermediate\Build\Win64\UnrealEditor\Development\CMakeTarget\UnrealEditor-CMakeTarget.suppressed.exp
1>[13/13] WriteMetadata FastNoise2ExampleEditor.target
1>Total time in Parallel executor: 62.16 seconds
1>Total execution time: 73.91 seconds
========== Rebuild All: 1 succeeded, 0 failed, 1 skipped ==========
========== Rebuild started at 8:44 AM and took 01:16.220 minutes ==========

And even just running without debugging prints:

Build started...
1>------ Build started: Project: FastNoise2Example, Configuration: Development_Editor x64 ------
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" FastNoise2ExampleEditor Win64 Development -Project="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\FastNoise2Example.uproject" -WaitMutex -FromMsBuild
1>Log file: C:\Users\Travi\AppData\Local\UnrealBuildTool\Log.txt
1>Using 'git status' to determine working set for adaptive non-unity build (E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2).
1>Invalidating makefile for FastNoise2ExampleEditor (build.failed deleted)
1>CMakeTarget load target: FastNoise loc:E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Source\FastNoise2Example\../Deps/FastNoise2
1>Loading cmake target: UnrealBuildTool.ReadOnlyTargetRules
1>Target FastNoise CMakeLists.txt out of date, rebuilding
1>CMakeTarget calling cmake with:  -G "Visual Studio 17 2022" -A x64  -S "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise" -B "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\toolchain.cmake" -T host=x64 -DFASTNOISE2_NOISETOOL=OFF
1>Calling: cmd.exe /c cmake.exe -G "Visual Studio 17 2022" -A x64  -S "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise" -B "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\toolchain.cmake" -T host=x64 -DFASTNOISE2_NOISETOOL=OFF
1>'cmake.exe' is not recognized as an internal or external command,
1>operable program or batch file.
1>
1>
1>'cmake.exe' is not recognized as an internal or external command,operable program or batch file.
1>Cannot configure CMake project. Exited with code: 1
1>CMakeTarget failed to load target: FastNoise
1>Target is up to date
1>Total execution time: 1.58 seconds
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 8:46 AM and took 01.812 seconds ==========

So.. going to go out on a limb here and say that CMake didn't get installed or it didn't get added to path perhaps? (I'm now installing CMake and adding to path)

My build folder is no longer empty but now I'm getting a fatal error with the linker. I'll delete the FastNoise folder from intermediate and try again but:

Rebuild started...
1>------ Rebuild All started: Project: FastNoise2Example, Configuration: Development_Editor x64 ------
2>------ Skipped Rebuild All: Project: UE5, Configuration: BuiltWithUnrealBuildTool Win64 ------
2>Project not selected to build for this solution configuration 
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" FastNoise2ExampleEditor Win64 Development -Project="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\FastNoise2Example.uproject" -WaitMutex -FromMsBuild -Rebuild
1>Log file: C:\Users\Travi\AppData\Local\UnrealBuildTool\Log.txt
1>Cleaning FastNoise2ExampleEditor and UnrealHeaderTool binaries...
1>Using 'git status' to determine working set for adaptive non-unity build (E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2).
1>Creating makefile for FastNoise2ExampleEditor (no existing makefile)
1>CMakeTarget load target: FastNoise loc:E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Source\FastNoise2Example\../Deps/FastNoise2
1>Loading cmake target: UnrealBuildTool.ReadOnlyTargetRules
1>Target FastNoise CMakeLists.txt out of date, rebuilding
1>CMakeTarget calling cmake with:  -G "Visual Studio 17 2022" -A x64  -S "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise" -B "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\toolchain.cmake" -T host=x64 -DFASTNOISE2_NOISETOOL=OFF
1>Calling: cmd.exe /c cmake.exe -G "Visual Studio 17 2022" -A x64  -S "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise" -B "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\toolchain.cmake" -T host=x64 -DFASTNOISE2_NOISETOOL=OFF
1>-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
1>-- The C compiler identification is MSVC 19.35.32215.0
1>-- The CXX compiler identification is MSVC 19.35.32215.0
1>-- Detecting C compiler ABI info
1>-- Detecting C compiler ABI info - done
1>-- Check for working C compiler: E:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
1>-- Detecting C compile features
1>-- Detecting C compile features - done
1>-- Detecting CXX compiler ABI info
1>-- Detecting CXX compiler ABI info - done
1>-- Check for working CXX compiler: E:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
1>-- Detecting CXX compile features
1>-- Detecting CXX compile features - done
1>FastNoise2 Arch: AMD64
1>-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
1>-- Configuring done (4.1s)
1>-- Generating done (0.1s)
1>EXEC : CMake warning :
1>  Manually-specified variables were not used by the project:
1>
1>    CMAKE_BUILD_TYPE
1>
1>
1>-- Build files have been written to: E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Intermediate/CMakeTarget/FastNoise/build
1>
1>
1>Calling: cmd.exe /c cmake.exe --build "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build" --config Debug
1>MSBuild version 17.5.0+6f08c67f3 for .NET Framework
1>
1>  Checking Build System
1>  Building Custom Rule E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/CMakeLists.txt
1>  Metadata.cpp
1>  SmartNode.cpp
1>  FastNoise_C.cpp
1>  FastSIMD.cpp
1>  FastSIMD_Level_Scalar.cpp
1>  FastSIMD_Level_SSE2.cpp
1>  FastSIMD_Level_SSE3.cpp
1>  FastSIMD_Level_SSE41.cpp
1>  FastSIMD_Level_SSE42.cpp
1>  FastSIMD_Level_SSSE3.cpp
1>  Generating Code...
1>  FastSIMD_Level_AVX2.cpp
1>  FastSIMD_Level_AVX512.cpp
1>  FastNoise.vcxproj -> E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\CMakeTarget\FastNoise\build\FastNoise\src\Debug\FastNoiseD.lib
1>  Building Custom Rule E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Intermediate/CMakeTarget/FastNoise/CMakeLists.txt
1>
1>
1>Loading build info file: E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Intermediate/CMakeTarget/FastNoise/build/buildinfo_Debug.output
1>Parsing headers for FastNoise2ExampleEditor
1>  Running Internal UnrealHeaderTool "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\FastNoise2Example.uproject" "E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\Build\Win64\FastNoise2ExampleEditor\Development\FastNoise2ExampleEditor.uhtmanifest" -WarningsAsErrors -installed
1>Total of 4 written
1>Reflection code generated for FastNoise2ExampleEditor in 0.9410562 seconds
1>Building FastNoise2ExampleEditor...
1>Using Visual Studio 2022 14.35.32215 toolchain (E:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>[Upgrade]
1>[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
1>[Upgrade]     IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
1>[Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;' in FastNoise2ExampleEditor.Target.cs.
1>[Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
1>[Upgrade]
1>Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
1>  Executing up to 6 processes, one per physical core
1>  Requested 1.5 GB free memory per action, 8.27 GB available: limiting max parallel actions to 5
1>Building 13 actions with 5 processes...
1>[1/13] Resource Default.rc2
1>[2/13] Resource Default.rc2
1>[3/13] Compile SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.cpp
1>[4/13] Compile FastNoise2Example.init.gen.cpp
1>[5/13] Compile FastNoise2Example.cpp
1>[6/13] Compile FastNoise2ExampleGameModeBase.gen.cpp
1>[7/13] Compile FastNoise2ExampleGameModeBase.cpp
1>[8/13] Link UnrealEditor-FastNoise2Example.lib
1>   Creating library E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\Build\Win64\UnrealEditor\Development\FastNoise2Example\UnrealEditor-FastNoise2Example.lib and object E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Intermediate\Build\Win64\UnrealEditor\Development\FastNoise2Example\UnrealEditor-FastNoise2Example.exp
1>[9/13] Link UnrealEditor-FastNoise2Example.dll
1>LINK : fatal error LNK1181: cannot open input file 'stdc++.obj'
1>[10/13] Compile module.cpp
1>[11/13] Link UnrealEditor-CMakeTarget.lib
1>   Creating library E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Plugins\UE4CMake\Intermediate\Build\Win64\UnrealEditor\Development\CMakeTarget\UnrealEditor-CMakeTarget.lib and object E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Plugins\UE4CMake\Intermediate\Build\Win64\UnrealEditor\Development\CMakeTarget\UnrealEditor-CMakeTarget.exp
1>[12/13] Link UnrealEditor-CMakeTarget.dll
1>   Creating library E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Plugins\UE4CMake\Intermediate\Build\Win64\UnrealEditor\Development\CMakeTarget\UnrealEditor-CMakeTarget.suppressed.lib and object E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\Plugins\UE4CMake\Intermediate\Build\Win64\UnrealEditor\Development\CMakeTarget\UnrealEditor-CMakeTarget.suppressed.exp
1>[13/13] WriteMetadata FastNoise2ExampleEditor.target cancelled
1>E:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(50,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_5.1\Engine\Build\BatchFiles\Rebuild.bat" FastNoise2ExampleEditor Win64 Development -Project="E:\Software\Game Development\Ue4FastNoise\UE4_FastNoise2\FastNoise2Example.uproject" -WaitMutex -FromMsBuild" exited with code -1.
1>Done building project "FastNoise2Example.vcxproj" -- FAILED.

Yeah, same error. Here's the buildinfo files:

Debug:

cppStandard=17
includes=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/include
dependencies=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/FastNoise2Example/../Deps/FastNoise2/CMakeLists.txt
sourcePath=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src
sourceDependencies=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise_C.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise_Config.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise_Export.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Metadata.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/SmartNode.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise_BuildList.inl,FastNoise/Metadata.cpp,FastNoise/SmartNode.cpp,FastNoise/FastNoise_C.cpp,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/BasicGenerators.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Blends.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Cellular.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/DomainWarp.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/DomainWarpFractal.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Fractal.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Generator.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Modifiers.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Perlin.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Simplex.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Value.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/BasicGenerators.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Blends.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Cellular.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/DomainWarp.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/DomainWarpFractal.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Fractal.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Generator.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Modifiers.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Perlin.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Simplex.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Utils.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Value.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/FastSIMD.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/FastSIMD_Config.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/FastSIMD_Export.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/FunctionList.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/InlInclude.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/SIMDTypeList.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/FastSIMD_BuildList.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/AVX.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/AVX512.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/NEON.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/SSE.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/Scalar.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/VecTools.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/SourceBuilder.inl,FastSIMD/FastSIMD.cpp,FastSIMD/FastSIMD_Level_AVX2.cpp,FastSIMD/FastSIMD_Level_AVX512.cpp,FastSIMD/FastSIMD_Level_Scalar.cpp,FastSIMD/FastSIMD_Level_SSE2.cpp,FastSIMD/FastSIMD_Level_SSE3.cpp,FastSIMD/FastSIMD_Level_SSE41.cpp,FastSIMD/FastSIMD_Level_SSE42.cpp,FastSIMD/FastSIMD_Level_SSSE3.cpp
binaries=
binaryDirectories=
libraries=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Intermediate/CMakeTarget/FastNoise/build/FastNoise/src/Debug/FastNoiseD.lib

Release:

cppStandard=17
includes=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/include
dependencies=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/FastNoise2Example/../Deps/FastNoise2/CMakeLists.txt
sourcePath=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src
sourceDependencies=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise_C.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise_Config.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise_Export.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Metadata.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/SmartNode.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/FastNoise_BuildList.inl,FastNoise/Metadata.cpp,FastNoise/SmartNode.cpp,FastNoise/FastNoise_C.cpp,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/BasicGenerators.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Blends.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Cellular.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/DomainWarp.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/DomainWarpFractal.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Fractal.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Generator.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Modifiers.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Perlin.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Simplex.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Value.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/BasicGenerators.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Blends.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Cellular.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/DomainWarp.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/DomainWarpFractal.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Fractal.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Generator.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Modifiers.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Perlin.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Simplex.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Utils.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastNoise/Generators/Value.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/FastSIMD.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/FastSIMD_Config.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/FastSIMD_Export.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/FunctionList.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/InlInclude.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/../include/FastSIMD/SIMDTypeList.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/FastSIMD_BuildList.inl,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/AVX.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/AVX512.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/NEON.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/SSE.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/Scalar.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/VecTools.h,E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Source/Deps/FastNoise2/src/FastSIMD/Internal/SourceBuilder.inl,FastSIMD/FastSIMD.cpp,FastSIMD/FastSIMD_Level_AVX2.cpp,FastSIMD/FastSIMD_Level_AVX512.cpp,FastSIMD/FastSIMD_Level_Scalar.cpp,FastSIMD/FastSIMD_Level_SSE2.cpp,FastSIMD/FastSIMD_Level_SSE3.cpp,FastSIMD/FastSIMD_Level_SSE41.cpp,FastSIMD/FastSIMD_Level_SSE42.cpp,FastSIMD/FastSIMD_Level_SSSE3.cpp
binaries=
binaryDirectories=
libraries=E:/Software/Game Development/Ue4FastNoise/UE4_FastNoise2/Intermediate/CMakeTarget/FastNoise/build/FastNoise/src/Release/FastNoise.lib

I've got to get some rest but my guess is that between the ChatGPT response and the mention of cppstandard=17 this might be another case of Unreal wants 2019 or 2022 and FastNoise2 / CMAKE wants 2017? I'm just not sure?

ChatGPT:

The error message you received suggests that the linker is unable to find the "stdc++.obj" file, which is a part of the C++ standard library. This error is usually caused by incorrect project configurations or missing system files.

Here are some steps you can try to resolve the issue:

Check your project configurations: Make sure that your project is configured to use the correct version of the C++ runtime library. You can check this by going to your project properties, selecting "C/C++", and then "Code Generation". Make sure that the "Runtime Library" option is set to the appropriate value, depending on whether you are building a debug or release version of your project.

Check your system files: Make sure that the required system files are installed on your system. The "stdc++.obj" file is part of the C++ standard library, so you may need to reinstall the appropriate version of Visual Studio to ensure that all the necessary files are present.

Check your project dependencies: Make sure that your project dependencies are correctly set up. If your project depends on another library that uses a different version of the C++ runtime library, you may need to update your project settings to use the correct version.

Check your project paths: Make sure that the paths to your project files and system files are correctly set up. If the linker is unable to find the "stdc++.obj" file, it may be because the path to the file is incorrect.

If none of these steps work, you may need to consult the Visual Studio documentation or seek help from the Visual Studio community for further assistance.

caseymcc commented 1 year ago

Looks like when fixing the linux builds I left the stdc++ link in for all builds, fixed it. Pull that latest and you should be able to compile. Also add in some test code to the FatNoise2ExampleGameModeBase.cpp.

Travistyse commented 1 year ago

Looks like when fixing the linux builds I left the stdc++ link in for all builds, fixed it. Pull that latest and you should be able to compile. Also add in some test code to the FatNoise2ExampleGameModeBase.cpp.

Awesome! Thank you so much, I apologize for taking a bit to reply. I confirmed that the project now can build and run UE5 5.1 on my system and the code in the GameMode class seems fine - I confirmed that the appropriate functions show up when I type os2Noise->

From here it's really just me going through the FastNoise2 information that I can find and replacing my much easier to write FastNoise Portable code. Hopefully I can find better information than I found in their docs and issues but that's a FastNoise2 issue, not yours.

Which brings me to what took so long! I couldn't find any information and ChatGPT was of no help. I've provided an example for others to be able to learn from that can be easily added by creating an Actor class, adding the following code, making the class a BP instance and shoving it into the world. .h

    // Sets default values for this actor's properties
    AFastNoiseExampleActor();
    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "FastNoise Example")
    int WorldSeed = 214879;

.CPP

void AFastNoiseExampleActor::BeginPlay()
{
    Super::BeginPlay();
    // Create Simplex Fractal FBm with 5 octaves
    auto fnSimplex = FastNoise::New<FastNoise::Simplex>();
    auto fnFractal = FastNoise::New<FastNoise::FractalFBm>();
    fnFractal->SetSource(fnSimplex);
    fnFractal->SetOctaveCount(5);

    // Generate random numbers and print them to the screen
    for (int i = 0; i < 20; i++)
    {
        FVector location = FVector(i * 100.0f, 0.0f, 0.0f);
        float noiseSet[1];
        float frequency = 0.02f + i * 0.001f; // calculate frequency based on iteration index
        fnFractal->GenUniformGrid3D(noiseSet, location.X, location.Y, location.Z, 1, 1, 1, frequency, WorldSeed);
        float noiseValue = noiseSet[0];
        GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::White, FString::Printf(TEXT("Noise value at location (%f, %f, %f): %f"), location.X, location.Y, location.Z, noiseValue));
    }
}

It's not a lot to give back compared to how much you've helped me, but any showing of gratitude and enabling others to take advantage of the work that you've done is what I can do :)

caseymcc commented 1 year ago

If you have any issues or want to help out feel free to drop in on the discord server for FastNoise (https://discord.gg/SHVaVfV). The original author is generally there and quite responsive.