Recent

Author Topic: Hello all!  (Read 6082 times)

Novo

  • Newbie
  • Posts: 1
Hello all!
« on: October 09, 2008, 03:50:54 pm »
Hello,
i am Delphi Developer and found your project Lazarus,
Now, i have a lot of questions!

1.
Whats the Difference between:
Kylix 3, Lazarus and Borland Delphi .NET (RAD Studio 2009)


2.
I have installed: Lazarus-0.9.24-fpc-2.2.0-20071114-win32.exe
and i want to develop Applications under Windows, that also runs under Linux (and maybe mac)

3.
if i compile my Project, the result is an 11MB big .exe
But .exe don't run under Linux and Mac

(How to create an .app (Mac) ?)
How to compile it also for Mac and Linux?


4.
The compiled application is so big, why?


5.
There are not so much Komponents aviable for Lazarus, why?
On Delphi 7 Enterprise theres much more!




Mfg Novo

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Hello all!
« Reply #2 on: October 09, 2008, 06:26:34 pm »
Quote from: "Novo"
Hello,
i am Delphi Developer and found your project Lazarus,
Now, i have a lot of questions!


Those are all good questions that newcomers frequently ask.

I would recommend that you use the 0.9.26 build from the snapshots page rather than the out-of-date 0.9.24 build.

To reduce the size of the .exe, uncheck the Display Line Numbers box on the Compiler Options dialog's Linking tab or else use the strip utility on the .exe. Note that while developing you'll want to leave this checked in order to do backtracing with the debugger.

If you want, you can have the best of both worlds: Use Delphi on Windows and then use Lazarus on Linux and OS X. See this link:

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

Delphi .NET is for the Microsoft .NET framework, which is unrelated to Lazarus and Free Pascal; maybe you're referring to Delphi for Win32?

You can cross-compile as indicated in Theo's link to generate executables for Linux and OS X, but for best results you should really have access to an actual Linux or OS X box.

What components are you missing?

Thanks.

-Phil

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: Re: Hello all!
« Reply #3 on: October 10, 2008, 06:54:58 am »
Quote

... i want to develop Applications under Windows, that also runs under Linux (and maybe mac)

Make sure you don't use platform specific codes, either inline assembler or units (Windows, ShellApi, BaseUnix, MacOSAll, etc.). If you really have to, place either in separate (include) files (preferable) or in ifdefs.

Quote

But .exe don't run under Linux and Mac

(How to create an .app (Mac) ?)
How to compile it also for Mac and Linux?

Either compile it on the target platform or do a cross compile. Don't forget that you need a set of suitable binutils and libraries for cross compiling.

Quote

There are not so much Komponents aviable for Lazarus, why?

Do you really use all of them? If you need more, try searching in Lazarus Code and Components Repository or just googling.

selimr

  • New Member
  • *
  • Posts: 12
Hello all!
« Reply #4 on: October 11, 2008, 08:37:50 pm »
Quote
The compiled application is so big, why?


program.exe ( 12 MB)

strip --strip-all program.exe

program.exe ( 1.5 MB)

 

TinyPortal © 2005-2018