潜江市网站建设_网站建设公司_图标设计_seo优化
2025/12/18 15:10:40 网站建设 项目流程
最近发现重新构建lazarus会出现以下Makefile错误提示,虽然不影响lazarus构建,但看起来很碍眼。
Makefile(1869,0) Error: linker: pipe: No such file or directory

QQ_1766041014204

原因:
config_lazarus目录的miscellaneousoptions.xml的Profile配置中包含中文引起的。

<?xml version="1.0" encoding="UTF-8"?>
<CONFIG><MiscellaneousOptions><Version Value="3"/><BuildLazarusOptions><Profiles Count="4"><Profile0 Name="常规的 IDE"><LCLPlatform Value="win32"/><IdeBuildMode Value="Build"/></Profile0><Profile1 Name="调试的 IDE"><LCLPlatform Value="win32"/><IdeBuildMode Value="Build"/><Options Count="1"><Item1 Value="-gw3 -gl -gh -gt -Co -Cr -Ci -Sa"/></Options></Profile1><Profile2 Name="优化的 IDE"><LCLPlatform Value="win32"/><IdeBuildMode Value="Clean All + Build"/><Options Count="1"><Item1 Value="-O3 -g- -Xs"/></Options></Profile2><Profile3 Name="清除+构建所有"><LCLPlatform Value="win32"/><IdeBuildMode Value="Clean All + Build"/></Profile3></Profiles>

处理方法:
退出lazarus,将miscellaneousoptions.xml所有Profile节点的中文改为英语就可以。

<?xml version="1.0" encoding="UTF-8"?>
<CONFIG><MiscellaneousOptions><Version Value="3"/><BuildLazarusOptions><Profiles Count="4"><Profile0 Name="Normal IDE"><LCLPlatform Value="win32"/><IdeBuildMode Value="Build"/></Profile0><Profile1 Name="Debug IDE"><LCLPlatform Value="win32"/><IdeBuildMode Value="Build"/><Options Count="1"><Item1 Value="-gw3 -gl -gh -gt -Co -Cr -Ci -Sa"/></Options></Profile1><Profile2 Name="Optimized IDE"><LCLPlatform Value="win32"/><IdeBuildMode Value="Build"/><Options Count="1"><Item1 Value="-O3 -g- -Xs"/></Options></Profile2><Profile3 Name="Clean Up + Build all"><LCLPlatform Value="win32"/><IdeBuildMode Value="Clean All + Build"/></Profile3></Profiles>

 


 

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询