# Global library path not picked up XE4 configuration

**URL:** https://www.finalbuilder.com/forums/t/global-library-path-not-picked-up-xe4-configuration/2184
**Category:** Discussion
**Created:** [August 5, 2013, 6:25am UTC](https://www.finalbuilder.com/forums/t/global-library-path-not-picked-up-xe4-configuration/2184 "2013-08-05T06:25:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tony.hoyle](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/97f17d/32.png) [@tony.hoyle](https://www.finalbuilder.com/forums/u/tony.hoyle)
#### Post date: [August 5, 2013, 6:25am UTC](https://www.finalbuilder.com/forums/t/global-library-path-not-picked-up-xe4-configuration/2184/1 "2013-08-05T06:25:04Z")

</div>

Hi,

We're transitioning from XE2 to XE4 so have both in the build environment.&nbsp; I'm trying to get both builds to work on the same machine.

XE2 projects are bulding OK.

XE4 projects are unable to see the library path set in the settings \*unless\* I set 'Use Registry for library paths', where it does set a library path - however if you then build from finalbuilder server the same problem manifests.

If I uncheck 'use global delphi library path' and copy the library path into the build action directly it builds (so the path is correct).&nbsp;

The action thinks that the path is set correctly&nbsp;-&nbsp;MsgBox(Action.LibraryPath) and MsgBox GetOptionsObject("Borland Delphi").DXE4LibraryPathWin32 in the BeforeAction display the same path in all cases, but the behaviour is different!&nbsp;

Example log with 'Use Global Delphi Library Path' and the path entered into the library paths&nbsp;dialog:

Compiler selected is : C:\Program Files (x86)\Embarcadero\RAD Studio\11.0\bin\dcc32.exe  
Generating Resource File....  
Including ICON File :C:\\Program Files (x86)\\Embarcadero\\RAD Studio\\11.0\\bin\\delphi\_PROJECTICON.ico  
-v D:\Rps\RpsSupport6\RpsControls\RPSControls6.rc  
CodeGear Resource Compiler/Binder  
Version 1.2.2 Copyright (c) 2008-2012 Embarcadero Technologies Inc.  
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0  
Copyright (C) Microsoft Corporation.&nbsp; All rights reserved.  
Creating D:\Rps\RpsSupport6\RpsControls\RPSControls6.RES  
Using codepage 1252 as default  
D:\Rps\RpsSupport6\RpsControls\RPSControls6.rc.  
Writing ICON:1,&nbsp;lang:0x409,&nbsp;size 3752  
Writing ICON:2,&nbsp;lang:0x409,&nbsp;size 2216  
Writing ICON:3,&nbsp;lang:0x409,&nbsp;size 1736  
Writing ICON:4,&nbsp;lang:0x409,&nbsp;size 1384  
Writing ICON:5,&nbsp;lang:0x409,&nbsp;size 270376  
Writing ICON:6,&nbsp;lang:0x409,&nbsp;size 9640  
Writing ICON:7,&nbsp;lang:0x409,&nbsp;size 4264  
Writing ICON:8,&nbsp;lang:0x409,&nbsp;size 2440  
Writing ICON:9,&nbsp;lang:0x409,&nbsp;size 1128  
Writing GROUP\_ICON:MAINICON,&nbsp;lang:0x409,&nbsp;size 132.  
Writing VERSION:1,&nbsp;lang:0x409,&nbsp;size 396  
Resource Compiled OK.  
Running Delphi compiler....  
Using Command Line :&nbsp; /B D:\Rps\RpsSupport6\RpsControls\RPSControls6.dpk /Q  
Embarcadero Delphi for Win32 compiler version 25.0  
Copyright (c) 1983,2013 Embarcadero Technologies, Inc.  
RPSControls6.dpk(42) Fatal: E2202 Required package 'RaizeComponentsVcl' not found

Log with the same library path copied directly into the action:

Compiler selected is : C:\Program Files (x86)\Embarcadero\RAD Studio\11.0\bin\dcc32.exe  
Generating Resource File....  
Including ICON File :C:\\Program Files (x86)\\Embarcadero\\RAD Studio\\11.0\\bin\\delphi\_PROJECTICON.ico  
-v D:\Rps\RpsSupport6\RpsControls\RPSControls6.rc  
CodeGear Resource Compiler/Binder  
Version 1.2.2 Copyright (c) 2008-2012 Embarcadero Technologies Inc.  
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0  
Copyright (C) Microsoft Corporation.&nbsp; All rights reserved.  
Creating D:\Rps\RpsSupport6\RpsControls\RPSControls6.RES  
Using codepage 1252 as default  
D:\Rps\RpsSupport6\RpsControls\RPSControls6.rc.  
Writing ICON:1,&nbsp;lang:0x409,&nbsp;size 3752  
Writing ICON:2,&nbsp;lang:0x409,&nbsp;size 2216  
Writing ICON:3,&nbsp;lang:0x409,&nbsp;size 1736  
Writing ICON:4,&nbsp;lang:0x409,&nbsp;size 1384  
Writing ICON:5,&nbsp;lang:0x409,&nbsp;size 270376  
Writing ICON:6,&nbsp;lang:0x409,&nbsp;size 9640  
Writing ICON:7,&nbsp;lang:0x409,&nbsp;size 4264  
Writing ICON:8,&nbsp;lang:0x409,&nbsp;size 2440  
Writing ICON:9,&nbsp;lang:0x409,&nbsp;size 1128  
Writing GROUP\_ICON:MAINICON,&nbsp;lang:0x409,&nbsp;size 132.  
Writing VERSION:1,&nbsp;lang:0x409,&nbsp;size 396  
Resource Compiled OK.  
Running Delphi compiler....  
Using Command Line :&nbsp; /B D:\Rps\RpsSupport6\RpsControls\RPSControls6.dpk /Q  
Embarcadero Delphi for Win32 compiler version 25.0  
Copyright (c) 1983,2013 Embarcadero Technologies, Inc.  
125699 lines, 2.81 seconds, 1367560 bytes code, 115308 bytes data.

Versions..

Finalbuilder 7.0.0.2411

Delphi XE4 Update 1

FinalBuilder server 7.0.0.350

Windows 7 SP1

&nbsp;

Edit: After testing I can reproduce this easily without compiling..

Check ''Use Registry for library paths'.&nbsp; In the action do 'Reload Library Path'.&nbsp; The correct&nbsp;path appears.

Uncheck 'Use Registry for library paths'.&nbsp; do 'Reload library path' again.&nbsp; The path vanishes.

&nbsp;

Tony

&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 6, 2013, 2:35am UTC](https://www.finalbuilder.com/forums/t/global-library-path-not-picked-up-xe4-configuration/2184/2 "2013-08-06T02:35:42Z")

</div>

Hi Tony   
  
 I can reproduce this , I will post here with a link to a build with the fix later today.
