View Full Version : Multiple versions of Delphi, cannot build
martijntonies
05-11-2011, 09:28 AM
Hi,
I have both Delphi 2007 and Delphi 2009 installed.
On my PC, I have a VBP project for Delphi 2009 and it compiles just fine.
However, a Delphi 2007 just won't build. At first, I got an error from msbuild saying " DebugVN " wasn't valid, so I modified " Borland.Delphi.Targets " in the MS.Net Framework folder and removed that entry.
Now I get compiling errors, while the project compiles just fine in the Delphi 2007 IDE. I get the impression it's using Delphi 2009 instead of 2007.
Anyone got any clues?
With regards,
Martijn Tonies
Upscene Productions
kinook
05-11-2011, 09:36 AM
For the Delphi 2007 step, you will need to specify the location of rsvars.bat for that version of Delphi, and possibly the full path+filename for msbuild.exe (if an older version is needed), on the Options tab of the Make Delphi action.
http://www.kinook.com/VisBuildPro/Manual/delphioptionstab.htm
martijntonies
05-11-2011, 10:18 AM
For the Delphi 2007 step, you will need to specify the location of rsvars.bat for that version of Delphi, and possibly the full path+filename for msbuild.exe (if an older version is needed), on the Options tab of the Make Delphi action.
http://www.kinook.com/VisBuildPro/Manual/delphioptionstab.htm
Right, now I see what "rsvars" is about, I didn't know that.
I checked the Help for a Delphi step, but couldn't find anything related to other Delphi versions on the first Help page there. Can I suggest you put a paragraph "Compiling with a different Delphi version" in it that points to the rsvars setting with a short explanation?
Few more questions:
It seems that the Delphi step cannot find build configurations in the project file for D2007, is that a known issue?
Can I do that rsvars thingy for the whole project so that I do not have to do it in every Delphi step?
Thanks.
kinook
05-11-2011, 11:22 AM
Right, now I see what "rsvars" is about, I didn't know that.
I checked the Help for a Delphi step, but couldn't find anything related to other Delphi versions on the first Help page there. Can I suggest you put a paragraph "Compiling with a different Delphi version" in it that points to the rsvars setting with a short explanation?
Will do.
Few more questions:
It seems that the Delphi step cannot find build configurations in the project file for D2007, is that a known issue?
Please ZIP and send or post a problem project file.
Can I do that rsvars thingy for the whole project so that I do not have to do it in every Delphi step?
No, but you could put it in a macro (i.e., D2007PATH) and reference that via %D2007PATH% in the Make Delphi actions. Save the attached project in your project folder and build to update all such actions (but you mentioned that some steps are for D2009, and this would update all steps).
martijntonies
05-12-2011, 01:50 AM
Will do.
btw, can you detect installed Delphi versions and provide a drop down box instead of the thing with "rsvars"?
Please ZIP and send or post a problem project file.
See attached, just the project, Delphi picks up the build config, VBP doesn't.
No, but you could put it in a macro (i.e., D2007PATH) and reference that via %D2007PATH% in the Make Delphi actions. Save the attached project in your project folder and build to update all such actions (but you mentioned that some steps are for D2009, and this would update all steps).
Right, that's useful, thanks!
With regards,
Martijn Tonies
kinook
05-12-2011, 12:49 PM
btw, can you detect installed Delphi versions and provide a drop down box instead of the thing with "rsvars"?
We'll consider it.
See attached, just the project, Delphi picks up the build config, VBP doesn't.]
This will be fixed in the next version.
Thanks.
martijntonies
05-13-2011, 02:46 AM
This will be fixed in the next version.
Thanks.
Great, thanks for the fast replies.
:)
kinook
02-22-2012, 02:29 PM
This is implemented in v8.0.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.