# Relative project search paths in XE2

**URL:** https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966
**Category:** Discussion
**Created:** [April 3, 2012, 9:21am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966 "2012-04-03T09:21:05Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 3, 2012, 9:21am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/1 "2012-04-03T09:21:05Z")

</div>

New user trying FB... &nbsp;&nbsp;

In the Delphi project options, the search path is set to a relative path and the project builds, as it's locating some modules in this directory: &nbsp;..\..\Submodules\dmLib

In the FinalBuilder project, I originally clicked "Load Settings from Project File" where it sets the Directories-\>Search path to&nbsp;..\..\Submodules\dmLib

I have the FB Options Source configuration for "Load Settings from project file": &nbsp;Packages, Compiler, Linker, Directories are checked.

The Starting directory config option is set to the project's base path.

If I run this action in FB, I get a 'file not found' build error referencing a source file in this relative path.

However, if I uncheck to reuse project directories in FB, the project builds successfully. &nbsp;What is in the search path in FB project config exactly matches that in the Delphi project file.

If in the Directories tab, if I check "Always use search Path from the Project Settings File" the project fails to build. &nbsp;(F1026 file not found)

So simply toggling this single "Always use search Path from the Project Settings File" checkbox allows the project to build (if unchecked) or not build (if checked.) &nbsp;The value that is in the Search Path exactly matches what's in the Delphi project configuration.

The previous action clears the output folder so I know it's a clean directory before attempting to build.

I tried to replace &nbsp;the relative paths with full path names and I get the same error so it appears to be missing the Search Path in the Delphi project file.

FB 7.0.0.1795

---

<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: [April 4, 2012, 2:11am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/2 "2012-04-04T02:11:31Z")

</div>

Hi Darian   
  
 Relative search paths do work, however one thing to check is the Starting Dir on the Project tab of the delphi action properties dialog. This is the path that all relative search paths are relative to.   
  
 Also on the Compiler tab, there is an option to “keep generated .cfg file” (it usually gets deleted after the action completes) - this will leave the file in the delphi project folder, with a .used extension. This is useful for checking exactly what paths were passed to the compiler.   
  
 HTH

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 4, 2012, 3:10am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/3 "2012-04-04T03:10:07Z")

</div>

The starting path is correct. This is referred to in my comment about the “Always use search path from the Project Settings File” option…if this is checked, the build fails. If this is unchecked, it works with the the same exact same relative path in the Search Path configuration in FinalBuilder (right under this checkbox) as is configured in the Search Path in Delphi.   
  
 As far as “keep generated .cfg file” - thanks, I’ll take a look at that feature.

---

<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: [April 4, 2012, 3:44am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/4 "2012-04-04T03:44:01Z")

</div>

In that case I would check which configuration you have selected on the … as search paths can be different for each config in a delphi project.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 4, 2012, 3:59am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/5 "2012-04-04T03:59:38Z")

</div>

I have created a Movie of the process and compressed the AVI file into a 7-zip archive and placed this 7MB archive on a public SkyDrive folder:   
 [https://skydrive.live.com/redir.aspx?cid=3d5080801b43bd00&resid=3D5080801B43BD00!970&parid=3D5080801B43BD00!107&authkey=!ANrsgsj\_JrmHBEk](https://skydrive.live.com/redir.aspx?cid=3d5080801b43bd00&resid=3D5080801B43BD00!970&parid=3D5080801B43BD00!107&authkey=!ANrsgsj_JrmHBEk)   
  
 This demonstrates that the search path in Delphi is configured within “All configurations” and is used by both Build/Release configurations.   
  
 I’ve tried a few tests and cannot get any XE2 project that relies on project search paths to build with FinalBuilder unless I set that search path within FinalBuilder. (I cannot use the “Load Settings from project File” with “Directories” option checked.)

---

<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: [April 4, 2012, 8:29am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/6 "2012-04-04T08:29:13Z")

</div>

Hi Darian   
  
 Can you send your .dproj file to [support@finalbuilder.com](mailto:support@finalbuilder.com) - that’s the only way we will be able to see what is going on. There are some issues with some dproj files, especially if they were upgraded from older versions of delphi.

---

<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: [April 4, 2012, 8:34am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/7 "2012-04-04T08:34:32Z")

</div>

BTW, I wasn’t able to play the screencast, media player just crashed and quicktime told me it needed to install something (probably a codec) but didn’t say which codec.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 4, 2012, 5:10am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/8 "2012-04-04T05:10:13Z")

</div>

.DROJ file sent over.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 4, 2012, 5:23am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/9 "2012-04-04T05:23:14Z")

</div>

I converted the AVI video to WMV   
  
 [https://skydrive.live.com/redir.aspx?cid=3d5080801b43bd00&resid=3D5080801B43BD00!975&parid=3D5080801B43BD00!107&authkey=!AFvpbNZD1VaJ-K0](https://skydrive.live.com/redir.aspx?cid=3d5080801b43bd00&resid=3D5080801B43BD00!975&parid=3D5080801B43BD00!107&authkey=!AFvpbNZD1VaJ-K0)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 6, 2012, 3:40am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/10 "2012-04-06T03:40:14Z")

</div>

7.0.0.1830 fixed the issue for me! Thanks

---

<div class="post-metadata">

### Author: ![marcer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@marcer](https://www.finalbuilder.com/forums/u/marcer)
#### Post date: [October 28, 2014, 9:17am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/11 "2014-10-28T09:17:32Z")

</div>

I have the same problem with my FB Embarcadero XE 2 Edition v7.0.0.1725.   
 Is it possible to update to this version 7.0.0.1830 to try if my problem are resolved.

---

<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: [October 29, 2014, 2:09am UTC](https://www.finalbuilder.com/forums/t/relative-project-search-paths-in-xe2/1966/12 "2014-10-29T02:09:24Z")

</div>

No, there are no updates to the Embarcadero edition of FinalBuilder. You can upgrade to the full version, contact [sales@finalbuilder.com](mailto:sales@finalbuilder.com) for a discount (inlcude a screenshot of your Xe2 about box to prove eligabiliy).
