3
votes

Today I installed Ubuntu and Lazarus IDE (Delphi style cross-platform IDE). I don't know anything about the file structure of Linux Operating Systems. Do you know some tutorials that can get me started specially with Lazarus, and does Linux have modules and API's or how does it work?

5
If you like Lazarus then take a look at CodeTyphon which can make your cross platform development much easier. pilotlogic.com/sitejoom/….avra
I second that! I just discovered CodeTyphon, and is the best packaged solution for freepascal and Lazarus. I wish who ever is behind this gets enough attention and revenue to continue with its development! Freepascal and Lazarus can revolutionize Linux development.ssh

5 Answers

2
votes

Some general info:

In Linux (almost) everything is implemented in libraries, have a look at dpkg -l | grep lib. All Debian packages that start with lib are library packages that install a library to /usr/lib or /lib.

Often there is a lib*-doc package for the library that contains its API documentation. Package documentation in general is installed to /usr/share/doc.

There may also be help availabe in the manpage system, try man man and in the GNU info tool.

C/C++ headers are located at /usr/include, you'll have to translate them to Pascal in order to use the libs.

Of course Lazarus and FreePascal come with there own libraries as well and you may want to look at them first.

There is also an Ubuntu specific StackExchange site here: https://askubuntu.com/

1
votes

The main Free Pascal documentation can be useful too (Free Pascal is included in Lazarus as compiler):

and the main Lazarus library, aka the LCL:

1
votes

The best place to start with Ubuntu is at their site:

It's well documented and the community is great.

Have fun!

0
votes

If you are looking for the one book describing ALL Linux APIs, it's there:

http://www.man7.org/tlpi/index.html

It just came out, and has had nothing but rave reviews so far. (And no, I'm neither the author nor the publisher! :D )

0
votes

Excuse me jumping in here :)

Your question is quite broad, so I will answer with some general information of my own.

First of all, the main thing that is annoying for me with programming in lazarus on ubuntu, is when you transfer your program onto windows it doesn't work... I don't know if anyone else gets this, but I have to first compile my application on a windows machine before I can use it on windows.

Also, if you are making a graphical application then make sure you have a fixed font size. I like mine at 11. Obviously make it different for titles. Why is this a problem you ask? Well, I find, I make this incredible application that looks lovely, and then the fonts are tiny on a different machine. So make sure you're fonts are fixed!!

If you haven't already, the easiest way to install lazarus is to run...

sudo apt-get install lazarus

...in your terminal

Finally, just make a folder called projects in your home directory and you're off! Nothing really different except that lazarus is stored in usr/share/applications.

Hope this helped!

Harrison