I copy the plug-in emQ2.3.7 version to the new version EMq2.3.11, the compilation can pass, but the operation error. After repeated debugging, it was found that the version number was different:
/ home/emqx rel – 2.3.? /deps/emq_auth_clientid/Makefile
Emq v2.3.7
PROJECT = emq_auth_clientid
PROJECT_DESCRIPTION = Authentication with ClientId/Password
PROJECT_VERSION = 2.3.7
NO_AUTOPATCH = cuttlefish
BUILD_DEPS = emqttd cuttlefish
dep_emqttd = git https://github.com/emqtt/emqttd master
dep_cuttlefish = git https://github.com/emqtt/cuttlefish
Copy the code
Emq v2.3.11
PROJECT = emq_auth_clientid PROJECT_DESCRIPTION = Authentication with ClientId/Password PROJECT_VERSION = 2.3.11 NO_AUTOPATCH = cuttlefish BUILD_DEPS = emqttd cuttlefish dep_emqttd = git https://github.com/emqtt/emqttd master Dep_cuttlefish = git v2.0.11 at https://github.com/emqtt/cuttlefishCopy the code
After the source code upgrade, the version number is different. PROJECT_VERSION and DEP_cuttlefish versions have changed. The suffix dep_cuttlefish indicates v2.0.11
If the user copies the source code of the plug-in in the dePS path of 2.3.7 to 2.3.11, the two versions in the appeal need to be adjusted to the version numbers corresponding to 2.3.11. Otherwise, the program will have problems compiling and executing.