Android build - "error: cannot find -l..."

Hi g4Rneck,

Can you attach your entire failed build output logs to this thread? That would be a big help.

Thanks very much!

Hi

I created project for Android but I cannot perform the build for the device - I’m getting errors - ue4 android errors - Pastebin.com and of course a lot of “undefined reference” errors after it.
Looks like I don’t have all needed libs. For example cxa_demangle I can find only as cpp file somewhere in android-ndk-r10d. PhysX3PROFILE - only as lib/dll file in UE4 location.

I’m not sure what do I have to do in this case. The Setting Up Unreal Engine Projects for Android Development | Unreal Engine 5.1 Documentation doesn’t help - I don’t have the tadp-2.0r8-windows.exe file (or other version). I set the paths to sdk/ndk/ant/jdk for my existing workspace for QT and I got errors described at the beginning.

So I downloaded the TADP directly from NV developer website and updated the paths in project settings but still no difference.

Full log - ue4 android build log full - Pastebin.com

Hi g4Rneck, thanks for the logs! Firstly, can you update to today’s hotfix, for 4.7.2? Also, did you mention that you just today installed the latest version of TADP? It should be Release (4.0r1). Has packaging for Android ever worked for you?

What I’d like you to do, after you update to 4.7.2, is restart your machine, and then from the Launcher’s Learn tab, get the Tappy Chicken project and try to package that project for development and ETC1. Tappy is a very small project and consequently takes less time to package , so we’re gonna narrow down the problem using Tappy a bit before we dig into your personal project. Let me know if this fails or succeeds, and if it fails please attach your complete output logs. Thanks very much!

Hi

I had the latest version of TADP (4.0r1). I downloaded the version 4.7.2 but now by using Epic Games Launcher (I had 4.7.1 from GitHub). Now I can perform the build - for Tappy Chciken and C++ templates.

I got some problems with running (app closed immediately) but I will check the reason when I find more time for it.

Hi all,

I have a very similar issue. I have TADP 4.0r1 installed, I’m running a forked clone of 4.7.2, and I’m getting tons of “error: cannot find -l” in my output log. My cloned engine builds just fine and is able to load my game project, but is failing during the NDK build step.

I have an identical setup on another machine and it packages the Android project without any errors and works great.

If I run the stock 4.7.2 engine, my game project is able to package my Android project without issue - same goes for Flappy Chicken.

Obviously something is going on with my cloned engine, but I’m not sure what else to try - I’ve rebuilt the Engine and restarted my machine multiple times.

log output

Hi 3dvrman,

Sorry for the late response. Your logs seem to indicate pathing problems, however I am not sure how having a cloned machine would affect this. Hold tight just a bit longer while I find the right person to ask about cloned machines and TADP libraries.

Thanks Wittlief,

I ended up re-cloning the engine from the main Epic repo and now it’s working fine. My only guess is that there were certain critical files that were gitignored by default and didn’t make their way onto our forked repo, although we never edited the gitignore file. I will attempt to re-fork and see if that fixes the issue and post my results here.

Hi 3dvrman,

I just wanted to check in and see if you were still having this issue.

Further, we’re releasing a 4.7.3 hotfix (right now actually) that has fixes for many issues, so you might want to snag that update as well. Thanks very much!

Hi all,
Since we have not heard back from either of you in a few days, we’re marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thanks very much!