Main Content

Troubleshoot File Name and Path Issues that Halt Model Builds

When a space character appears the file path, My Simulink® Real-Time™ model build on my Windows computer reports an error:

Simulink Real-Time model build cannot use a file path with spaces for model build directory.

When an open parenthesis character "(" appears in the file path, my model build reports an error:

Error(s) encountered while building "xxxx"

What This Issue Means

For the Simulink Real-Time model build … message, the error message indicates that 8.3 name or short file name generation is disabled on the drive where your model build folder is located and that one or more tools in the build process toolchain is not compatible with Windows path names that contain spaces. This type of path is referred to as a Windows long file name.

An example use case that demonstrates this issue is:

  • Create a folder path that contains spaces on a partition that does not have 8.3 alternate names enabled.

  • Build a model in that folder by using the slrealtime.tlc code generation target.

Because Windows default is to disable 8.3 file name generation on non-system drives and the QNX® Neutrino® toolchain for the code generation target is not compatible with file paths that contain spaces or special characters, the model build halts and does not output a real-time application.

For the Error(s) encountered while building … message, the error message indicates that a special character, such as an open parenthesis character "(" appears in the file path. Whether or not 8.3 name or short file name generation is disabled, you cannot use special characters in file path.

Try This Workaround

Try these workaround options to resolve the model build errors.

Create a Build Folder

Create a folder name that does not have spaces or special characters in it. Build your model in that folder.

Map the Build Folder

Map the folder name or path that has spaces or special characters in it to a folder name or path without spaces or special characters. Build your model in the mapped folder.

Related Topics

External Websites