the path is there but the items aren't seen.
Do I assume ..\common would be seen as local to the project in Lazarus ?
The project itself has been passed down from two users to me. Their directory trees are included in the proj files relating to drives like E: that I don't even have. What a mess !
Then we have ..\CommonIs this ..\ relating to the main Delphi installation location as above or is this relating to the project location ? I can't find a Common in the installation location but the project has a Common, that said, uses clauses don't work with units inside the Common directory.
This is a Delphi issue. I do remember some hard-to-understand path issues with third-party components. IIRC you can resolve them if you either add the path to the source files of UnDelphiX to the search path of the project (use the dialog provided by Delphi), or the path to the compiled dcu files to the library path of Delphi (this is in the Tools menu).But before attempting to convert your project to Lazarus you must also convert the UnDelphiX library. AFAIK this is not available for Lazarus. I found the website http://www.micrel.cz/Dx/ which has recently been updated to support the latest Delphi version, but no Lazarus. So, you'll have to convert all the units by yourself. For a beginner, this may be a hard job... (Or you maybe contact the auther of that website...)BTW: You're saying that your D2007 is "old as the hills". Do you know that Embarcardero offers a limited "Starter Version" of the current Delphi Berlin 10.1 for free until September 9? (http://forum.lazarus.freepascal.org/index.php/topic,33792.0.html). I just tried the UnDelphiX components of that website with Delphi Berlin, and they installed fine, and also most of the demos run fine - you just have to add the path to the sources to the project's search path... (but be warned of the GrafixLib demos - they presented me one of the hardest computer crashes that I've ever seen)
Quote from: Zath on August 29, 2016, 12:44:33 pm Then we have ..\CommonIs this ..\ relating to the main Delphi installation location as above or is this relating to the project location ? I can't find a Common in the installation location but the project has a Common, that said, uses clauses don't work with units inside the Common directory.Afaik Delphi interprets paths deeper as the .dproj dir as relative to the dproj. However ..\ is evaluated using the current working dir, and results may vary depending on how you open the project, and usage of the open file options (that change working directory).If you open your projects using file->open project it might be ok (because it changes to the project directory), while opening using a "recent projects" shortcut will not change directory and fail
A trick to avoid relative paths in Delphi: I suppose all your Delphi projects are in a common folder, say, c:\prog_delphi. Then, within Delphi, I define an environment variable PROJECTS to which I assign the absolute path of this folder - this can be done in "Tools" / "Options" / "Environment variables" (or similar). If there is a shared folder, say, c:\prog_delphi\common, then I set the search path of a project using it to "$(PROJECTS)\common". If you continue work on another computer where $(PROJECTS) is on another drive, then you just have to modify the environment variable, and all projects will be fine again.
As far as I know, no. Of course, make a backup copy before opening the project and its forms for the first time.If you know that your project contains relative paths which Delphi is not able to resolve at designtime open the dproj file in an external editor and edit the listed relative paths to absolute paths. Maybe this helps.
then you just have to modify the environment variable, and all projects will be fine again.