Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compilation of Delphi components for C++Builder 2007

55 views
Skip to first unread message

Eugene Mayevski

unread,
Jul 13, 2007, 7:26:11 AM7/13/07
to
Hello!

I'm totally confused with C++Builder 2007 and it's compilation and use of
existing components.
If I have a set of Delphi-written components, what are my steps to get the
components working with C++Builder 2007?

I've created new packages for C++Builder 2007, but how do I compile them
from command line? I have read something about MSBuild in help file but (a)
I can't find msbuild on my system, (b) project files are not good to use
because it's necessary to specify some output paths from outside of the
project, and (c) I'd prefer old good make and makefiles (mainly for
compatibility) but I don't see any bpr2mak or similar tool to create
makefiles.

Any help is much appreciated.

With best regards,
Eugene Mayevski
http://www.SecureBlackbox.com - the comprehensive component suite for
network security

Jonathan Benedicto

unread,
Jul 13, 2007, 11:25:47 AM7/13/07
to
Eugene Mayevski wrote:
> I've created new packages for C++Builder 2007, but how do I compile them
> from command line?

MSBuild /t:Build <projectname>.cbproj or <projectname>.dproj

> (a) I can't find msbuild on my system

%WinDir%\Microsoft.NET\Framework\v2.0.50727


> (b) project files are not good to use because it's necessary to specify
> some output paths from outside of the project

/p:FinalOutputDir=C:\Output;IntermediateOutputDir=C:\Temp

> (c) I'd prefer old good make and makefiles (mainly for compatibility) but
> I don't see any bpr2mak or similar tool to create makefiles.

Some people have expressed the wish to have this, however MSBuild is quite
capable, and I'd expect it to be able to provide all the functionality you
need.

Don't hesitiate to ask in .ide if you need help.

Jon

Eugene Mayevski

unread,
Jul 13, 2007, 12:31:38 PM7/13/07
to
Hello!
You wrote on Fri, 13 Jul 2007 11:25:47 -0400:

??>> (a) I can't find msbuild on my system
JB> %WinDir%\Microsoft.NET\Framework\v2.0.50727

Thank you. That was the missing point (I couldn't find MSBuild for some
strange reason .. ).

Eugene Mayevski

unread,
Jul 14, 2007, 2:24:52 PM7/14/07
to
Hello!
You wrote on Fri, 13 Jul 2007 11:25:47 -0400:

JB> Eugene Mayevski wrote:
??>> I've created new packages for C++Builder 2007, but how do I compile
??>> them from command line?
JB> MSBuild /t:Build <projectname>.cbproj or <projectname>.dproj

I tried doing this but got the strange error (below) despite the fact that I
have D:\Borland\Delphi11\Bin (the folder with Borland.Build.Tasks.Shared.dll
file) specified in PATH variable. Also I tried changing directory to
D:\Borland\Delphi11\Bin before calling MSBuild (this didn't help).

Build started 14.07.2007 21:22:01.
__________________________________________________
Project
"C:\Projects\SecureBlackbox\Redist\SBB4\VCL\Packages\BaseBBoxB11.cbproj"
(Build target(s)):

Target _PasDepCheck:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets(427,3):
error MSB4062: The "DependencyCheck" task could not be loaded from the
assembly \bin\Borland.Build.Tasks.Shared.dll. Could n
ot load file or assembly 'file:///C:\bin\Borland.Build.Tasks.Shared.dll' or
one of its dependencies. The system cannot find the file specified. Confirm
that the <UsingTask> declaration is correct, and
that the assembly and all its dependencies are available.
Done building target "_PasDepCheck" in project "BaseBBoxB11.cbproj" --
FAILED.

Done building project "BaseBBoxB11.cbproj" -- FAILED.

Build FAILED.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets(427,3):
error MSB4062: The "DependencyCheck" task could not be loaded from the
assembly \bin\Borland.Build.Tasks.Shared.dll. Could not
load file or assembly 'file:///C:\bin\Borland.Build.Tasks.Shared.dll' or
one of its dependencies. The system cannot find the file specified. Confirm
that the <UsingTask> declaration is correct, and t
hat the assembly and all its dependencies are available.
0 Warning(s)
1 Error(s)

Jonathan Benedicto

unread,
Jul 14, 2007, 4:11:03 PM7/14/07
to
Eugene Mayevski wrote:
> I tried doing this but got the strange error (below) despite the fact that
> I have D:\Borland\Delphi11\Bin (the folder with
> Borland.Build.Tasks.Shared.dll file) specified in PATH variable. Also I
> tried changing directory to D:\Borland\Delphi11\Bin before calling MSBuild
> (this didn't help).

You need to define the BDS environment variable. Eg:

set BDS=D:\Borland\Delphi11

HTH

Jon

Eugene Mayevski

unread,
Jul 31, 2007, 10:52:34 AM7/31/07
to
Hello!
You wrote on Sat, 14 Jul 2007 16:11:03 -0400:

JB> You need to define the BDS environment variable. Eg:
JB> set BDS=D:\Borland\Delphi11

Thank you very much for your help. Now the files are build successfully.
There's one problem though - I have to generate DCUs, HPP/OBJ and library
files. For whatever reason the compiler creates only hpp and obj and doesn't
create (or write down) DCU files. I have searched across the whole disk.

Does this mean that I have to use Delphi personality to compile DCU files?

0 new messages