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

Forums

OverviewFelgo 3 Support (Qt 5) › WASM: load external (c++) library

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24691

    Volker

    Hello,

    will it work to load external c++ library using QLibrary if project gets built for WASM target? How can I deploy this library? Is there something like ANDROID_EXTRA_LIBS for Android? Or should all code be statically linked as for iOS?

    Regards,

     

     

    #24692

    Alex
    Felgo Team
    #24693

    Volker

    Hi Alex,

    I saw this thread, but it would mean to put all sources into one project. I use libwebsockets that needs external tls library (currently wolfSSL). I saw also this problem with wasm modules:

    https://bugreports.qt.io/browse/QTBUG-63925

    (taken from this SO thread https://stackoverflow.com/questions/56303801/how-to-link-3rd-party-libraries-into-qt-project-that-is-targetted-for-webassembl)

    I tried to put so files into ressource file, but then got “LinkError: WebAssembly.instantiate(): table import 461 is smaller than initial 35799, got 35786”.

     

    #24694

    Alex
    Felgo Team

    Hi Volker,

    we would also have to closer investigate this for your use-case. The best bet here would probably be to try and link a static library to the wasm binary. If you need help with that, please reach out to support@felgo.com and we can discuss a technical support package to solve this for you.

    Best,
    Alex

Viewing 4 posts - 1 through 4 (of 4 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