0
votes

I have a big Delphi project organized like this (simplified):

Sources:
    Delphi:  
        Project A
        Project B
        …
        Project G
        COMMON
    FinalBuilder
LIB:
    Lib A
    Lib B
    …
    Lib K

So, each Project folder contains the files (.dprog, .pas and .dfm) needed for the project. The COMMON folder contains the files (.pas) used by more than one project. And the Lib folders contain external resources (.pasand .dfm) also needed for more than one project Then in FinalBuilder I have my ProjectBuilder.fbp8 and Project.ini files.

The idea is, the ProjectBuilder will ask me which project i want to compile (and some more options), and compile them - one after another.

However, there is some problem with the Library Path.

See, each Delphi Project contains the path to its needed files in Project X and COMMON, but not the path to the needed files in LIB. So if I wanted to compile the Delphi project using only Delphi IDE, it won't work (until I give it the Library Path). However, I want to compile using FinalBuilder, and this particular path is given by FinalBuilder (through his .ini file).

So, the ProjectBuilder will get all the variables needed for the Project I want to build from its .ini file, including the Library Path, and then launch a "Build Delphi" action with this Library Path correctly setted.

But, for some reason, it doesn't work: compilation fail saying it couldn't find the units which should be given by the Library path. So i guess there is somewhere a miscommunication between FinalBuilder and the Delphi Project which leads to the Delphi Project not having the Library Path (but i have no idea how this "Build Delphi" action works in details).

Maybe there's some more settings to do in FinalBuilder? Does anyone knows about it? Or it comes from the fact that those files are loaded as a Library, and not as source files?

1
This is a really simple issue since the references for each unit you need is mentioned in .dproj file. Then you can easily compile each project without add library path. Just keep common files in the same folder and click Add File to Project. If you can not do it send me an e-mail or request suport in Skype [email protected]Ricardo da Rocha Vitor
Common files are not a problem here; Delphi is told where to find them (it's like foo in "../COMMON"). The problem is the files who are not in COMMON but in a lot of separate folders external to the project. I'm not going to go search for them and add them one by one to each prog; it may work, but adding the path directly into Delphi would have the same effect and be really faster. My point is, I know how to add them to the Delphi project, but I'm not supposed to do this. FB8 get the Path and should give it to delphi within the Build Delphiaction. I need to understand why it doesn't workAblia
I've refactored the question to make it more simple and clear, if that could help. I've tried to compile one Project in Delphi IDE (after giving it the needed Library Path) and it works well. I just need it to get this path through FinalBuilder, so I won't have to add those paths to every single Project...Ablia

1 Answers

0
votes

Sounds like you are using an old version of FinalBuilder that pre-dates Delpjhi 10.2 - you need to update to a newer version.