Forum > Unix

[SOLVED] If I switch to Linux

(1/6) > >>

Ten_Mile_Hike:
So I'm THINKING of switching from windows to Linux. As I have only ever used Windows and Lazarus under Windows, can anyone tell me what code (if any) is different or actually incompatible with my current Lazurus projects?

I KNOW THAT LAZARUS IS SUPPOSED TO BE CROSS PLATFORM, BUT I'M SIMPLY ASKING ABOUT THE LITTLE GOTCHAS AND EDGE CASES THAT HAVE BEEN KNOWN TO EXIST.

 Also; what manual edits (if any) are necessary in my( lpi, lpr,lfm,pas) files to compile and run an old WIN project under a Linux environment.

Thanks.

=========== EDIT May 24===========
Thank you everyone for the answers given. The quality and depth of the answers in this forum generally and to my
question here specifically are a testament to the commitment each and everyone of you have to helping others.

Have those of you that regularly post here ever "REALLY" sat back and thought about the fact that despite from being
from a multitude of different countries, speaking a dozen different primary languages, holding many different political beliefs,
and practicing many different religions (as well as none at all)... put all of those things aside to both ask and to give help
to each other?

In many ways we operate more peacefully, more effectively, and more efficiently than the United Nations.
And if that thought doesn't scare you then nothing will 8-) 8-) 8-)

PascalDragon:

--- Quote from: Ten_Mile_Hike on May 22, 2024, 09:11:04 pm ---As I have only ever used Windows and Lazarus under Windows, can anyone tell me what code (if any) is different or actually incompatible with my current Lazurus projects?
--- End quote ---

Well, obviously if you use any Windows specific functionality you'll need to find alternatives or disable them. Obviously you'll also have to deal with the differences regarding the file system (drives in Windows, a single root on *nix systems).
And there might be differences in the way the UI behaves or scales compared to Windows.
In general it should indeed be cross platform however.

Thaddy:
If you are on a decent Windows, 10 or 11 install e.g. Ubuntu on wsl2.
My advice is to try a Linux box first. That can be as cheap as a Raspberry Pi zero W2.
In general, unless you use very specific Windows API calls, FPC and Lazarus will work as advertised.
The only people who get bitten are the ones that think they know better.
If you have old laptops or other boxes around, use those first. Good place to start: Linux is very old hardware friendly.

dsiders:
After my two weeks with Linux...

Never install Lazarus from .deb provided by a distro. Install from source or use fpcupdeluxe.

Steer clear of Wayland for the moment. Too many gotchas for comfort. Use X11 instead.

There will be something about your chosen widgetset that doesn't work as expected. File bug reports.

OpenSSL3 and FPC 3.2.2 do not play well together (or at all).

Curt Carpenter:
I worked on a moving a Win program to Linux last year.  There are definitely little differences that require work-arounds.  Best example that springs to mind:  Windows uses CR/LF line endings, where Linux uses LF only.  Nothing insurmountable though.

I abandoned Windows and Delphi around Win2000 and have never had any regrets.

Navigation

[0] Message Index

[#] Next page

Go to full version