简体   繁体   English

如何从命令行为Borland C ++ Builder 5构建项目文件和包?

[英]How do I build project files and packages for Borland C++ Builder 5 from the command line?

How do I build Borland C++ project files (bpr) and package files (bpk) from the command line? 如何从命令行构建Borland C ++项目文件(bpr)和包文件(bpk)? Project groups (bpg) are apparently make files and can be compile with make. 项目组(bpg)显然是make文件,可以用make编译。 But bpks and bprs are xml based and the Export to Makefile won't compile with make. 但是bpks和bprs是基于xml的,Export to Makefile不会用make编译。 If I put a project in a bpg, make can't seem to find any of the files specified in the bpg since they all appear to be relative references. 如果我把一个项目放在一个bpg中,make似乎无法找到bpg中指定的任何文件,因为它们似乎都是相对引用。 I changed the references to absolutes and make reports: Fatal: Unable to open makefile 我更改了对绝对的引用并生成报告:致命:无法打开makefile

You don't need to directly compile a bpr. 您不需要直接编译bpr。 Just create a bpk which just includes that single bpr, and you can use make to compile it. 只需创建一个只包含单个bpr的bpk,就可以使用make来编译它。

"c:\program files\borland\cbuilder5\bin\make" -B -s -fabc.bpg

If you also have other borland compilers installed, do not call the make.exe from the other compiler. 如果还安装了其他borland编译器,请不要从其他编译器调用make.exe。

EDIT: execute the make command in the directory where the bpg and bpr is located. 编辑:在bpg和bpr所在的目录中执行make命令。

Perhaps you could give some more information on 'won't compile'. 也许你可以提供一些关于“不会编译”的更多信息。 Ie What error messages are you getting. 即你得到了什么错误消息。

One frequent problem the come up with make is addressed at the following 提出make的一个常见问题在下面解决

http://www.delphigroups.info/3/8/36427.html http://www.delphigroups.info/3/8/36427.html

Using bpr2mak and make works for me just fine, so as Roger said, you need to give details on what errors you're getting. 使用bpr2mak并为我的工作做得很好,正如罗杰所说,你需要详细说明你得到的错误。 BPK files can also be processed with bpr2mak. BPK文件也可以使用bpr2mak进行处理。 I'm using this method to compile a large project with many components, without difficulties. 我正在使用这种方法编译一个包含许多组件的大型项目,没有任何困难。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM