Components Compiler Error (PLCNEXT0004): The library name '...' inside the library description must be equal to the library description file name '...'.
The referenced library contains an error. The name of the library specified in the library description file (*.libmeta) and the name of the library description file are not identical. Probably, the error was generated when creating the library.
Background: A library is a zip file with a different extension (*.pcwlx) containing a folder structure of the library-specific files. Renaming the .pcwlx file to .zip will enable you to uncompress the library file just like any other zip file.
Remedy
- Re-create the library and then re-import it into to your project as described in the topic "Adding libraries".For PLCnext Technology controllers, use the PLCnext Technology Toolchain for the creation of the library (the Toolchain is available in the download area of your controller at phoenixcontact.net/products). Or
- Uncompress and edit the .pclwx content as follows:
Note
This procedure is intended for experts only.- Locate the .pcwlx file on your disk. (By default, the library files are stored in the directory specified in the 'Extras > Options' dialog under the 'Tool | Directories' category.)
- Rename the .pcwlx file to .zip and uncompress it to a directory on your disk.
- In the folder structure, locate the .libmeta file and open the file with a text editor (the .libmeta file is in practice an XML file).
- In the .libmeta file, ensure that the "name" attribute contains the name of the .libmeta file. Modify the name, if required.Example:
File name "name" attribute value MyLibrary.libmeta <Library name="MyLibrary" ....> - Once you have made the change, select all files, compress it to a zip archive and rename it to the original .pcwlx.
- Add the library to your project as described in the topic "Adding Libraries".