C++ Builder 2007 support - Test Build

Hi All

Here is a test build with C++Builder 2007 support :

https://www.finalbuilder.com/downloads/finalbuilder/550/FB550_466.exe

The support has been added to the C++Builder 2006 action, be sure to select the correct compiler version. Also, if you added a BDS project variable (in order to use msbuild) then remove it to avoid conflicting with the action, which set the environment variable to the correct value depending on the compiler version.

This update to the C++Builder 2006 action also provides support for choosing an external resource compiler other than borland's brcc (which has problems with high color & vista icons) and the ability to specify a manifest file (for themes and vista UAC support).

Please report any issues with this action direct to support at finalbuilder.com

 

I get this error when trying to run with BCB2009 using the action C++Builder2006/7/8 with C++ Builder version set to 2009. Where does MSBuild come from?



C++Builder 2006/7/8 Project [ D:\continuous_integration\src\projects\SusPush\Tests\UnitTest1.cbproj ]
Status: Error
Date: 22/12/2009
Time: 15:41:45:005
End: 15:41:46:671
Duration: 00:00:01:666

Action Messages:
Generating Resource File
Compiling resource file : UnitTest1.rc
Borland Resource Compiler Version 5.40
Copyright © 1990, 1999 Inprise Corporation. All rights reserved.
Lines: Current 0, Total 0
New File: UnitTest1.rc
Lines: Current 1, Total 0
New File: D:\continuous_integration\src\projects\SusPush\Tests\UnitTest1.rc
Lines: Current 0, Total 0
New File:
Resource Compiler OK.
Running MSBuild with parameters : /property:Config="" /nologo /target:“Build” “D:\continuous_integration\src\projects\SusPush\Tests\UnitTest1.cbproj” /logger:“C:\Program Files (x86)\FinalBuilder 6\FinalBuilder.MSBuild.Tasks.dll” /noconlog
MSBuild returned non zero : 1

Hi Paul

MSBuild is part of the .net framework, it’s microsoft’s build engine. CB2009 uses MSBuild rather than make, it’s much easier to work with from our point of view. Please try this build, I did make some minor changes to some error handling in the action last week which helped resolve a similar issue for another customer :

https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1864.exe

 Trying with 6.3.0.1864 gives exactly the same issue ie.

 

C++Builder 2006/7/8 Project [ D:\continuous_integration\src\projects\DKProgrammer\DK2Prog.cbproj ]

    Status: Error

      Date: 04/01/2010

      Time: 11:11:14:678

       End: 11:11:16:806

  Duration: 00:00:02:128

 

Action Messages:

Running MSBuild with parameters : /property:Config="" /nologo /target:"Build"  "D:\continuous_integration\src\projects\DKProgrammer\DK2Prog.cbproj" /logger:"C:\Program Files (x86)\FinalBuilder 6\FinalBuilder.MSBuild.Tasks.dll" /noconlog

MSBuild returned non zero : 1

 

Hi Paul

It looks like you have not specified a config. That should still work (it should build all configs), but it might be worth trying with a config set.

MSBuild without a config from the command line works fine:

C:\src\projects\DKProgrammer>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild /property:Config="" /nologo /target:“Build” “c:\src\projects\dkprogrammer\dk2prog.cbproj” /logger:“C:\Program Files\FinalBuilder 6\FinalBuilder.MSBuild.Tasks.dll”
/noconlog


Also how can I tell which MSBuild.exe FB is using - as I have numerous MS.net versions installed and therefore numerous MSBuild.exe?

The version of msbuild used for the CBuilder action is v2.

The error handling in the CBuilder MSBuild tasks is somewhat lacking. We did have another user with a similar problem that was caused by some environment variables being set that shouldn’t be. This is especially a problem when you have multiple versions of CBuilder installed, as they all rely in the same variables but need different values. Can you check if there is a system variable CB2007DIR in FB, as the value of this variable is used to set the BDS environment variable before running msbuild. If this variable is wrong then msbuild typically barfs without any explanation.

 There is a FB system variable:   CB2009DIR  but as I have never install CB2007 on the machine that variable is undefined.

(I hijacked this thread to start a discussion about BCB 2009 issues!)

To note there is an environment variable BDS which points to the same location as CB2009DIR

Hi Paul

Which operating system are you seeing this on? We have another customer reporting the same issue (but with CB2007), on windows 7 64bit (but it works ok on his xp machine). I’m using windows 7 x64 here on my dev machine and I’ve not been able to reproduce the problem.

Can you open a command window and type :

set > variables.txt

and then send us the txt file (to support at finalbuilder dot com) so we can try to replicate the environment exactly.

 Thanks for investigating I am using Windows Server 2008 Standard

Email to follow