I tried several times to compile Lazarus but it never works on Linux. On Windows it works properly, but not on Linux. The error, which is FPC put out is: /usr/lib/lazarus/examples/hello.pp(31,1) Error: Can't create object file: units/i386-linux/hello.o
/usr/lib/lazarus/examples/hello.pp(31,1) Error: Can't create object units/i386-linux/hello.o
help me compile Lazarus with qt... (here I tried with GTK2)
Versions installed by the Daily Snapshots do not give the correct permissions in the installation folder because the various Linux distributions, so run the following command at a shell, "sudo chmod 777-R / usr / lib / lazarus" (without quotation marks), remembering that this will give unrestricted access to the lazarus folder. Open Lazarus and go in the menu "Tools -> Configure Build Lazarus" tab "Advanced Build Options", click "Clean all" then the button "Build", it should solve the problem.
Brasil:
Versões instaladas pelo Daily Snapshots não dão as permissões corretas na pasta de instalação devido as diversas distribuições linux, desta forma execute o seguinte comando em um shell, "sudo chmod 777 -R /usr/lib/lazarus" (sem aspas), lembrando que isso dará acesso irrestrito a pasta do lazarus. Abra o Lazarus e vá no menu "Tools -> Configure Build Lazarus" na aba "Advanced Build Options", clique em "Clean all" depois o botão "Build", isso deve resolver o problema.