Cannot create cfg

Hi am running FinalBuilder 7 (EE) (Vista, Delphi XE) and am having trouble getting a build from the build command.

The build folder is d:\builder\build\delphi.

My project uses a 3rd party component (TMS Software's Flexcel) installed on a different folder. 

When I run the FB project, it gets to the build item and then errors:

Error creating cfg file.

 -> Error expanding variables in Library Path : Variable : FLEXCELVCL - does not exist!

I made sure that the building directory is read/write; but when I right click on the folder (d:\builder), it says it's "Read Only".  So I reset the flag.  But when I check on the properties again, it's back to read only.  Am I missing something?

Any help appreciated.

Edmund

 

https://www.finalbuilder.com/forum.aspx?aft=10336

Thanks Vincent!  That worked!

 

 

Hi Vincent,

i had installed FB8. And Set the Environment variables for Delphi 7. I restarted the FB.

Compiler selected is : D:\Delphi\Delphi7\bin\dcc32.exe
Generating compiler configuration file…
Error creating cfg file : D:\Delphi\Progs\mgmWWS\Winmgm.cfg
–> Error expanding variables in Library Path : [Expression Error]: Variable\Object “Everwood” does not exist! [phi)\Projects\Bpl;$(Everwood?)\Bin;$(RemObjects SD]

I don’t have Delphi 7 installed, so not able to test this right now. The variables are read from the registry,

HKLM\Software\Borland\Delphi\7.0\Environment Variables

Have a look and see if that variable is there. Remobjects is adding those values to your library path, so it should have also added them to delphi.

Hi Vincent,

on FB6 everything works fine.

I use Win10 64Bit

Environment Variables are under:
Computer\HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Environment Variables

10415_registry

under the LocalMachine i haven’t Environment Variables

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Borland\Delphi\7.0

I was mistaken, they are under HKEY_CURRENT_USER. I will do some testing today and see if I can figure out what is happening. Are you sure you have the correct version of delphi selected on the Delphi Action?

There were some major changes to how variables work between FB6 and FB7, the delphi action has it’s own variable namespace and virtualises the variables based on the compiler version (to allow multiple versions of delphi to define variables). So those variables are only valid for use in the Delphi action (or in child actions under them, due to how namespaces work).

Are you sure you have the option for D7 checked on that options page? I just tested here and it is working fine.

Hi Vincent,
i have uninstall RemObjects, because we don’t use it.
I delete everything with RemObject and Everwood in Registry.
Now I reload my Project in FB. Now it works.

Is there a problem with Environment Variables with spaces (REmObjects SDK)?

Variables with spaces are not supported.