Skip to content

Please restore Android support to the vendored Angelscript #68

@robertkirkman

Description

@robertkirkman

When compiling the newest SimulIDE-dev for Android, this link error occurs:

ld.lld: error: undefined symbol: CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, unsigned int*, void*, unsigned long&, void*)
>>> referenced by as_callfunc.cpp
>>>               build/objects/as_callfunc.o:(CallSystemFunction(int, asCContext*))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:1815: executables/SimulIDE_2.0.0-/simulide] Error 1

I have determined through calculating the preprocessor macro evaluations that the reason why CallSystemFunctionNative() is not defined on Android in the version of Angelscript present in the github.com/eeTools/SimulIDE-dev/src/angel folder is because you have deleted this line, and many other Android-related lines, from your Angelscript code before committing it to your repository:

https://github.com/anjo76/angelscript/blob/a21fd7965a4d435d52bb1082781d5578f7430b1d/sdk/angelscript/source/as_config.h#L1181

@Arcachofo The reason that I know you deleted Android-related code from your fork of Angelscript before uploading it is because the copyright date of Angelscript in SimulIDE-dev is 2021, but the code was already present in upstream Angelscript at a date before 2021:

Copyright (c) 2003-2021 Andreas Jonsson

https://github.com/anjo76/angelscript/blob/20fc849f5fc2616897c117842e27882ff88c378d/sdk/angelscript/source/as_config.h#L1078

Please undo the removal of the Android-related code from the vendored copy of Angelscript. Thank you.

You don't need to test it, I will do that part, but if you don't want to make changes without understanding how to test them, but you are willing to learn how, let me know and I would walk you through the steps to reproduce the error ld.lld: error: undefined symbol: CallSystemFunctionNative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions