Lazarus não compila

Código do Project.lpr:

program Project1;

{$mode objfpc}{$H+}

uses
 {$IFDEF UNIX}{$IFDEF UseCThreads}
 cthreads,
 {$ENDIF}{$ENDIF}
 Interfaces, // this includes the LCL widgetset
 Forms, unit1
 { you can add units after this };

{$R *.res}

begin
 RequireDerivedFormResource := True;
 Application.Initialize;
 Application.CreateForm(TForm1, Form1);
 Application.Run;
end.

Erro:

project1.lpr(9,3) Fatal: Cannot find unit Interfaces used by Project1. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk2/interfaces.ppu. Clean up package “LCL”…

O que faço para corrigir o problema/erro? preciso corrigir para criar programas para Linux.

1 Like

Se você precisar perguntar a um desenvolvedor sobre isso, acesse o Freenode IRC @ #openmandriva-cooker. Ou envie um relatório de erro em nosso Rastreador de problemas. How to report a bug - Wiki [en] OpenMandriva

If you need to ask a developer about this you need to go on Freenode IRC @ #openmandriva-cooker. Or file a bug report on our Issue Tracker. How to report a bug - Wiki [en] OpenMandriva

1 Like

Install Lazarus IDE 3.6 - OM Lx 6.0 - After some issues, this is what I did:

$ sudo dnf install lazarus
$ sudo dnf install fpc make gcc  
$ sudo dnf install *gtk2-devel

The last command will install gtk2-devel, but on OM this package came as follow:

  • lib64dbusmenu-gtk2-devel.x86_64 : Library headers for libdbusmenu
  • lib64wxgtku3.0-gtk2-devel.x86_64 : Header files and development documentation for wxGTK - unicode

Without gtk2-devel, gcc and make, I couldn’t compile in Lazarus

Now, everything is Ok!

1 Like