Unreal.js icon indicating copy to clipboard operation
Unreal.js copied to clipboard

Android supported ?

Open dsanjit opened this issue 7 years ago • 9 comments

Hi

Any chances this runs on Android ? I am getting compile errors.

Sanjit

dsanjit avatar Oct 23 '16 00:10 dsanjit

@marynate had provided binaries for android platform. Have you tried with prebuilt v8 binaries for android?

./install-v8-libs.sh https://github.com/ncsoft/Unreal.js-core/releases/tag/v8-5.1.300-android

nakosung avatar Oct 23 '16 01:10 nakosung

I am using the libs and have followed all procedures... but I still get the compile errors. Looks like it is STL related. For example I am getting erros like: error: undefined reference to 'std::__1::ios_base::clear(unsigned int)

Should I turn on some switch or something to cause the std libs to be linked in ?

dsanjit avatar Oct 23 '16 14:10 dsanjit

Have you enabled stlport?

2016년 10월 23일 (일) 오후 11:20, dsanjit [email protected]님이 작성:

I am using the libs and have followed all procedures... but I still get the compile errors. Looks like it is STL related. For example I am getting erros like: error: undefined reference to 'std::__1::ios_base::clear(unsigned int)

Should I turn on some switch or something to cause the std libs to be linked in ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ncsoft/Unreal.js/issues/120#issuecomment-255591270, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWXUwTuO8lYRDDaf2GINJnwZB08NnVjks5q220SgaJpZM4KeBEr .

nakosung avatar Oct 26 '16 15:10 nakosung

Sorry, where do I enable stlport? Is it by setting a flag in build.cs ?

dsanjit avatar Oct 27 '16 00:10 dsanjit

You may refer to wiki page about building v8.

2016년 10월 27일 (목) 오전 9:13, dsanjit [email protected]님이 작성:

Sorry, where do I enable stlport? Is it by setting a flag in build.cs ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ncsoft/Unreal.js/issues/120#issuecomment-256512805, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWXUzkBK7BtuvutqQ66ASUM8s_oeenCks5q3-yygaJpZM4KeBEr .

nakosung avatar Oct 27 '16 15:10 nakosung

I am using the pre-built libs as suggested by you. I dont have to build with stlport right? The wiki describes how to build V8 from scratch... Ive tried doing that as well bit doesnt seem to compile on MingW/Win10 .... I suspect Lib_sampler is also required and is not present in the pre-built package.

dsanjit avatar Nov 05 '16 20:11 dsanjit

I try to build socketio android lib before, meet the same error: https://github.com/getnamo/socketio-client-ue4/issues/21

tlightsky avatar Dec 26 '16 07:12 tlightsky

This issue is ancient, but I'm unable to package on Android. Any advice? My output looks like this:

LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:7457: error: undefined reference to 'v8::Isolate::Enter()'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/Delegates.cpp:304: error: undefined reference to 'v8::HandleScope::HandleScope(v8::Isolate*)'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:9716: error: undefined reference to 'v8::HandleScope::CreateHandle(v8::internal::Isolate*, unsigned int)'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:9716: error: undefined reference to 'v8::HandleScope::CreateHandle(v8::internal::Isolate*, unsigned int)'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:9470: error: undefined reference to 'v8::Context::Enter()'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/Delegates.cpp:313: error: undefined reference to 'v8::Context::Global()'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:9472: error: undefined reference to 'v8::Context::Exit()'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/Delegates.cpp:315: error: undefined reference to 'v8::HandleScope::~HandleScope()'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:7460: error: undefined reference to 'v8::Isolate::Exit()'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:9472: error: undefined reference to 'v8::Context::Exit()'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/Delegates.cpp:315: error: undefined reference to 'v8::HandleScope::~HandleScope()'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/ThirdParty/v8/include/v8.h:7460: error: undefined reference to 'v8::Isolate::Exit()'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:18: error: undefined reference to 'v8::Context::GetIsolate()'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:20: error: undefined reference to 'v8::HandleScope::HandleScope(v8::Isolate*)'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:47: error: undefined reference to 'v8::TryCatch::TryCatch(v8::Isolate*)'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:49: error: undefined reference to 'v8::Isolate::AllowJavascriptExecutionScope::AllowJavascriptExecutionScope(v8::Isolate*)'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:51: error: undefined reference to 'v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:53: error: undefined reference to 'v8::TryCatch::HasCaught() const'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/Source/V8/Private/Helpers.h:56: error: undefined reference to 'v8::Exception::Error(v8::Local<v8::String>)'
LogPlayLevel: Error:     D:/Build/++Portal+Dev-Marketplace+Full/Sync/LocalBuilds/PluginTemp/HostProject/Plugins/UnrealJS/Source/V8/Private/Helpers.h:56: error: undefined reference to 'v8::Isolate::ThrowException(v8::Local<v8::Value>)'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:127: error: undefined reference to 'v8::Isolate::AllowJavascriptExecutionScope::~AllowJavascriptExecutionScope()'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:127: error: undefined reference to 'v8::TryCatch::~TryCatch()'
LogPlayLevel: Error:     D:\Build\++Portal+Dev-Marketplace+Full\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\UnrealJS\Source\V8\Private/FunctionCall.cpp:127: error: undefined reference to 'v8::HandleScope::~HandleScope()'
........

hesto2 avatar Nov 18 '19 06:11 hesto2

android does work with libs and instructions provided in this issue: https://github.com/ncsoft/Unreal.js-core/issues/43

getnamo avatar Nov 19 '19 19:11 getnamo