Recent

Author Topic: Delphi7 to Lazarus  (Read 5220 times)

andre72

  • New Member
  • *
  • Posts: 33
Delphi7 to Lazarus
« on: November 19, 2007, 12:58:44 pm »
I have been working with Lazarus for some two months now and developed a couple of small apps using 0.9.23 beta in a Win2K environment. I have been very impressed by Lazarus - previous post.

I am now trying to convert a somewhat larger application from D7 to Lazarus.

1. "Tools/Convert Delphi project to Lazarus project" creates the lpi and lpr files. After that, I am unable to get the different units into the project.

2. "Tools/Convert Delphi unit to Lazarus unit" fails with the following message box:

>>>>>>>>>>>>

The current unit path for the file
"F:\MyProj\mainu.pas" is
";F:\MyProj\"  
//please note the extra ';' before the path. Is this a bug?

The path to the LCL units "F:\Lazarus\lcl\units\$(TargetCPU)-$(TargetOS)" is missing.      
//Never saw this before. How do I correct it?

Hint for newbies:
Create a Lazarus project and put the file into the project directory.

>>>>>>>>>>>>

As a newbie, I like getting a hint - but as a matter of fact, I believe that's exactly what I'm doing.

3. So the questions are:
How can I correct the issues brouhg by the above message?
Is there a documented sequence of steps to get the Delphi units into the Lazarus project?

4. Note: I have read several forum discussions regarding the dfm/lfm issues, but this is not the only issue here - or is it?


Regards to all

A.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: Delphi7 to Lazarus
« Reply #1 on: November 21, 2007, 09:59:16 am »
Either this or this might help.

andre72

  • New Member
  • *
  • Posts: 33
Re: RE: Delphi7 to Lazarus
« Reply #2 on: November 21, 2007, 06:34:53 pm »
Thanks - the code conversion guide helps, I will forgo using the IDE conversion tools.

However - there is a question: do we have a bug in the conversion tools in the IDE?

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Delphi7 to Lazarus
« Reply #3 on: November 21, 2007, 07:00:03 pm »
Quote from: "andre72"
Thanks - the code conversion guide helps, I will forgo using the IDE conversion tools.

However - there is a question: do we have a bug in the conversion tools in the IDE?


Here's what I use to maintain a single source for both compiling with Delphi and Lazarus:

http://wiki.lazarus.freepascal.org/XDev_Toolkit

Thanks.

-Phil

 

TinyPortal © 2005-2018