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"

Engine Runtime code doesn't get compiled when building the project

Hello,

I've been trying to use JNI (the way of calling UE4->Android methods) in UE4 these past few days but have been struggling to execute my code. I edited AndroidJNI.h and AndroidJNI.cpp to add my methods in the exact same manner in which the existing ones have been written and included the .h file in my custom actor class. However the thing just won't work no matter what I do.

Finally I came to realization that the .cpp code doesn't ever get recompiled when building for Android - I can put literally whatever there and I won't see any errors. So my question is:

What should I do to include these files in the compilation process? Should I add some dependency in Build.cs files? Is there a magic bat file that will recompile them? Or would I have to recompile the entire engine from github?

Thanks in advance.

Product Version: UE 4.12
Tags:
more ▼

asked Jul 28 '16 at 11:35 AM in C++ Programming

avatar image

gryzly123
71 2 8 11

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

1 answer: sort voted first

Problem solved - I had to compile the engine from the source as the binary version will not compile Engine files.

more ▼

answered Aug 01 '16 at 02:46 PM

avatar image

gryzly123
71 2 8 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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