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

Doesn't work with unreal 4.24 #58

Open
CrackerHax opened this issue Apr 7, 2020 · 5 comments
Open

Doesn't work with unreal 4.24 #58

CrackerHax opened this issue Apr 7, 2020 · 5 comments

Comments

@CrackerHax
Copy link

Will not compile

@thejustinwalsh
Copy link
Contributor

Any compiler errors you can share?

@lihaochen910
Copy link

MacOS 10.15.4, UE4.24.3, Unreal.js-core branch:4.24
Error when compiling manually:

/Users/Kanbaru/UE_4.24/Engine/Build/BatchFiles/RunUAT.sh BuildPlugin -plugin="/Users/Kanbaru/UE_4.24/Engine/Plugins/UnrealJS/UnrealJS.uplugin" -package="/Users/Kanbaru/Downloads/Output/UnrealJS"

Running AutomationTool...

Running system mono/msbuild, version: Mono JIT compiler version 6.8.0.123 (2019-10/1d0d939dc30 Thu Mar 12 23:19:08 EDT 2020)
msbuild Source/Programs/AutomationTool/AutomationTool.csproj /p:Configuration=Development /p:Platform=AnyCPU /verbosity:quiet /nologo /p:NoWarn=1591 /property:AutomationToolProjectOnly=true /p:TargetFrameworkProfile=
/Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): warning : The referenced project '../IOS/MobileDeviceInterface/MobileDeviceInterface.csproj' does not exist. [/Users/Kanbaru/UE_4.24/Engine/Source/Programs/AutomationTool/AutomationTool.csproj]
Start UAT: mono AutomationTool.exe BuildPlugin -plugin=/Users/Kanbaru/UE_4.24/Engine/Plugins/UnrealJS/UnrealJS.uplugin -package=/Users/Kanbaru/Downloads/Output/UnrealJS
Parsing command line: BuildPlugin -plugin=/Users/Kanbaru/UE_4.24/Engine/Plugins/UnrealJS/UnrealJS.uplugin -package=/Users/Kanbaru/Downloads/Output/UnrealJS -compile
WARNING: Ignoring -Compile argument because engine is installed.
Copying 397 file(s) using max 64 thread(s)
Reading plugin from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/UnrealJS.uplugin...
Building plugin for host platforms: Mac
Running: mono "/Users/Kanbaru/UE_4.24/Engine/Binaries/DotNET/UnrealBuildTool.exe" UE4Editor Mac Development -Project=/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/HostProject.uproject -plugin=/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/UnrealJS.uplugin -iwyu -noubtmakefiles -manifest=/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Saved/Manifest-UE4Editor-Mac-Development.xml -nohotreload -log="/Users/Kanbaru/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UE4Editor-Mac-Development.txt"
While compiling /Users/Kanbaru/UE_4.24/Engine/Intermediate/Build/BuildRules/UE4Rules.dll:
/Users/Kanbaru/UE_4.24/Engine/Plugins/UnrealJS/Source/V8/V8.Build.cs(104,14) : warning CS0219: The variable ShouldLink_libsampler' is assigned but its value is never used While compiling /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Intermediate/Build/BuildRules/HostProjectModuleRules.dll: /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/V8.Build.cs(104,14) : warning CS0219: The variable ShouldLink_libsampler' is assigned but its value is never used
Parsing headers for UE4Editor
Running UnrealHeaderTool "/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/HostProject.uproject" "/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Intermediate/Build/Mac/UE4Editor/Development/UE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for UE4Editor in 10.2117497 seconds
Writing manifest to /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Saved/Manifest-UE4Editor-Mac-Development.xml
Building UE4Editor...
Performing 28 actions (12 in parallel)
[2/28] Compile SharedPCH.Engine.ShadowErrors.h
[1/28] Compile SharedPCH.UnrealEd.ShadowErrors.h
[3/28] Compile Module.V8.cpp
[4/28] Compile Module.V8.gen.1_of_2.cpp
[6/28] Compile Module.JavascriptUMG.gen.1_of_3.cpp
[5/28] Compile Module.V8.gen.2_of_2.cpp
[7/28] Compile Module.JavascriptUMG.cpp
[8/28] Compile Module.JavascriptUMG.gen.3_of_3.cpp
[9/28] Compile Module.JavascriptUMG.gen.2_of_3.cpp
[10/28] Compile Module.JavascriptGraphEditor.gen.2_of_2.cpp
[11/28] Compile Module.JavascriptConsole.cpp
[12/28] Compile Module.JavascriptHttp.cpp
[13/28] Compile Module.JavascriptGraphEditor.cpp
[14/28] Compile Module.JavascriptGraphEditor.gen.1_of_2.cpp
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:5:
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/FunctionCall.cpp:3:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.h:25:3: error: explicitly defaulted copy constructor is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
FExportedStructMemoryInfo(const FExportedStructMemoryInfo& Other) = default;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.h:37:35: note: copy constructor of 'FExportedStructMemoryInfo' is implicitly deleted because field 'Value' has a deleted copy constructor
v8::UniquePersistentv8::Value Value;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:778:3: note: 'Global' has been explicitly marked deleted here
Global(const Global&) = delete;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:6:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/Inspector.cpp:518:7: error: reference to 'Handle' is ambiguous
Handle argv[2];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:6:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/Inspector.cpp:525:7: error: reference to 'Handle' is ambiguous
Handle argv[1];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:7:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptComponent.cpp:97:6: warning: 'bIsActive' is deprecated: This member will be made private. Please use IsActive or SetActive. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations]
if (bIsActive)
^
/Users/Kanbaru/UE_4.24/Engine/Source/Runtime/Engine/Classes/Components/ActorComponent.h:193:2: note: 'bIsActive' has been explicitly marked deprecated here
UE_DEPRECATED(4.24, "This member will be made private. Please use IsActive or SetActive.")
^
/Users/Kanbaru/UE_4.24/Engine/Source/Runtime/Core/Public/Misc/CoreMiscDefines.h:227:43: note: expanded from macro 'UE_DEPRECATED'
#define UE_DEPRECATED(Version, Message) [[deprecated(Message " Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.")]]
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:60:60: error: reference to 'Handle' is ambiguous
static TArray StringArrayFromV8(Isolate* isolate, Handle InArray)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:65:14: error: reference to 'Handle' is ambiguous
auto arr = Handle::Cast(InArray);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:453:101: error: reference to 'Handle' is ambiguous
static UProperty* CreatePropertyFromDecl(Local context, FIsolateHelper& I, UObject* Outer, Handle PropertyDecl)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:789:50: error: reference to 'Handle' is ambiguous
auto AddFunction = [&](FName NewFunctionName, Handle TheFunction) -> bool {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:864:59: error: reference to 'Handle' is ambiguous
auto InitializeProperties = [&](UFunction* Function, Handle Signature) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:870:19: error: reference to 'Handle' is ambiguous
auto arr = Handle::Cast(Signature);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:973:17: error: reference to 'Handle' is ambiguous
auto arr = Handle::Cast(PropertyDecls);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:1002:17: error: reference to 'Handle' is ambiguous
TMap<FString,Handle> Others;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:1107:17: error: reference to 'Handle' is ambiguous
auto arr = Handle::Cast(PropertyDecls);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:1146:19: error: reference to 'Handle' is ambiguous
TMap<FString, Handle> Others;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:1224:16: error: reference to 'Handle' is ambiguous
auto arr = Handle::Cast(PropertyDecls);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:1276:16: error: reference to 'Handle' is ambiguous
auto arr = Handle::Cast(PropertyDecls);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:1620:7: error: reference to 'Handle' is ambiguous
Handle argv[1];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:1659:7: error: reference to 'Handle' is ambiguous
Handle argv[1];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:1692:7: error: reference to 'Handle' is ambiguous
Handle argv[1];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:8:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp:2206:5: error: reference to 'Handle' is ambiguous
Handle argv[1];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr * Handle;
^
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:323:1: note: candidate found by name lookup is 'v8::Handle'
using Handle = Local;
^
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/V8/Module.V8.cpp:12:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Private/JavascriptIsolate_Private.cpp:326:33: warning: The ARRAY_COUNT macro has been deprecated in favor of UE_ARRAY_COUNT. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-W#pragma-messages]
for (int32 Index = 0; Index < ARRAY_COUNT(Counter); ++Index)
^
/Users/Kanbaru/UE_4.24/Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h:141:30: note: expanded from macro 'ARRAY_COUNT'
#define ARRAY_COUNT( array ) DEPRECATED_MACRO(4.24, "The ARRAY_COUNT macro has been deprecated in favor of UE_ARRAY_COUNT.") UE_ARRAY_COUNT( array )
^
/Users/Kanbaru/UE_4.24/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformCompilerPreSetup.h:88:45: note: expanded from macro 'DEPRECATED_MACRO'
#define DEPRECATED_MACRO(Version, Message) EMIT_CUSTOM_WARNING(Message " Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.")
^
/Users/Kanbaru/UE_4.24/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformCompilerPreSetup.h:84:3: note: expanded from macro 'EMIT_CUSTOM_WARNING'
EMIT_CUSTOM_WARNING_AT_LINE(LINE, Warning)
^
/Users/Kanbaru/UE_4.24/Engine/Source/Runtime/Core/Public/Clang/ClangPlatformCompilerPreSetup.h:135:3: note: expanded from macro 'EMIT_CUSTOM_WARNING_AT_LINE'
_Pragma(PREPROCESSOR_TO_STRING(message(Warning)))
^
:138:2: note: expanded from here
message("The ARRAY_COUNT macro has been deprecated in favor of UE_ARRAY_COUNT." " Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.")
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
[15/28] Compile Module.JavascriptHttp.gen.cpp
[16/28] Compile Module.JavascriptEditor.gen.4_of_5.cpp
[17/28] Compile Module.JavascriptEditor.gen.2_of_5.cpp
[18/28] Compile Module.JavascriptEditor.gen.3_of_5.cpp
[19/28] Compile Module.JavascriptEditor.gen.5_of_5.cpp
[20/28] Compile Module.JavascriptEditor.gen.1_of_5.cpp
[21/28] Compile Module.JavascriptEditor.cpp
In file included from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Intermediate/Build/Mac/UE4Editor/Development/JavascriptEditor/Module.JavascriptEditor.cpp:27:
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/JavascriptEditor/JavascriptPropertyCustomizationLibrary.cpp:235:26: warning: 'AddExternalObjectProperty' is deprecated: Please use the overload that accepts an FAddPropertyParams structure Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations]
return { (ChildBuilder->AddExternalObjectProperty(Objects, PropertyName, UniqueIdName, bAllowChildrenOverride, bCreateCategoryNodesOverride)) };
^
/Users/Kanbaru/UE_4.24/Engine/Source/Editor/PropertyEditor/Public/IDetailChildrenBuilder.h:121:2: note: 'AddExternalObjectProperty' has been explicitly marked deprecated here
UE_DEPRECATED(4.24, "Please use the overload that accepts an FAddPropertyParams structure")
^
/Users/Kanbaru/UE_4.24/Engine/Source/Runtime/Core/Public/Misc/CoreMiscDefines.h:227:43: note: expanded from macro 'UE_DEPRECATED'
#define UE_DEPRECATED(Version, Message) [[deprecated(Message " Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.")]]
^
1 warning generated.
Took 104.230478s to run mono, ExitCode=5
UnrealBuildTool failed. See log for more details. (/Users/Kanbaru/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UE4Editor-Mac-Development.txt)
AutomationTool exiting with ExitCode=5 (5)
RunUAT ERROR: AutomationTool was unable to run successfully.

@crocuis
Copy link
Contributor

crocuis commented May 15, 2020

Get the latest code and try building again. :)

@lihaochen910
Copy link

I tried to get the latest code of the main branch to build the plugin.

MacOS 10.15.4, UE4.24.3, Unreal.js-core branch:master

/Users/Kanbaru/UE_4.24/Engine/Build/BatchFiles/RunUAT.sh BuildPlugin -plugin="/Users/Kanbaru/UE_4.24/Engine/Plugins/UnrealJS/UnrealJS.uplugin" -package="/Users/Kanbaru/Downloads/Output/UnrealJS"

Running AutomationTool...

Running system mono/msbuild, version: Mono JIT compiler version 6.8.0.123 (2019-10/1d0d939dc30 Thu Mar 12 23:19:08 EDT 2020)
msbuild Source/Programs/AutomationTool/AutomationTool.csproj /p:Configuration=Development /p:Platform=AnyCPU /verbosity:quiet /nologo /p:NoWarn=1591 /property:AutomationToolProjectOnly=true /p:TargetFrameworkProfile=
/Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): warning : The referenced project '../IOS/MobileDeviceInterface/MobileDeviceInterface.csproj' does not exist. [/Users/Kanbaru/UE_4.24/Engine/Source/Programs/AutomationTool/AutomationTool.csproj]
Start UAT: mono AutomationTool.exe BuildPlugin -plugin=/Users/Kanbaru/UE_4.24/Engine/Plugins/UnrealJS/UnrealJS.uplugin -package=/Users/Kanbaru/Downloads/Output/UnrealJS
Parsing command line: BuildPlugin -plugin=/Users/Kanbaru/UE_4.24/Engine/Plugins/UnrealJS/UnrealJS.uplugin -package=/Users/Kanbaru/Downloads/Output/UnrealJS -compile
WARNING: Ignoring -Compile argument because engine is installed.
Copying 393 file(s) using max 64 thread(s)
Reading plugin from /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/UnrealJS.uplugin...
Building plugin for host platforms: Mac
Running: mono "/Users/Kanbaru/UE_4.24/Engine/Binaries/DotNET/UnrealBuildTool.exe" UE4Editor Mac Development -Project=/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/HostProject.uproject -plugin=/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/UnrealJS.uplugin -iwyu -noubtmakefiles -manifest=/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Saved/Manifest-UE4Editor-Mac-Development.xml -nohotreload -log="/Users/Kanbaru/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UE4Editor-Mac-Development.txt"
While compiling /Users/Kanbaru/UE_4.24/Engine/Intermediate/Build/BuildRules/UE4Rules.dll:
/Users/Kanbaru/UE_4.24/Engine/Plugins/UnrealJS/Source/V8/V8.Build.cs(104,14) : warning CS0219: The variable ShouldLink_libsampler' is assigned but its value is never used While compiling /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Intermediate/Build/BuildRules/HostProjectModuleRules.dll: /Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/V8.Build.cs(104,14) : warning CS0219: The variable ShouldLink_libsampler' is assigned but its value is never used
Parsing headers for UE4Editor
Running UnrealHeaderTool "/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/HostProject.uproject" "/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Intermediate/Build/Mac/UE4Editor/Development/UE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
/Users/Kanbaru/Downloads/Output/UnrealJS/HostProject/Plugins/UnrealJS/Source/V8/Public/JavascriptGlobalDelegates.h(22) : Error: Unrecognized type 'TFieldPath' - type must be a UCLASS, USTRUCT or UENUM
Took 19.36058s to run mono, ExitCode=5
UnrealBuildTool failed. See log for more details. (/Users/Kanbaru/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UE4Editor-Mac-Development.txt)
AutomationTool exiting with ExitCode=5 (5)
RunUAT ERROR: AutomationTool was unable to run successfully.

@crocuis
Copy link
Contributor

crocuis commented May 16, 2020

Currently, the master branch can be built in 4.25, and if you need 4.24, check out the 4.24 branch.

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

4 participants