sorry for late reply but I change the processor but still have problem.
firstly I have the folowing
lazarus version 0.9.30.4-6
FPC 2.6.0
ARM LINUX gtk 2
then I tried the suggested code
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, process, LCLIntf, FileUtil, Forms, Controls, Graphics,
Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
RunCommand: TProcess;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
Var
sOutput: String;
Begin
RunCommand('omxplayer', ['/home/ppp1/Desktop/Clow.mp4'], sOutput);
end;
end.
but this error appeared(error **on RunCommand('omxplayer', ['/home/ppp1/Desktop/Clow.mp4'], sOutput);**
ERROR : illegal expression
also how can I update fpc and pascal??? in case there are new software??