Configure the Lazarus development environment in Ubuntu

Source: Internet
Author: User
Lazarus is a free Pascal-Based Visual Development Environment similar to Delphi. It can work in Linux and complete software development in Linux.
Due to the large number of packages required, problems may also occur during installation. Therefore, I would like to make a summary here for future reference.

First, download andIn orderInstall the following Deb package.

Fp-units-rtl_2.2.0-1_i386.deb
Fp-compiler_2.2.0-1_i386.deb
Fpc-src_2.2.0-071107_i386.deb
Fp-ide_2.2.0-1_i386.deb
Fp-units-base_2.2.0-1_i386.deb
Fp-units-db_2.2.0-1_i386.deb
Fp-units-fcl_2.2.0-1_i386.deb
Fp-units-fv_2.2.0-1_i386.deb
Fp-units-gfx_2.2.0-1_i386.deb
Fp-units-gtk_2.2.0-1_i386.deb
Fp-units-gtk2_2.2.0-1_i386.deb
Fp-units-i386_2.2.0-1_i386.deb
Fp-units-misc_2.2.0-1_i386.deb
Fp-units-multimedia_2.2.0-1_i386.deb
Fp-utils_2.2.0-1_i386.deb
Fp-units-gnome1_2.2.0-1_i386.deb
Sudo apt-Get install libcurl3-dev
Fp-units-net_2.2.0-1_i386.deb
Lazarus_0.9.24-0_i386.deb

Note the sentence marked in blue. This code is executed in terminal to install libcurl-Dev.
With this component, you can continue to install the FP-units-Net package.

After the installation is complete, you can create a new launcher from the desktop to point it to the/usr/bin/startlazarus file.
In this way, a launcher can be started directly from the desktop, which is equivalent to a shortcut.

As you can see, it is almost the same as Delphi, and many Delphi controls can be installed on it with slight modifications, which makes Lazarus rich in controls.

Finally, let's talk about the program compression problem. Due to the compression ratio of FP-compiler, the size of compiled programs is huge, and an empty form can reach 14 Mb, this is a very bad thing. Lazarus provides a strip tool to compress programs.
Run the following command:
CD/usr/bin
Strip/home/rarnu/proj/project1
The content after strip is your program path. Note that it must be the complete path. After compression, the original 14 m program has changed to 2 m
Of course, a blank window of 2 Mb is unacceptable. If you want a smaller program, you can use Kol
Kol already has the special Lazarus version. For details about how to use it, refer to my previous articles (click to enter)
Using Kol in Lazarus is exactly the same as using Kol in delphi2007.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.