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 770 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 8 Apr 2024, 04:28 last edited by Saju 4 Aug 2024, 04:40
    #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?

    J R 2 Replies Last reply 8 Apr 2024, 05:43
    0
    • S Saju
      8 Apr 2024, 04:28

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 8 Apr 2024, 05:43 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 8 Apr 2024, 12:34
      2
      • S Saju
        8 Apr 2024, 04:28

        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?

        R Offline
        R Offline
        Ronel_qtmaster
        wrote on 8 Apr 2024, 05:53 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
        • J jsulm
          8 Apr 2024, 05:43

          @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 8 Apr 2024, 12:34 last edited by Saju 4 Aug 2024, 12:34
          #4

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

          J 8 2 Replies Last reply 9 Apr 2024, 05:43
          0
          • S Saju
            8 Apr 2024, 12:34

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

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 9 Apr 2024, 05:43 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
              8 Apr 2024, 12:34

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

              8 Offline
              8 Offline
              8Observer8
              wrote on 11 Apr 2024, 00:50 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

              1/6

              8 Apr 2024, 04:28

              • Login

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