Skip to content

Commit

Permalink
Add docs about compiling for WebAssembly on command line
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Oct 28, 2024
1 parent e2229b9 commit a49047f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#
# * type:
#
# mkdir build; cd build \
# mkdir build; cd build; \
# CMAKE_PREFIX_PATH=<PATH_TO_QT_SDK>/Qt/6.6.1/gcc_64/lib/cmake/Qt6LinguistTools \
# cmake -DCMAKE_INSTALL_PREFIX=<INSTALLATION_PATH> .. && \
# make -j<N_PROCS>
# make -j`nprocs`
#
# where
# - PATH_TO_QT_SDK is the path of your Qt SDK installation (typically $HOME/Qt),
Expand Down Expand Up @@ -64,15 +64,24 @@
# -DOPENGL=ON
#
# on the cmake command line to enable the driver.

#
# Notes if you use Qt Creator to build XaoS via cmake:
#
# * You may get an error like 'No CMake configuration for build type "Debug" found.'
# This is not the real error. Instead, you need to have a look at the Issues window
# and learn what the problem is. Maybe some package is not found by cmake.
# In particular, you may need to have libcups2-dev on your system already installed.
#
# * Also, a WebAssembly build is now fully possible.
# * Also, a WebAssembly build is now fully possible, either in Qt Creator,
# or, via command line:
#
# mkdir build; cd build; \
# EMSDK=<PATH_TO_EMSDK> \
# cmake -DQT_CHAINLOAD_TOOLCHAIN_FILE=<PATH_TO_EMSDK>/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \
# -DCMAKE_TOOLCHAIN_FILE=<PATH_TO_QT_SDK>/Qt/6.8.0/wasm_multithread/lib/cmake/Qt6/qt.toolchain.cmake .. &&
# make -j`nprocs`
#
# If you have an old cmake on your system, use <PATH_TO_QT_SDK>/Tools/CMake/bin/cmake instead of it.

###########################################################################

Expand Down

0 comments on commit a49047f

Please sign in to comment.