Search code examples
appceleratorappcelerator-titaniumappcelerator-studio

Appcelerator Titanium ld.exe: error: cannot find -lkroll-v8


I can't build my module for Appcelerator Titanium after update to SDK v6.0.2.GA (all was fine with version 5.x.x).

In log I see many errors "undefined reference to 'v8::...". Full version of log you can find here

Before that I received "ld.exe: error: cannot find -lkroll-v8" error and tried to fix that by copying of libkroll-v8.so file from previous titanium SDK version. Original log you can find here.

I've tried to redownload last SDK - no luck, error still here.


Solution

  • Try the following steps:

    1.Change build.properties (Latest NDK)

    titanium.platform=/Library/Application Support/Titanium/mobilesdk/osx/6.0.2.GA/android android.platform=/Library/android-sdk-macosx/platforms/android-23 google.apis=/Library/android-sdk-macosx/add-ons/addon-google_apis-google-23 android.ndk=/Documents/r12b

    1. Delete the build/generated/jni folder (if it exists)

    2. Delete the libs/armeabi folder (if it exists) and remove armeabi from the manifest

    3. Rebuild the module using appc run -p android --build-only

    Note: I have tested this issue with latest SDK 6.0.2.GA, it's working as expected.

    Thanks