Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. How to include 3rd party library
Forum Updated to NodeBB v4.3 + New Features

How to include 3rd party library

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
6 Posts 4 Posters 772 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saju
    wrote on last edited by Saju
    #1

    We have used 3rd party library(libraw and OpenCV) in QT application. When we try to build with Web Assembly, throws an error that the library is not found. Can you help to include 3rd party library in the web Assembly?

    jsulmJ Ronel_qtmasterR 2 Replies Last reply
    0
    • S Saju

      We have used 3rd party library(libraw and OpenCV) in QT application. When we try to build with Web Assembly, throws an error that the library is not found. Can you help to include 3rd party library in the web Assembly?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Saju said in How to include 3rd party library:

      throws an error that the library is not found

      Did you build these libraries for Web Assembly?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      2
      • S Saju

        We have used 3rd party library(libraw and OpenCV) in QT application. When we try to build with Web Assembly, throws an error that the library is not found. Can you help to include 3rd party library in the web Assembly?

        Ronel_qtmasterR Offline
        Ronel_qtmasterR Offline
        Ronel_qtmaster
        wrote on last edited by
        #3

        @Saju Hi.Generally , when using a library for an architechture, that library should be first of all built for that architechture.That said, you should build your 3rd party library for webassembly else it will result in undefined reference..

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @Saju said in How to include 3rd party library:

          throws an error that the library is not found

          Did you build these libraries for Web Assembly?

          S Offline
          S Offline
          Saju
          wrote on last edited by Saju
          #4

          @jsulm I am using OpenCV. Can you please let me know how do I build this for web assembly?

          jsulmJ 8Observer88 2 Replies Last reply
          0
          • S Saju

            @jsulm I am using OpenCV. Can you please let me know how do I build this for web assembly?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Saju said in How to include 3rd party library:

            Can you please let me know how do I build this for web assembly?

            Using CMake (use cmake executable from your WebAssembly Qt installation).

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • S Saju

              @jsulm I am using OpenCV. Can you please let me know how do I build this for web assembly?

              8Observer88 Offline
              8Observer88 Offline
              8Observer8
              wrote on last edited by
              #6

              @Saju I didn't use OpenCV. But try these steps that I use for another libraries:

              • Add C:\emsdk\upstream\emscripten to the Path variable
              • cd opencv-1.2.3 && mkdir build && cd build
              • emcmake cmake ..
              • emmake make
              INCLUDEPATH += "E:/libs/opencv-1.2.3/include"
              LIBS += -L"E:/libs/opencv-1.2.3/build/lib"
              LIBS += -lopencv
              
              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved