This article is mainly to guide you how to use open62541 correctly and avoid entering the pit.
step 1 download the source code
Wall Crack recommends downloading the source code by yourself, then compiling, and finally using it, which will be more compatible with the running platform and reduce unnecessary errors.
How to download the source code? Click here to enter the github address of open62541, then find Releases on the right, click the blue "+35 releases",
After expanding, find the release version you want. Here, take
v1.1.3 as an example. Go down to find this version of Asserts, and then click to expand. The last 2 items are the source code. Just choose one to download (click to download).
Be sure to choose the release version , do not use the code of the main branch, because the release version is tested and verified, and most of the code of the main branch is under modification, without formal testing, and easy use will produce unpredictable consequences.
step 2 sub-module download
As mentioned in the previous article, some sub-modules need to be downloaded when certain functions (such as custom namespace) are enabled, and the following commands need to be executed
git submodule update --init
But the speed is often very slow, and sometimes it cannot be downloaded. After my close analysis, there are 2 sub-modules downloaded,
- mdnsd, location: open62541 source directory/deps/mdnsd
- ua-nodeset, location: open62541 source directory/deps/ua-nodeset
These sub-modules can be downloaded separately from the github website. I found that if you go to the website and use the browser to download, the speed will be faster than under the command line, which should be caused by the browser's download bonus.
-
mdnsd: https://github.com/troglobit/mdnsd/releases , but the open62541 used seems to be customized and no source was found, so I uploaded it to Baidu Cloud, click here , extract the code z1he, pay attention to the placement,
-
ua-nodeset: https://github.com/OPCFoundation/UA-Nodeset/releases , just unzip it to the corresponding directory after downloading, pay attention to the placement,
summary
Basically, if you follow the above 2 steps, there will not be too many problems.