How to include 3rd party library
Unsolved
Qt for WebAssembly
-
@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 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:
Can you please let me know how do I build this for web assembly?
Using CMake (use cmake executable from your WebAssembly Qt installation).
-
@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