Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for wasm. #49

Open
itsfarbod opened this issue May 17, 2023 · 4 comments
Open

Building for wasm. #49

itsfarbod opened this issue May 17, 2023 · 4 comments

Comments

@itsfarbod
Copy link

Hi,
i have installed qt from source with wasm emscripten plugin enabled to build this app for webassembly.
So i am not using qtbase5-dev package for this build.
But when i tried to configure the app i got this error message when it was checking for qt and qmake,

#0 3.217 checking for Qt... checking for qmake... qmake
#0 3.508 Info: creating stash file /tmp/tmp.R9EN4zMjdM/.qmake.stash
#0 3.764 rmdir: failed to remove '/tmp/tmp.R9EN4zMjdM': Directory not empty
#0 3.773 yes:
#0 3.773     QT_CXXFLAGS=-pipe -O2 -std=gnu++11 -s ALLOW_MEMORY_GROWTH=1 -Wall -Wextra -DQT_NO_DEBUG -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLTEST_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SENSORS_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="/tmp/tmp.R9EN4zMjdM" -I. -I/usr/local/Qt/include -I/usr/local/Qt/include/QtMultimediaWidgets -I/usr/local/Qt/include/QtMultimedia -I/usr/local/Qt/include/QtOpenGL -I/usr/local/Qt/include/QtPrintSupport -I/usr/local/Qt/include/QtQuickTest -I/usr/local/Qt/include/QtSvg -I/usr/local/Qt/include/QtUiTools -I/usr/local/Qt/include/QtWidgets -I/usr/local/Qt/include/QtGui -I/usr/local/Qt/include/QtQml -I/usr/local/Qt/include/QtXmlPatterns -I/usr/local/Qt/include/QtNetwork -I/usr/local/Qt/include/QtTest -I/usr/local/Qt/include/QtScript -I/usr/local/Qt/include/QtScriptTools -I/usr/local/Qt/include/QtSensors -I/usr/local/Qt/include/QtXml -I/usr/local/Qt/include/QtCore -I. -I/root/.emscripten_ports/openssl/include -I/usr/local/Qt/mkspecs/wasm-emscripten 
#0 3.773     QT_DIR=/usr/local/Qt/lib
#0 3.773     QT_LIBS=/usr/local/Qt/plugins/mediaservice/libqtmedia_audioengine.a /usr/local/Qt/plugins/video/videonode/libeglvideonode.a /usr/local/Qt/lib/libQt5MultimediaQuick.a /usr/local/Qt/plugins/playlistformats/libqtmultimedia_m3u.a /usr/local/Qt/plugins/platforms/libqwasm.a /usr/local/Qt/lib/libQt5EventDispatcherSupport.a /usr/local/Qt/lib/libQt5FontDatabaseSupport.a /usr/local/Qt/lib/libqtfreetype.a /usr/local/Qt/lib/libQt5EglSupport.a /usr/local/Qt/plugins/iconengines/libqsvgicon.a /usr/local/Qt/plugins/imageformats/libqgif.a /usr/local/Qt/plugins/imageformats/libqicns.a /usr/local/Qt/plugins/imageformats/libqico.a /usr/local/Qt/plugins/imageformats/libqjpeg.a /usr/local/Qt/plugins/imageformats/libqsvg.a /usr/local/Qt/plugins/imageformats/libqtga.a /usr/local/Qt/plugins/imageformats/libqtiff.a /usr/local/Qt/plugins/imageformats/libqwbmp.a /usr/local/Qt/plugins/imageformats/libqwebp.a /usr/local/Qt/plugins/sensors/libqtsensors_generic.a /usr/local/Qt/lib/libQt5MultimediaWidgets.a /usr/local/Qt/lib/libQt5Multimedia.a /usr/local/Qt/lib/libQt5OpenGL.a /usr/local/Qt/lib/libQt5PrintSupport.a /usr/local/Qt/lib/libQt5QuickTest.a /usr/local/Qt/lib/libQt5Quick.a /usr/local/Qt/lib/libQt5QmlModels.a /usr/local/Qt/lib/libQt5Svg.a /usr/local/Qt/lib/libQt5UiTools.a /usr/local/Qt/lib/libQt5Qml.a /usr/local/Qt/lib/libQt5XmlPatterns.a /usr/local/Qt/lib/libQt5Network.a /usr/local/Qt/lib/libQt5Test.a /usr/local/Qt/lib/libQt5ScriptTools.a /usr/local/Qt/lib/libQt5Widgets.a /usr/local/Qt/lib/libQt5Gui.a /usr/local/Qt/lib/libqtlibpng.a /usr/local/Qt/lib/libqtharfbuzz.a /usr/local/Qt/lib/libQt5Script.a /usr/local/Qt/lib/libQt5Sensors.a /usr/local/Qt/lib/libQt5Xml.a /usr/local/Qt/lib/libQt5Core.a /usr/local/Qt/lib/libqtpcre2.a  
#0 3.773     QT_UIC=/usr/local/Qt/bin/uic
#0 3.773     QT_MOC=/usr/local/Qt/bin/moc
#0 3.773     QT_RCC=/usr/local/Qt/bin/rcc
#0 3.773     QT_LRELEASE=/usr/local/Qt/bin/lrelease
#0 3.773     QT_LUPDATE=/usr/local/Qt/bin/lupdate
#0 3.773 checking correct functioning of Qt installation... failure
#0 3.782 configure: error: Failed to find matching components of a complete
#0 3.782                   Qt installation. Try using more options,
#0 3.782                   see ./configure --help.

How can i solve this problem and make this app?
Thanks,

@itsfarbod
Copy link
Author

My question is how can i build the app directly with qmake and make?

@hidehisaakiyama
Copy link
Member

We do not support qmake.
You need to use Autotools(./configure) or CMake to detect Qt settings and generate Makefile.
If your environment does not support both, you may need to write your own .pro file to generate Makefile by qmake.

@itsfarbod
Copy link
Author

Thanks for your answer,
But i want to know what is the actual problem in configuring the app?
What problem is with my QT build that configuration says it doesn't have correct functionality?
Because when i tried to configure with normal qt 5.15 build without wasm/emscripten plugin i also got this error.
Thanks,

@hidehisaakiyama
Copy link
Member

Qt installed from the official repository is designed so that configure and cmake can detect the paths of libraries, etc.
If you installed Qt from the source, you might be able to detect Qt by setting that information in ccmake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants