Qt WebAssembly: Porting Current Qt C++ project to web assembly
-
Hi,
Did you already tried to build your project with a Qt version built for WebAssembly ?
-
Yes i did , it gives some errors that LLVM bitcode is not generated.
I am sure I am missing something in my build command on bash.Here it is:
./../../QcStyle/Style.h:14:10: fatal error: 'QcStyle/Base/Application.h' file not found
#include <QcStyle/Base/Application.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
Makefile:921: recipe for target 'main.o' failed
make: *** [main.o] Error 1
root@FAUNUS:/home/izza/qt-webassembly-examples/QcStyle/designer# -
this is my designer.pro
As you can see, includepath has the path to the desired library, but still the error persists. Please someone help out:
qmake is not working for qt5 on bash.
-
You should use the full path to the qmake binary matching the Qt version you want to use.
-
/home/izza/QcStyle/designer# /usr/local/Qt-5.12.2/bin/qmake -makefile -o makefile designer.pro
This is the path to qmake binary i am adding while building the project. No luck same error .
Its looking for header file still/ -
What did you do yourself ?