dockerfile to compile qt6.5 for webassembly on ubuntu 18.04
-
I am trying to compile qt6.5 for web assembly on ubuntu 18.04. I am unable to do it after various methods using dockerfile or otherwise.
Is there a dockerfile for installing qt6 for wasm or can someone point me to a set of instructions that works?
I tried the following:
qt6-dockerfile: gave make errors
qt5-wasm: This worked for qt5, but not for qt6 -
Hi and welcome to devnet,
Which error did you get exactly ?
By the way, 18.04 is not a supported platform for such a version of Qt. -
@shome Qt6 needs C++ 17 and the minimum version of g++ version for C++17 is 8.
ubuntu 18.04 has g++ 7.5.0. Therefore, you can not build Qt6 on ubuntu 18.04.
Ubuntu 20.04 or above is required. Even Ubuntu 20.04 is old. I would prefer Ubuntu 22.04. -
@SGaist I changed my OS to 20.04. I used the following link to compile: lBuilding_Qt_6_from_Git
I got branch 6.5
The error I got was
FAILED: qtbase/lib/libQt6Core.so.6.5.4
: && /usr/bin/c++ -fPIC -DNDEBUG -O3 -Wl,-Bsymbolic-functions -Wl,--no-undefined -Wl,-e,qt_core_boilerplate -Wl,--dynamic-list=/home/neo/Desktop/shome/softwares/qt6/qtbase/src/corelib/QtCore.dynlist -Wl,--version-script,/home/neo/Desktop/shome/softwares/qt6/qt6-build/qtbase/src/corelib/Core.version -Wl,--enable-new-dtags -shared -Wl,-soname,libQt6Core.so.6 -o qtbase/lib/libQt6Core.so.6.5.4 qtbase/src/corelib/CMakeFiles/Core.dir/Core_autogen/mocs_compilation.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qsimd.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qhash.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/compat/removed_api.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/archdetect.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qassert.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qendian.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qexceptionhandling.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qfloat16.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qglobal.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qhooks.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qlibraryinfo.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qlogging.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qmalloc.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qnumeric.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qoperatingsystemversion.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qrandom.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qsysinfo.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qtenvironmentvariables.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qtypes.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/global/qversiontagging.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qabstractfileengine.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qbuffer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qdataurl.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qdebug.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qdir.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qdiriterator.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfile.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfiledevice.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfileinfo.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfileselector.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfilesystemengine.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfilesystementry.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfsfileengine.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfsfileengine_iterator.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qiodevice.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qipaddress.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qlockfile.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qloggingcategory.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qloggingregistry.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qnoncontiguousbytedevice.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qresource.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qresource_iterator.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qsavefile.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qstandardpaths.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qstorageinfo.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qtemporarydir.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qtemporaryfile.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qurl.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qurlidna.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qurlquery.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qurlrecode.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qabstracteventdispatcher.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qabstractnativeeventfilter.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qassociativeiterable.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qbasictimer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qcoreapplication.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qcoreevent.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qdeadlinetimer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qelapsedtimer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qeventloop.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qiterable.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qmath.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qmetacontainer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qmetaobject.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qmetaobjectbuilder.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qmetatype.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qmimedata.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qobject.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qobjectcleanuphandler.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qpointer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qproperty.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsequentialiterable.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsharedmemory.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsignalmapper.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsocketnotifier.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsystemerror.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsystemsemaphore.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qtestsupport_core.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qtimer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qtranslator.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qvariant.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/plugin/qfactoryinterface.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/plugin/qfactoryloader.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/plugin/qpluginloader.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/plugin/quuid.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qcborcommon.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qcbordiagnostic.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qcborvalue.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qdatastream.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qjsonarray.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qjsoncbor.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qjsondocument.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qjsonobject.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qjsonparser.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qjsonvalue.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qjsonwriter.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qtextstream.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qxmlstream.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qxmlstreamgrammar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qxmlutils.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qbytearray.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qbytearraylist.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qbytearraymatcher.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qcollator.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qlatin1stringmatcher.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qlocale.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qlocale_tools.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qstring.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qstringbuilder.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qstringconverter.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qstringlist.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qstringtokenizer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qstringview.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qtextboundaryfinder.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qunicodetools.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qvsnprintf.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qrunnable.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qthread.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qcalendar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qdatetime.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qgregoriancalendar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qjuliancalendar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qlocaltime.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qmilankoviccalendar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qromancalendar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qtimezone.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qarraydata.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qbitarray.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qcontiguouscache.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qcryptographichash.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qfreelist.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qline.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qmargins.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qpoint.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qrect.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qrefcount.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qringbuffer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qshareddata.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qsharedpointer.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qsize.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qversionnumber.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/animation/qabstractanimation.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/animation/qanimationgroup.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/animation/qparallelanimationgroup.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/animation/qpauseanimation.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/animation/qpropertyanimation.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/animation/qsequentialanimationgroup.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/animation/qvariantanimation.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfilesystemengine_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfilesystemiterator_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfsfileengine_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qlockfile_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qcore_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qeventdispatcher_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qtimerinfo_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qthread_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qatomic.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qmutex.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qreadwritelock.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qsemaphore.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qthreadpool.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qthreadstorage.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qwaitcondition_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qexception.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qfutureinterface.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qfuturewatcher.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/thread/qresultstore.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qcommandlineoption.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qcommandlineparser.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir//3rdparty/double-conversion/double-conversion/bignum.cc.o qtbase/src/corelib/CMakeFiles/Core.dir//3rdparty/double-conversion/double-conversion/bignum-dtoa.cc.o qtbase/src/corelib/CMakeFiles/Core.dir//3rdparty/double-conversion/double-conversion/cached-powers.cc.o qtbase/src/corelib/CMakeFiles/Core.dir//3rdparty/double-conversion/double-conversion/double-to-string.cc.o qtbase/src/corelib/CMakeFiles/Core.dir//3rdparty/double-conversion/double-conversion/fast-dtoa.cc.o qtbase/src/corelib/CMakeFiles/Core.dir//3rdparty/double-conversion/double-conversion/fixed-dtoa.cc.o qtbase/src/corelib/CMakeFiles/Core.dir//3rdparty/double-conversion/double-conversion/string-to-double.cc.o qtbase/src/corelib/CMakeFiles/Core.dir//3rdparty/double-conversion/double-conversion/strtod.cc.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qeasingcurve.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/tools/qtimeline.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qlocale_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qcollator_icu.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qlocale_icu.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/text/qregularexpression.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qhijricalendar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qislamiccivilcalendar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qjalalicalendar.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qtimezoneprivate.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qtimezoneprivate_tz.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qtimezoneprivate_icu.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/time/qdatetimeparser.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfilesystemwatcher.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfilesystemwatcher_polling.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qfilesystemwatcher_inotify.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qprocess.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qprocess_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qsettings.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/forkfd_qt.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qelapsedtimer_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qstandardpaths_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/io/qstorageinfo_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/itemmodels/qabstractitemmodel.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/itemmodels/qitemselectionmodel.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/itemmodels/qabstractproxymodel.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/itemmodels/qconcatenatetablesproxymodel.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/itemmodels/qidentityproxymodel.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/itemmodels/qsortfilterproxymodel.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/itemmodels/qtransposeproxymodel.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/itemmodels/qstringlistmodel.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/plugin/qlibrary.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/plugin/qelfparser_p.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/plugin/qlibrary_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qeventdispatcher_glib.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsharedmemory_posix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsharedmemory_systemv.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsharedmemory_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsystemsemaphore_posix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsystemsemaphore_systemv.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/kernel/qsystemsemaphore_unix.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qcborstreamreader.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/serialization/qcborstreamwriter.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/mimetypes/qmimedatabase.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/mimetypes/qmimeglobpattern.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/mimetypes/qmimemagicrule.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/mimetypes/qmimemagicrulematcher.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/mimetypes/qmimeprovider.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/mimetypes/qmimetype.cpp.o qtbase/src/corelib/CMakeFiles/Core.dir/mimetypes/qmimetypeparser.cpp.o -Wl,-rpath,::::::: -lm /usr/lib/x86_64-linux-gnu/libicui18n.so /usr/lib/x86_64-linux-gnu/libicuuc.so /usr/lib/x86_64-linux-gnu/libicudata.so -ldl /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libz.so -lpthread /usr/lib/x86_64-linux-gnu/libpcre2-16.so /home/neo/miniconda3/lib/libzstd.a -pthread /usr/lib/x86_64-linux-gnu/libgthread-2.0.so /usr/lib/x86_64-linux-gnu/librt.so && :
/usr/bin/ld: qtbase/src/corelib/CMakeFiles/Core.dir/text/qstringconverter.cpp.o: in function `QStringConverterBase::State::reset()': -
@shome things are not clear:
- why do you have conda in the mix ?
- why are you building for desktop since you mentioned wasm ?
- why not make use of the pre-built Qt for wasm on a supported distribution since you want to use Docker ?
-
@SGaist : as per my limited understanding I need to install qt for desktop before I can compile qmake with wasm support. Is it possible to avoid the installation for desktop?
I need qt6.4 and above with wasm support. How can I get pre-built Qt for wasm for ubuntu 20.04
I need to check how conda got invoked even though I was not in any virtual environment
-
@SGaist I could build and install Qt6.6.2 using steps at https://wiki.qt.io/Building_Qt_6_from_Git. Next I used the instructions at https://doc.qt.io/qt-6/wasm.html. I could compile qt for wasm by the above method.
would the qt for wasm installation work if i had used prebuilt packages as follows:
sudo apt install qt6-base-dev qt6-base-private-dev qt6-declarative-dev qt6-declarative-private-dev qt6-tools-dev qt6-tools-private-dev qt6-scxml-dev qt6-documentation-tools libqt6core5compat6-dev qt6-tools-dev-tools qt6-l10n-tools qt6-shader-baker libqt6shadertools6-dev qt6-quick3d-dev qt6-quick3d-dev-tools libqt6svg6-dev libqt6quicktimeline6-dev libqt6serialport6-dev