Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. QT5 Cross Compiling for Webassembly

QT5 Cross Compiling for Webassembly

Scheduled Pinned Locked Moved Unsolved The Lounge
5 Posts 3 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    icjohnsoia
    wrote on last edited by
    #1

    Cross compiling:

    Not sure if in the correct place to ask this question - please guide.

    Compiling as per:

    ./configure -recheck-all -opensource -egl -opengl es2 -xplatform wasm-emscripten -prefix /opt/Qt-Static

    Getting:
    Note: Using static linking will disable the use of dynamically
    loaded plugins. Make sure to import all needed static plugins,
    or compile needed modules into the library.

    Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

    WARNING: Cross compiling without sysroot. Disabling pkg-config

    WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.

    Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
    On Linux systems you may be able to install libclang from a package. On macOS you could
    use Homebrew's llvm package.
    On Windows you need to set LLVM_INSTALL_DIR to the installation path.

    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into '/opt/Qt-Static'.

    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.

    NB: libEGL.so and linkages seem correct?

    ian@desktop:~/Apps/QtWorld/qt5$ ls -la /usr/lib/x86_64-linux-gnu/libE*
    lrwxrwxrwx 1 root root 20 Jan 17 13:36 /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0 -> libEGL_mesa.so.0.0.0
    -rw-r--r-- 1 root root 267512 Jan 17 13:36 /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
    lrwxrwxrwx 1 root root 15 Aug 10 07:50 /usr/lib/x86_64-linux-gnu/libEGL.so -> libEGL.so.1.1.0
    lrwxrwxrwx 1 root root 15 Aug 10 07:50 /usr/lib/x86_64-linux-gnu/libEGL.so.1 -> libEGL.so.1.1.0
    -rw-r--r-- 1 root root 80448 Aug 10 07:50 /usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0

    **Can't seem to find a resolution anywhere. Am I out to lunch? Please guide.

    My system:

    ian@desktop:~/Apps/QtWorld/qt5$ uname -a
    Linux desktop 4.19.0-1-amd64 #1 SMP Debian 4.19.12-1 (2018-12-22) x86_64 GNU/Linux**

    Any direction would be very much appreciated.

    Thx

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What is exactly your problem ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • I Offline
        I Offline
        icjohnsoia
        wrote on last edited by
        #3

        @icjohnsoia said in QT5 Cross Compiling for Webassembly:

        Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

        QT won't compile with cross compiling enabled?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You don't show any specific failure so it doesn't help to give you any clue.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • veryqtpersonV Offline
            veryqtpersonV Offline
            veryqtperson
            wrote on last edited by
            #5

            Why would anyone need to compile QuickTime Player for WebAssembly.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved