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

时间:2022-06-05 22:50:07

How do I build Borland C++ project files (bpr) and package files (bpk) from the command line? Project groups (bpg) are apparently make files and can be compile with make. But bpks and bprs are xml based and the Export to Makefile won't compile with 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. I changed the references to absolutes and make reports: Fatal: Unable to open makefile

如何从命令行构建Borland C ++项目文件(bpr)和包文件(bpk)?项目组(bpg)显然是make文件,可以用make编译。但是bpks和bprs是基于xml的,导出到Makefile不会用make编译。如果我把一个项目放在一个bpg中,make似乎无法找到bpg中指定的任何文件,因为它们看起来都是相对引用。我将引用更改为绝对并生成报告:致命:无法打开makefile

3 个解决方案

#1


You don't need to directly compile a bpr. Just create a bpk which just includes that single bpr, and you can use make to compile it.

您不需要直接编译bpr。只需创建一个只包含单个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命令。

#2


Perhaps you could give some more information on 'won't compile'. I.e. 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

#3


Using bpr2mak and make works for me just fine, so as Roger said, you need to give details on what errors you're getting. BPK files can also be processed with bpr2mak. I'm using this method to compile a large project with many components, without difficulties.

使用bpr2mak并为我工作就好了,正如罗杰所说,你需要详细说明你得到的错误。 BPK文件也可以使用bpr2mak进行处理。我正在使用这种方法编译一个包含许多组件的大型项目,没有任何困难。

#1


You don't need to directly compile a bpr. Just create a bpk which just includes that single bpr, and you can use make to compile it.

您不需要直接编译bpr。只需创建一个只包含单个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命令。

#2


Perhaps you could give some more information on 'won't compile'. I.e. 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

#3


Using bpr2mak and make works for me just fine, so as Roger said, you need to give details on what errors you're getting. BPK files can also be processed with bpr2mak. I'm using this method to compile a large project with many components, without difficulties.

使用bpr2mak并为我工作就好了,正如罗杰所说,你需要详细说明你得到的错误。 BPK文件也可以使用bpr2mak进行处理。我正在使用这种方法编译一个包含许多组件的大型项目,没有任何困难。