Skip to content

Instantly share code, notes, and snippets.

@blockspacer
Forked from cajus/build-qt-wasm.sh
Created March 4, 2019 07:58
Show Gist options
  • Save blockspacer/698fbca13c01ab977256849daa6cc084 to your computer and use it in GitHub Desktop.
Save blockspacer/698fbca13c01ab977256849daa6cc084 to your computer and use it in GitHub Desktop.

Revisions

  1. @cajus cajus revised this gist Nov 21, 2018. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions build-qt-wasm.sh
    Original file line number Diff line number Diff line change
    @@ -14,10 +14,7 @@ cd ..
    git clone -b 5.12.0 https://code.qt.io/qt/qt5.git
    cd qt5
    ./init-repository -f --module-subset=qtbase,qtdeclarative,qtwebsockets,qtsvg,qtquickcontrols,qtquickcontrols2,qtgraphicaleffects
    ./configure -opensource -confirm-license -xplatform wasm-emscripten \
    -developer-build -release -static -no-feature-thread \
    -nomake tests -nomake examples -no-dbus -no-headersclean \
    -no-ssl -no-warnings-are-errors
    ./configure -opensource -confirm-license -xplatform wasm-emscripten -release -static -no-feature-thread -nomake examples -no-dbus -no-ssl
    make
    cd ..

  2. @cajus cajus revised this gist Nov 21, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build-qt-wasm.sh
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ cd ..
    # Build your project
    git clone https://github.com/msorvig/qt-webassembly-examples.git
    cd qt-webassembly-examples/quick_controls2_gallery
    ../../../qt5/bin/qmake
    ../../../qt5/qtbase/bin/qmake
    make

    # Serve it and browse to http://localhost:8000/gallery.html
  3. @cajus cajus renamed this gist Nov 20, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt → build-qt-wasm.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Get dependencies in place (example for Debian based systems)
    apt-get build-dep --yes qt5-default
    apt-get install --yes libxcb-xinerama0-dev git python cmake default-jre
    sudo apt-get build-dep --yes qt5-default
    sudo apt-get install --yes libxcb-xinerama0-dev git python cmake default-jre

    # Install Emscripten
    git clone https://github.com/juj/emsdk.git
  4. @cajus cajus created this gist Nov 20, 2018.
    31 changes: 31 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    # Get dependencies in place (example for Debian based systems)
    apt-get build-dep --yes qt5-default
    apt-get install --yes libxcb-xinerama0-dev git python cmake default-jre

    # Install Emscripten
    git clone https://github.com/juj/emsdk.git
    cd emsdk
    ./emsdk install latest
    ./emsdk activate latest
    source emsdk_env.sh
    cd ..

    # Build Qt
    git clone -b 5.12.0 https://code.qt.io/qt/qt5.git
    cd qt5
    ./init-repository -f --module-subset=qtbase,qtdeclarative,qtwebsockets,qtsvg,qtquickcontrols,qtquickcontrols2,qtgraphicaleffects
    ./configure -opensource -confirm-license -xplatform wasm-emscripten \
    -developer-build -release -static -no-feature-thread \
    -nomake tests -nomake examples -no-dbus -no-headersclean \
    -no-ssl -no-warnings-are-errors
    make
    cd ..

    # Build your project
    git clone https://github.com/msorvig/qt-webassembly-examples.git
    cd qt-webassembly-examples/quick_controls2_gallery
    ../../../qt5/bin/qmake
    make

    # Serve it and browse to http://localhost:8000/gallery.html
    python -mSimpleHTTPServer