An installation path too long prevents the building/loading of the application

Symptom:

  • An application cannot be built/loaded under Windows.

  • One of the following messages is displayed (either in the Error Log or Problems view or in the file compile_result.txt) :

    path/file.h:number:number: fatal error: path/file.h: No such file or directory
    #include <path/file.h>
      ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
                      from path\file.c:number:
    path\file:number:number: fatal error: path/file.h: No such file or directory
    #include <path/file.h>
    compiler-name: error: CreateProcess: No such file or directory
    It is not possible to create an application for platform "name". The installation path might be too long. Use the setting "substPluginsFolder" to substitute the path for the compiler. (path_of_the_compiler)
  • One of the following messages is displayed for items within an PLC-object (x indicates the number of characters):

    The combination of absolute project path, configuration name and resource name exceeds the maximum length by x characters.
    The combination of absolute project path, configuration name, resource name and task name exceeds the maximum length by x characters.
    The combination of absolute project path, configuration name, resource name and program instance name exceeds the maximum length by x characters.
    The combination of absolute project path, configuration name, resource name and program type name exceeds the maximum length by x characters.

Causes:

  • The installation path of logi.CAD 3 is too long. That means that this path has more than 255 characters.

  • The installation path and the path of the compiler that is used for building/loading the application result in a path with more than 255 characters.

Solution:

  • Shorten the installation path of logi.CAD 3.

  • Shorten the name or path of the project.

  • Shorten the names for the mentioned elements within the PLC-object; hence for the →configuration, →resource, →program type, program →instance or →task . As some of these names are used twice in the combination, it might be sufficient to shorten the name by about half of the mentioned characters. Example: If the combination exceeds the maximum length by 9 characters, it is sufficient to shorten the name for the configuration by 5 characters.

  • Shorten the path that is used by the compiler. Use the following configuration method of logi.CAD 3 under Windows:

  1. Go to the folder where you installed logi.CAD 3.

  2. Locate the file logiCAD3.ini and open it in a text editor.

  3. At the end of the file, enter -DsubstPluginsFolder and enter the letter of a free drive.

    Example
    ...
    -DsubstPluginsFolder=P
  4. Save the file.

  5. Start logi.CAD 3 so that logi.CAD 3 uses the correspondingly shortened path to build and load the application.

Observe:

  • When logi.CAD 3 is exited properly, the drive is released again

  • During the operation of logi.CAD 3, do not manipulate the SUBST assignment of this drive under Windows. Otherwise irregularities might occur when building/loading applications.

  • Do not use Windows settings that permit longer paths than 255 characters. These settings are ignored by logi.CAD 3.

More useful information: Cannot build or load application

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg logi.cals recommends to install and use the most current versions of logi.CAD 3 and the runtime system so that the latest features and problem fixes according to the release notes are provided in the used version.


Did this article help you? Did you find the requested information in this user documentation?
If not, contact the support team of logi.cals. State your questions or suggestions to improve/enhance the user documentation as detailed as possible.