Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › dlopen failed: cannot locate symbol "EC_curve_nist2nid"

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19504

    Julian

    Hi everybody,

    I get this SSL related error on Android. Here is the full log:

    E/dalvikvm( 8864): dlopen("/data/data/org.berlin_vegan.bvapp/lib/libssl.so") failed: dlopen failed: cannot locate symbol "EC_curve_nist2nid" referenced by "/data/app-lib/org.berlin_vegan.bvapp-1/libssl.so"...
    W/System.err( 8864): java.lang.reflect.InvocationTargetException
    W/System.err( 8864):    at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 8864):    at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err( 8864):    at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:241)
    W/System.err( 8864):    at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:676)
    W/System.err( 8864):    at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
    W/System.err( 8864):    at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
    W/System.err( 8864):    at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
    W/System.err( 8864):    at net.vplay.helper.VPlayActivity.onCreate(VPlayActivity.java:21)
    W/System.err( 8864):    at android.app.Activity.performCreate(Activity.java:5231)
    W/System.err( 8864):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err( 8864):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
    W/System.err( 8864):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
    W/System.err( 8864):    at android.app.ActivityThread.access$800(ActivityThread.java:135)
    W/System.err( 8864):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    W/System.err( 8864):    at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err( 8864):    at android.os.Looper.loop(Looper.java:136)
    W/System.err( 8864):    at android.app.ActivityThread.main(ActivityThread.java:5001)
    W/System.err( 8864):    at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 8864):    at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err( 8864):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    W/System.err( 8864):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:613)
    W/System.err( 8864):    at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 8864): Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "EC_curve_nist2nid" referenced by "/data/app-lib/org.berlin_vegan.bvapp-1/libssl.so"...
    W/System.err( 8864):    at java.lang.Runtime.load(Runtime.java:333)
    W/System.err( 8864):    at java.lang.System.load(System.java:512)
    W/System.err( 8864):    at org.qtproject.qt5.android.QtNative.loadQtLibraries(QtNative.java:176)
    W/System.err( 8864):    at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:597)
    W/System.err( 8864):    ... 22 more

    As far as I understood Felgo ships its own version of libssl.so and I can also see that “EC_curve_nist2nid” is in my build directory if I grep:

    ~/dev/Qt/build-BerlinVegan-Android_for_armeabi_v7a_GCC_4_9_Qt_5_10_1_Android_armv7_V_Play-Release                                                                                 
    > grep -nr EC_curve_nist2nid .
    Binary file ./android-build/libs/armeabi-v7a/libssl.so matches
    Binary file ./android-build/libs/armeabi-v7a/libcrypto.so matches
    Binary file ./android-build/libs/armeabi-v7a/libQt5Network.so matches
    Binary file ./android-build/build/intermediates/transforms/mergeJniLibs/debug/folders/2000/1f/main/lib/armeabi-v7a/libssl.so matches
    Binary file ./android-build/build/intermediates/transforms/mergeJniLibs/debug/folders/2000/1f/main/lib/armeabi-v7a/libcrypto.so matches
    Binary file ./android-build/build/intermediates/transforms/mergeJniLibs/debug/folders/2000/1f/main/lib/armeabi-v7a/libQt5Network.so matches
    Binary file ./android-build/build/intermediates/jniLibs/debug/armeabi-v7a/libssl.so matches
    Binary file ./android-build/build/intermediates/jniLibs/debug/armeabi-v7a/libcrypto.so matches
    Binary file ./android-build/build/intermediates/jniLibs/debug/armeabi-v7a/libQt5Network.so matches

    Any ideas what’s going on here?

    #19508

    Günther
    Felgo Team

    Hi Julian,

    yes, SSL is included with the Felgo Android Build Kit. I did a short check on macOS with latest Felgo version – SSL works fine for me.

    Since when are you experiencing this issue?

    • Did you run into this issue before?
    • Did you make any changes to your build setup and toolchain recently (SDK, NDK, …)? Which versions are you using here?
    • Which Felgo version, and development computer are you using?

    For testing, please also consider to

    • Remove all previous installations from your device
    • Remote the build folder from your file system
    • Create a fresh and clean build of your project with Qt Creator

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded