Recent

Author Topic: Convert a unit from Delphi to Lazarus  (Read 11166 times)

Guest

  • Guest
Convert a unit from Delphi to Lazarus
« on: April 11, 2006, 09:25:32 pm »
Hi Friends.

I testing Lazarus...

Nice Program  :lol:

And , if try convert a unit delphi to Lazarus, it show a Dialog .... the path of unit is not correct . (approximately...)

How set the path in the project?

Thanks in advance.

Sorry for my very bad English.  :oops:

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: Convert a unit from Delphi to Lazarus
« Reply #1 on: April 12, 2006, 08:07:44 am »
Could you post the exact error message in English please? With the information you give, it is hard for us to tackle your problem.
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Anonymous

  • Guest
Re: RE: Convert a unit from Delphi to Lazarus
« Reply #2 on: April 12, 2006, 07:15:23 pm »
Quote from: "matthijs"
Could you post the exact error message in English please? With the information you give, it is hard for us to tackle your problem.


Yes I Try it.

Translation of Spanish to English

Dialog box say..

Prompt for beginners

The current path of unit to the file "G:\Lazarus\Projects\Main.pas" is "".

The Path of units LCL "G:\Lazarus\lcl\Units\$(Target)....." not found

Thanks in advance.

barko

  • New Member
  • *
  • Posts: 45
RE: Re: RE: Convert a unit from Delphi to Lazarus
« Reply #3 on: April 12, 2006, 10:51:01 pm »
Do this from menu:

Project -> Compiler Options

In dialog set path in "Other Unit Files" to "G:\Lazarus\Projects".

Press OK and try to compile now.

delphicomplex

  • Newbie
  • Posts: 3
same problem
« Reply #4 on: November 16, 2006, 01:04:31 am »
I DL the windows binaries and installed them onto my winxp machine...fired up

Lazarus ver#: 0.9.20 beta
Date: 11/5/2006
SVN Revision: 10176

similar situation attempting to convert a simple hello world delphi unit made in delphi 2005 to lazarus unit using the convert tool

I get a LCL unit path missing message:

The current unit path for the file
"C:\Work\project\Copy of hello world\colorUnit.pas" is "".

The path to the LCL units "c:\lazarus\lcl\units\$(TargetCPU)-$(TargetOS)" is missing.

Hint for newbies: * can't read what it says since the skip button & abort button cover this up*

Tried the above compiler option posted above

In dialog set path in "Other Unit Files" to "C:\Work\project\Copy of hello world".

Any help would be greatly appreciated  :)

bmt

  • New member
  • *
  • Posts: 9
RE: same problem
« Reply #5 on: November 16, 2006, 11:30:04 am »
I tried to convert a Delphi7 program to Lazarus 0.9.20/WinXP with the convert tool in IDE. After correcting some differences between DP and Lazarus in the codes, I run it but it gave always error "External: SIGSEGV". I didn't know any solution.
I decided to start new project and redesign all forms in Lazarus, then copy the DP7-codes into Lazarus-units, change some codes. It works OK ! Ofcourse I missed some features of DP7 in Lazarus. I hope Lazarus getting better in future.

delphicomplex

  • Newbie
  • Posts: 3
same problem
« Reply #6 on: November 16, 2006, 05:40:56 pm »
thanx bmt for your reply

I just wanted to test a simple hello world program that I created in Delphi 2005.  I was curious on how Lazarus would handle a simple program conversion before I attempted to convert my much larger application to Lazarus :shock:

RudieD

  • Full Member
  • ***
  • Posts: 234
RE: same problem
« Reply #7 on: November 16, 2006, 08:25:29 pm »
I think the problem might be with the spaces in your path ?
The FRED Trainer. (Training FRED with Lazarus/FPC)

delphicomplex

  • Newbie
  • Posts: 3
blank spaces
« Reply #8 on: November 21, 2006, 01:38:22 am »
i read some where in that spaces in paths are no longer an issue...for the life of me i can't find that information again

seach feature :evil:

any more suggestions?

cov

  • Full Member
  • ***
  • Posts: 222
Convert a unit from Delphi to Lazarus
« Reply #9 on: November 25, 2008, 10:56:13 am »
It's not the spaces.

I'm trying to convert the TDBf demo program from Delphi and am getting a similar error on Ubuntu (8.10).

Code: [Select]
The current unit path for the file:
"/home/dave/Projects/demo/Calc.pas" is
"".

The path to LCL Units "/usr/lib/lazarus/lcl/units$(TargetCPU)-$(TargetOS)" is missing.

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

Leledumbo

  • Hero Member
  • *****
  • Posts: 8266
  • Programming + Glam Metal + Tae Kwon Do = Me
Convert a unit from Delphi to Lazarus
« Reply #10 on: November 26, 2008, 03:25:43 am »
Just follow the hint, it often worked for me.

 

TinyPortal © 2005-2018