x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Is it possible to compile the game module as a separate .so file when package android?

If set “LinkType = TargetLinkType.Modular” in the game .Target.cs file when package android, the UBT system would tell modular link type is not supported on android platform. Then I found the function “ShouldCompileMnolithicBinary” which always return a true in the “UEBuildAndroid.cs” file, in the comment it says this platform currently always compiles monolithic.

What I want is to patch or hotfix the native C++ code in android apks, but it becomes quite difficult when the UBT compiles the whole C++ code (include the engine and the game) into a single libUE4.so file. I know it’s OK to do the same thing on Windows as to replace the dll files, so what is the reason to forbid modular link on android? Is this just because of the Google Play policy issue or any other technically problem? The native code patch function is sometimes quite useful.

I’ve tried to simply let the “ShouldCompileMnolithicBinary” return a false, and the result is apparently an error, it tells like “clang++.exe: error: no such file or directory: 'X:\XXX.lib'” when link each target file. Not quite familiar to the whole UBT system, so if this is possible to modify, please give me a help or any suggestions, thanks!

Product Version: UE 4.21
Tags:
more ▼

asked Apr 01 '19 at 07:17 AM in Packaging & Deployment

avatar image

pilotZ
6 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question