I copied the compiled Win32 release EXE file to another computer, but found that the program could not run. The error is as follows:
The error message "pcl_common_release.dll" indicates that the dynamic link library is missing. Why does the computer generated in the compilation not mention that the dynamic link library is missing, but is missing on another computer?
Because I have written the folder where pcl_common_release.dll is located in the path of the system environment variable, and this does not exist on another computer because the PCL node cloud library is not installed. DLL file, and the location of the file where the dynamic link library is located is not written in the environment variable.
There are two solutions:
1. If the computer is running and the required PCL library is installed, you only need to check whether the DLL file location is written to the path of the system environment variable. On the author's computer, the location is in C: \ Program Files (x86) \ PCL 1.6.0 \ bin, add it to the environment variable, run the EXE, and the same error no longer occurs. If other libraries are missing, install the same method.
2. For computers that do not have a PCL library installed or do not want to add environment variables, you can find the missing DLL files, put it in the same folder of the EXE file to be run, because the system's search location contains the directory where the EXE file is located and the Directories specified in the environment variable path, this solves this problem. After adding the library, you may be prompted to missing other libraries before running the program. Install the same method and add it in sequence. When running on any computer, you only need to copy the EXE file and all the files in the folder to the same folder on the other computer, and there will be no missing DLL errors.
"Unable to start the program because *. dll is lost in the computer" Run EXE error Solution