Trying to convert a project from Delphi lazarus / 13-General ---------------------------------------------------------------------- ruk1n · 2017-05-20 08:38 Hello, I'm just another Lazarus newbie trying to convert a project from Delphi. My first trouble comes when I Lazarus told me it aborted the conversion of the .dpr file: Hint: * Conversion du fichier C:\cygwin64\home\root\Proj01\serverz.dpr * Hint: Codage modifié de utf8bom en "UTF-8" Hint: Conversion abandonnée. How can I help Lazarus to complete the conversion ? Thanks in advance ---------------------------------------------------------------------- JuhaManninen · 2017-05-20 08:46 Is there no error message? Can you copy the whole project here? Lazarus version? ---------------------------------------------------------------------- ruk1n · 2017-05-20 09:11 I haven't seen any error messages. Lazarus version is 1.6.4, fpc 3.02 The whole .dpr file:       {a04800b8-b901-4c6b-bf81-4cfe213af470}     serverz.dpr     Debug     AnyCPU     DCC32     serverz.exe         7.0     False     False     0     RELEASE         7.0     DEBUG;madExcept     3         Delphi.Personality     VCLApplication     FalseTrueFalseFalseFalse1000FalseFalseFalseFalseFalse103612521.0.0.01.0.0.0serverz.dpr                 MainSource                      
FBoardSent
   
             
Form1
   
                 
ErrorDisplay
   
         
Main_Form
   
                     
OKRightDlg
   
             
Form2
   
             
OkTransfert
   
         
FComment
   
     
---------------------------------------------------------------------- Thaddy · 2017-05-20 09:43 That is NOT a dpr file.... That's an msbuild project. ---------------------------------------------------------------------- ruk1n · 2017-05-20 09:56 It was a .dproj file I renamed to .dpr... I suppose I have to create by hand a Lazarus project... Thanks for your answer ---------------------------------------------------------------------- Thaddy · 2017-05-20 10:00 Quote from: ruk1n on May 20, 2017, 11:56:10 amIt was a .dproj file I renamed to .dpr... I suppose I have to create by hand a Lazarus project... Thanks for your answer No, you should not have opened the msbuild project, but the main dpr file. There's nothing to rename. There's always a dpr in a Delphi project. And it contains pascal code, not xml. Ergo, you started with the wrong file. Don't rename anything. Lazarus will create an lpr (lazarus main project file) and an lpi, (its buildscript) ---------------------------------------------------------------------- howardpc · 2017-05-20 10:32 Best to copy the original Delphi project to a new empty directory. As Thaddy says, don't rename anything. Delete everything in the previous directory where you renamed files etc. and remove that directory. Then you want Tools > Delphi Conversion > Convert Delphi Project to Lazarus Project. In the Open dialog that appears navigate to find the .dpr file of the Delphi project you want converted. Accept all the defaults offered and Lazarus does a good job of conversion. Any glitches, come back here, but 9 times out of 10 the converter works better than you might expect, given the complexity of the hurdles it has to overcome in translating Delphi code and .dfms from so many possible Delphi versions. Only if the code is severely Windows-dependent with lots of API calls and the like (or depends on lots of third party components for which the source is unavailable) will the conversion sometimes fail to give you a compilable result that needs tweaking by hand (or rewriting from scratch to be cross- platform). ---------------------------------------------------------------------- ruk1n · 2017-05-20 11:40 One finally send me the missing .dpr file, and Lazarus converted it! Many thanks for the explanations!