First attempt with Delphi

Hi, I've loaded FinalBuilder with a view to using it to build D2007 projects.

I've created a simple new project with a single action - 'compile Win32 delphi project' and nominated my project source. I see that the action expects a dpr (rather than a 'dproj') but ok. I select the 'compiler type' to D2007 and execute the action. I get the message 'unable to expand library variable 'Deplhi'. If I change the compiler to Delphi 7, it works ok.

I have both Delphi's installed on my machine, invoking each using the relevant 'dpr' or 'dproj' allows me to open the ide's and compile fine. What might I be doing wrong?

Thanks

Brian

 

Hi Brian,

Thanks for your post. Sorry it's taken us a few days to get back to you. I have a few suggestions which should help you get things working:

- First, does the error message actually say 'Deplhi', or is that a typo in the post?

- If you go to Tools -> Options -> Compilers -> Delphi, there is an option on the first tab called "Use BDS 2007 Environment Variables at Startup". If this is not checked, check it and restart FinalBuilder.

- If you go to your Delphi action and look at the Directories tab, is the "Use Global Library Path" option checked? If it's not checked, click on the Edit button for the library path and look for an entry in the list which might be causing problems. If it is checked, you may want to uncheck it and see if it makes a difference (by default, the global library path is read from the Registry, otherwise it is set from the options.)

Please let us know how you go.

Regards,

Angus

 

PS The dpr vs. dproj distinction is because the dproj is actually a project settings file, and is not accepted by the command line Delphi compiler. The dpr is the actual project file. The Delphi IDE accepts either.