You might need to tell FB to load the D2010 environment variables at startup, look in the FinalBuilder options, Borland Delphi, there is a check box there to enable that (restart FB afterwards).
Sorry it has taken so long to get back to you - I have been inter-state.
The check box “Use Rad Studio 2010 Environmental Variables at start up” was checked. Irrespective of whether this option is selected or not the failure result persists.
The log shows
Generating Resource File… Including ICON File Colin
Have a look a the project tree, is there a system or environment variable BDSCOMMONDIR? The rad studio installer usually defines these environment variables.
Your attachments didn’t show. Once you have attached an image, you need to click on the Insert image icon next to the attachement to insert it inti the editor.
Open a dos box and type : set and then hit enter. Is there an environment variable BDSCOMMONDIR?
What I suggest you do is in Delphi, add a User Override for the variable, and then In FB the “Use Rad Studio 2010 Environmental Variables at start up” will pick up the variable.
I’ve been telling Borland/Inpirise/Borland/CodeGear/Embarcadero for years to stop using enviroment variables for paths, it causes us no end of trouble. At the moment I have all sorts of problems on my dev machine because of this variable, both Delphi 2007 and 2010 define it differently, but only one is correct.
I have updated my previous message to show the images.
The Set command does not show a "BDSCOMMONDIR" environmental variable.
Scanning my registry does not shed any light on the issue. There are many references to BDSCOMMINDIR but nothing defining the setting.
When I set a local override, it shows up in D2010 and the registry entries
My Computer\HKEY_CURRENT_USER\Software\CodeGear\BDS\7.0\Environment Variables
My Computer\HKEY_USERS\S-1-5-21-4069010598-2697659349-1626754178-1125\Software\CodeGear\BDS\7.0\Environment Variables.
But there is no DOS environmental variable. Which raises the question, where does FB expect BDSCOMMONDIR to be defined? Note: I had no problems installing RS2010.
With BDSCOMMONDIR set locally, my single action project runs without error.
Delphi usually creates the environment variable during install or first run. On my system D2007 created it, and then D2009 and D2010 did as well, the result being that the later versions broke the earlier versions!
With the local override, FinalBuilder should pick that up when you have “Use Rad Studio 2010 Environmental Variables at start up” checked. FinalBuilder doesn’t actually have any specific knowledge of this variable, and doesn’t treat it differently than any other variable. The issue is that Delphi uses this variable in it’s library paths… but doesn’t accept variables on the command line, so they need to be expanded before being passed to the command line. So that means that FinalBuilder needs the variable to be defined, how that is done is immaterial to FinalBuilder. All that matters is that the variable is defined with the correct value.
I have the same issue with Delphi 2010. I discovered that if you have Delphi 2009 installed with Finalbuilder, and then uninstall Delphi 2009 upgrade to Delphi 2010 and then uncheck the Delphi 2009 under Tools in Finalbuilder it will no longer find the BDSCOMMONDIR variable even though Delphi 2009 is no longer installed.