How to use Linux compile the 3DSLicer source code

Hello,everyone!I have encountered some installation problems. I hope you can help me.
I want to install 3DSlicer(version:5.0.2).At present, I have successfully installed Qt5 (version:5.12.1or5.13.0) and other dependencies. When I execute cmake/ After slicer-5.0.2/, the system reported the following error:

Then I configured the environment variables:
export Qt5_DIR=/usr/local/3Dslicer/qt5
export PATH=/usr/local/3Dslicer/qt5/bin:$PATH
export MANPATH=$Qt5_DIR/man:$MANPATH
export LD_LIBRARY_PATH=$Qt5_DIR/lib:$LD_LIBRARY_PATH

Tried again,


There are still two components not found,
I don’t know what’s wrong. I’m looking forward to your reply.

You need to install (or build) Qt with webengine component enabled.

Thank you for your reply. I installed all modules by default when installing Qt5, but webengine was not compiled, so the installation failed. I don’t know what went wrong

Webengine component might not be enabled by default. You can run the Qt install tool again and install that component. Also make sure you specify this installed Qt for Slicer (maybe CMake has found some system Qt that did not have Webengine).