# Unable to build Android after building Engine from source

**URL:** <https://forums.unrealengine.com/t/unable-to-build-android-after-building-engine-from-source/376824>\
**Category:** Platform & Builds\
**Tags:** UE4-14, unreal-engine, Android, build-failed, UE4, question\
**Created:** [November 19, 2016, 2:11pm UTC](https://forums.unrealengine.com/t/unable-to-build-android-after-building-engine-from-source/376824 "2016-11-19T14:11:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9e4fc157](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9e4fc157](https://forums.unrealengine.com/u/anonymous_user_9e4fc157)\
**Post date:** [November 19, 2016, 2:11pm UTC](https://forums.unrealengine.com/t/unable-to-build-android-after-building-engine-from-source/376824/1 "2016-11-19T14:11:05Z")

</div>

Hi.  
I am trying to build Unreal Engine 4.14 from the source for android development.

I followed [Building Unreal Engine from Source | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/latest/INT/Programming/Development/BuildingUnrealEngine/) for building Unreal Engine in Visual Studio Community 2015

However, when trying to build the Android specific modules as per the steps mentioned at [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Build_Android_and_iOS_binary), I notice the following error:

```
11> [269/271] clang++.exe Module.CinematicCamera.cpp [armv7-es2]
11> [270/271] clang++.exe UMG.generated.cpp [armv7-es2]
11> [271/271] clang++.exe UE4Client-armv7-es2.so
11>clang++.exe : error : no such file or directory: 'C:/Data/Projects/UnrealEngine/UnrealEngine/Engine/Build/Android/Prebuilt/bsdsignal/lib/armeabi-v7a/libbsdsignal.a'
11>ERROR : UBT error : Failed to produce item: C:\Data\Projects\UnrealEngine\UnrealEngine\Engine\Binaries\Android\UE4Client-armv7-es2.so
11> Total build time: 1544.52 seconds
11>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.targets(41,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Client Android Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.

```

The full build log is attached in this file: build\_log.txt .

I have installed the android ndk (r12b), sdk, ant, gradle, jdk etc. as per the CodeWorks r15 installation file in the code. I have the version 4.12 installed/downloaded via the UE launcher and it contains the libbsdsignal.a file.

If I need to proved any other information please let me know.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9e4fc157](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9e4fc157](https://forums.unrealengine.com/u/anonymous_user_9e4fc157)\
**Post date:** [November 21, 2016, 5:39pm UTC](https://forums.unrealengine.com/t/unable-to-build-android-after-building-engine-from-source/376824/2 "2016-11-21T17:39:17Z")

</div>

I got it fixed.  
For some reason, codeworks didn’t update the PATH variable in windows correctly.  
I had to update the PATH variable manually, and rebuild the windows and android solutions completely.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c2e4e64f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c2e4e64f](https://forums.unrealengine.com/u/anonymous_user_c2e4e64f)\
**Post date:** [December 13, 2016, 9:23pm UTC](https://forums.unrealengine.com/t/unable-to-build-android-after-building-engine-from-source/376824/3 "2016-12-13T21:23:37Z")

</div>

Thanks, this helped me get on the right track. My steps:

- Update [env variables](https://docs.unrealengine.com/latest/INT/Platforms/Android/Reference/index.html#environmentvariables)
- Restart PC
- Run setup.bat to download Android development files
- Rebuild UE4 project for Android | Development

---

<div class="post-metadata">

**Author:** ![alleysark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alleysark](https://forums.unrealengine.com/u/alleysark)\
**Post date:** [February 10, 2019, 1:44pm UTC](https://forums.unrealengine.com/t/unable-to-build-android-after-building-engine-from-source/376824/4 "2019-02-10T13:44:01Z")

</div>

It’s pretty old thread, but I add the comment for future users.

In my case, the Android prebuilt library ‘bsdsignal’ is not copied properly from ‘src’ to ‘lib’ directory.  
If you go to that directory, \*\*C:\unreal-engine-path\Engine\Build\Android\Prebuilt\bsdsignal\ \*\* you can see the **build.bat** batch file and its contents are:

```
set NDK_PROJECT_PATH=src
call ndk-build APP_ABI="armeabi-v7a x86" APP_PLATFORM=android-21
copy src\obj\local\armeabi-v7a\libbsdsignal.a lib\armeabi-v7a
copy src\obj\local\x86\libbsdsignal.a lib\x86
```

As you can see, it copies the lib files from ‘src’ and paste into ‘lib’.  
Unfortunately, there is no ‘lib’ folder at that time and operation ‘copy’ does not create it even though it is necessary.

In conclusion, you can fix this problem by creating target folders manually (or modifying the batch script).

---

<div class="post-metadata">

**Author:** ![Mahrol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mahrol](https://forums.unrealengine.com/u/Mahrol)\
**Post date:** [May 24, 2019, 1:57pm UTC](https://forums.unrealengine.com/t/unable-to-build-android-after-building-engine-from-source/376824/5 "2019-05-24T13:57:44Z")

</div>

EDIT: The following was fixed by starting over with a clean UE4-OVR source build and SDK install.

I am having this issue, which I think is the same as yours, but I can’t figure out how to fix it:

> UATHelper: Packaging (Android (ASTC)):  
> clang++.exe: error: no such file or  
> directory:  
> D:/UE4/UE\_4.21\_OculusVR/Engine/Build/Android/Prebuilt/bsdsignal/lib/armeabi-v7a/libbsdsignal.a
> 
> UATHelper: Packaging (Android (ASTC)):  
> clang++.exe: error: no such file or  
> directory:  
> D:/UE4/UE\_4.21\_OculusVR/Engine/Build/Android/Prebuilt/bsdsignal/lib/x86/libbsdsignal.a

I checked the _D:/UE4/UE\_4.21\_OculusVR/Engine/Build/Android/Prebuilt/bsdsignal/src_ folder, but I don’t have the _obj_ folder in there (which I assume it tries to copy _\local\armeabi-v7a\libbsdsignal.a_ from).

Could you give me any pointers on how you fixed it?  
Thanks!

---

<div class="post-metadata">

**Author:** ![LightRider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LightRider](https://forums.unrealengine.com/u/LightRider)\
**Post date:** [May 31, 2024, 12:31am UTC](https://forums.unrealengine.com/t/unable-to-build-android-after-building-engine-from-source/376824/6 "2024-05-31T00:31:45Z")

</div>

Can you share which variable exactly you updated?
