[Lazarus] porting delphi project code

waldo kitty wkitty42 at windstream.net
Sat Jun 1 01:47:55 CEST 2013


On 5/26/2013 16:16, Juha Manninen wrote:
> On 5/26/13, waldo kitty<wkitty42 at windstream.net>  wrote:
> waldo kitty, you should use the latest trunk anyway for conversion. It
> has also other improvements. You can use the FPC release version.

today i have upgraded to FPC 2.6.2 release from SVN, updated Lazarus to Lazarus 
1.1 r41477 FPC 2.6.2 i386-win32-win32/win64... i compile lazarus in debug mode 
to get heaptrc results for reporting here (at times)...

i have started fresh with a new copy of the delphi project with that forms.pas 
file removed (renamed actually) and then followed the same procedure as before...

1. Tools -> Convert Delphi project to Lazarus project
2. selected Cross Platform, Make backup, Keep converted file open
    all other options are default (auto, auto, auto, enabled, enabled)
3. Unit not found in MClasses.pas - Consts - click "Comment out"
4. Unit not found in MlrForm.pas - XPMan - click "Comment out"
5. conversion complete
6. check MClasses.pas (already open) in editor.
   a. Consts is first in uses line at top of file and NOT commented out.
7. check MlrForm.pas (already open) in editor
   a. XPMan is last in uses line and NOT commented out.
8. Select converted LPR in editor
9. attempt compile (CTRL-F9)
10. must comment out FastMM4 in xBase as NOT Found.
11. select LPR again and CTRL-F9 again
12. LCLProc gets loaded and the line
       {$IFnDEF WithOldDebugln} LazLogger, {$ENDIF}
     is hilited with the cursor at the beginning of LazLogger
     and error reported is
       ..\..\..\laz\lcl\lclproc.pas(34,28) Fatal: Can't find unit LazLogger used 
by LCLProc
13. close converted project with save option.
14. New Project - Application
15. quit Lazarus with clean exit from heaptrc

i've no clue where to look for the problem... i have successfully compiled a 
blank unmodified new application project with no problems...

either i've found another bug or there is another file in the directory i need 
to remove/rename :?

-- 
NOTE: No off-list assistance is given without prior approval.
       Please keep mailing list traffic on the list unless
       private contact is specifically requested and granted.




More information about the Lazarus mailing list