How to include 3rd party library
-
wrote on 8 Apr 2024, 04:28 last edited by Saju 4 Aug 2024, 04:40
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?
-
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?
@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?
-
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?
wrote on 8 Apr 2024, 05:53 last edited by@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..
-
@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?
-
@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).
-
wrote on 11 Apr 2024, 00:50 last edited by
@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
- Add
1/6