Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny patches for Mac #13

Open
calicoday opened this issue Feb 19, 2024 · 0 comments
Open

Tiny patches for Mac #13

calicoday opened this issue Feb 19, 2024 · 0 comments

Comments

@calicoday
Copy link

Lovely plugin, thanks. I needed to patch a couple things to let plugin build and load on Mac.

  1. Backslash needs to be replaced by slash in some #include statements:
  ElgEditorScripting/Private/Blueprints/ElgEditorBP_Assets.cpp
    #include "HAL\FileManager.h"
    #include "UObject\MetaData.h"
    #include "Modules\ModuleManager.h"
  ElgEditorScripting/Private/Blueprints/ElgEditorBP_FModuleManager.cpp
    #include "Modules\ModuleManager.h"
  ElgEditorScripting/Private/EditorContexts/ElgEditorContext_Assets.cpp
    #include "Modules\ModuleManager.h"
  ElgEditorScripting/Private/EditorContexts/ElgEditorContext_Config.cpp
    #include "Misc\ConfigCacheIni.h"
  ElgEditorScripting/Public/EditorContexts/ElgEditorContext_Jason.h
    #include <Templates\SharedPointer.h>
  ElgEditorScripting/Public/ElgEditorScripting.h
    #include "Modules\ModuleManager.h"
  1. FName call needs NOT to be qualified as FName::FName at these lines:
  ElgEditorScripting/Private/Blueprints/ElgEditorBP_UBlueprint.cpp:585:26
  ElgEditorScripting/Private/Blueprints/ElgEditorBP_UBlueprint.cpp:653:25
  ElgEditorScripting/Private/EditorContexts/ElgEditorContext_LevelEditor.cpp:550:30

The build error shows as:

  error: qualified reference to 'FName' is a constructor name rather than a type in this context
    FName propertyName = FName::FName();

and it should be:

    FName propertyName = FName();

I'm building by double-clicking on the .uproject and choosing 'Yes' in the dialog asking whether to rebuild the module. I'm not launching VSCode or Xcode. When it fails, it says 'Try rebuilding from source' and the relevant log is at:

  ~/Library/Application Support/Epic/UnrealBuildTool/Log.txt

I'm on a MacBook Pro (13-inch, M1, 2020) running Ventura 13.6.1 and UE 5.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant