Download

Llibrary build errors trying to package Android apk when building from source

So I’ve built 4.7 engine from source on Mac OSX 10.10.2 (Yosemite) and am trying to package an Android APK but getting errors about various third party libraries when trying to do so…


MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp:288: error: undefined reference to 'FT_New_Library'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp:295: error: undefined reference to 'FT_Add_Default_Modules'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp:388: error: undefined reference to 'FT_Get_Char_Index'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp:409: error: undefined reference to 'FT_Get_Char_Index'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp:419: error: undefined reference to 'FT_Get_Char_Index'


MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Developer/ImageWrapper/Private/PngImageWrapper.cpp:121: error: undefined reference to 'png_set_IHDR'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Developer/ImageWrapper/Private/PngImageWrapper.cpp:122: error: undefined reference to 'png_set_write_fn'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Developer/ImageWrapper/Private/PngImageWrapper.cpp:123: error: undefined reference to 'png_malloc'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Developer/ImageWrapper/Private/PngImageWrapper.cpp:134: error: undefined reference to 'png_set_rows'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Developer/ImageWrapper/Private/PngImageWrapper.cpp:147: error: undefined reference to 'png_write_png'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Developer/ImageWrapper/Private/PngImageWrapper.cpp:67: error: undefined reference to 'png_free'


MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/Online/HTTP/Private/Curl/CurlHttp.cpp:33: error: undefined reference to 'curl_easy_setopt'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/Online/HTTP/Private/Curl/CurlHttp.cpp:34: error: undefined reference to 'curl_easy_setopt'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/Online/HTTP/Private/Curl/CurlHttp.cpp:45: error: undefined reference to 'curl_easy_setopt'

MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/Engine/Private/Collision/CollisionConversions.cpp:108: error: undefined reference to 'physx::PxMeshQuery::getTriangle(physx::PxHeightFieldGeometry const&, physx::PxTransform const&, unsigned int, physx::PxTriangle&, unsigned int*, unsigned int*)'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/Engine/Private/Collision/CollisionConversions.cpp:536: error: undefined reference to 'physx::PxGeometryQuery::computePenetration(physx::PxVec3&, float&, physx::PxGeometry const&, physx::PxTransform const&, physx::PxGeometry const&, physx::PxTransform const&)'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/Engine/Private/Collision/CollisionConversions.cpp:654: error: undefined reference to 'physx::PxMeshQuery::findOverlapTriangleMesh(physx::PxGeometry const&, physx::PxTransform const&, physx::PxTriangleMeshGeometry const&, physx::PxTransform const&, unsigned int*, unsigned int, unsigned int, bool&)'
MainFrameActions: Packaging (Android (PVRTC)): mono: /Users/robertsegal/dev/UnrealEngine/Engine/Source/Runtime/Engine/Private/Collision/CollisionConversions.cpp:655: error: unde

More than likely I am missing/modifying a build setting incorrectly. I am running the UE4Editor - Mac target. Seems I am missing a library linking phase somewhere to include the appropriate libraries but not sure where to check for this. Any help would be greatly appreciated.

I am getting similar on androind with version 4.7.4 right now - MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1719: error: undefined reference to ‘glDrawElements’

ndroid (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:486: error: undefined reference to ‘glVertexAttribPointer’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:489: error: undefined reference to ‘glVertexAttribPointer’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1026: error: undefined reference to ‘glDepthMask’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1061: error: undefined reference to ‘glUseProgram’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1064: error: undefined reference to ‘glUniform1f’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1066: error: undefined reference to ‘glUniformMatrix4fv’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1067: error: undefined reference to ‘glUniformMatrix4fv’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1068: error: undefined reference to ‘glUniformMatrix4fv’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1071: error: undefined reference to ‘glUniformMatrix4fv’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1077: error: undefined reference to ‘glUniform2fv’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1083: error: undefined reference to ‘glUniform4fv’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2133: error: undefined reference to ‘glViewport’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2134: error: undefined reference to ‘glScissor’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2138: error: undefined reference to ‘glLineWidth’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2156: error: undefined reference to ‘glDrawArrays’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2160: error: undefined reference to ‘glScissor’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:607: error: undefined reference to ‘pthread_join’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:613: error: undefined reference to ‘eglGetCurrentSurface’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2337: error: undefined reference to ‘glLineWidth’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2338: error: undefined reference to ‘glUniform4f’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2347: error: undefined reference to ‘glDrawElements’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2314: error: undefined reference to ‘glClearColor’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:2315: error: undefined reference to ‘glClear’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1532: error: undefined reference to ‘glScissor’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1719: error: undefined reference to ‘glDrawElements’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1621: error: undefined reference to ‘pthread_mutex_trylock’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1623: error: undefined reference to ‘pthread_cond_signal’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1349: error: undefined reference to ‘pthread_mutex_trylock’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1351: error: undefined reference to ‘pthread_cond_signal’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1769: error: undefined reference to ‘clock_gettime’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1769: error: undefined reference to ‘clock_gettime’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:1914: error: undefined reference to ‘usleep’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:739: error: undefined reference to ‘eglGetCurrentDisplay’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:744: error: undefined reference to ‘eglGetCurrentSurface’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:755: error: undefined reference to ‘eglQueryContext’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:764: error: undefined reference to ‘eglQueryContext’
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: jni/VrApi/TimeWarp.cpp:658: error: undefined reference to ‘eglGetCurrentDisplay’