Panic error: /usr/bin/ant clean -Dtouchtest.enabled=true debug lazarus / 43-Android ---------------------------------------------------------------------- RDL · 2019-07-19 06:44 Hey. I'm trying to install android support in lazarus. I am usinghttps://forum.lazarus.freepascal.org/index.php?topic=42527 instruction. After installation, I get an error at compile time. What am I doing wrong? ---------------------------------------------------------------------- RDL · 2019-07-19 12:16 I found that if the emulator's terminal is an "xfce4-terminal", then Lazarus gives an error. If I remove the "xfce4-terminal" and install the "xterm", there will be no errors when building it. Is it possible to somehow specify in lamw through which terminal emulator to work? ---------------------------------------------------------------------- RDL · 2019-07-21 11:55 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function TApkBuilder.BuildByAnt: Boolean;var  Tool: TIDEExternalToolOptions;begin  Result := False;  Tool := TIDEExternalToolOptions.Create;  try    Tool.Title := 'Building APK (Ant)... ';     {$ifdef darwin}    Tool.EnvironmentOverrides.Add('JAVA_HOME=${/usr/libexec/java_home}');    {$else}    Tool.EnvironmentOverrides.Add('JAVA_HOME=' + FJdkPath);  {$endif}     Tool.WorkingDirectory := FProjPath;    Tool.Executable := IncludeTrailingPathDelimiter(FAntPath) + 'ant'{$ifdef windows}+'.bat'{$endif};     if not FileExists(Tool.Executable) then    raise Exception.CreateFmt('Ant bin (%s) not found! Check path settings', [Tool.Executable]);     Tool.CmdLineParams := 'clean -Dtouchtest.enabled=true debug';      // tk Required for Lazarus >=1.7 to capture output correctly{$if lcl_fullversion >= 1070000}    Tool.ShowConsole := True;{$endif}    // end tk    Tool.Scanners.Add(SubToolAnt);    if not RunExternalTool(Tool) then    raise Exception.Create('Cannot build APK!');    Result := True;  finally    Tool.Free;  end;end; In the xfce4 environment, the TApkBuilder.BuildByAnt code does not work correctly. All parameters from Tool.CmdLineParams will be applied to xfce4-terminal and not to the program specified in Tool.Executable. If string Tool.CmdLineParams := 'clean -Dtouchtest.enabled=true debug'; to replace Tool.CmdLineParams := '-e "'+Tool.Executable+' clean -Dtouchtest.enabled=true debug"'; then the build was successful. This is provided that there is not a single running xfce4 terminal. I consider that it is necessary to use for assembly not the terminal of an environment, but xterm. How can I indicate that the build will go through xterm?