源码编译Qt StateMachine

编译某个项目时报错提示fatal error: QSignalTransition: No such file or directory,是因为qtbase中没有包含StateMachine模块,需要qt/qtscxml.git - SCXML (state machine notation) compiler and related tools

编译安装qtscxml

执行如下步骤:

git clone https://code.qt.io/qt/qtscxml.git

cd qtscxml

mkdir build

cd build

qt-config-module ..

cmake --build . --parallel 16

cmake --install .

你可能感兴趣的:(qt,qt)