Hello,
I have the same problem. I am currently sitting on a Bananapi-M3, (BPI-M3), trying to install Lazarus 1.6 and fpc 3.0.0 simply via "apt-get install". It seems to work, but every time I compile some code with Lazarus the debugger is the problem.
If the debugger option is activated, the compiled program never shows up.
I also tried to run Lazarus directly from shell, language set to english and this is the result:
pi@bpi-iot-ros-ai:~$ ./startlaz_engl.sh
TLazarusManager.Run starting /usr/lib/lazarus/1.6/lazarus ...
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/pi/.lazarus"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=arm-linux-qt New=arm-linux-qt FPC=True LCL=False
Note: (lazarus) Invalid Package Link: file "/usr/lib/lazarus/1.6/components/fpdebug/fpdebug.lpk" does not exist.
TLazSourceFileManager.LoadLFM Creating designer for hidden component of /home/pi/pro2/unit1.pas
TLazSourceFileManager.InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
Hint: (lazarus) [TMainIDE.DoRunProject] INIT
Error: (lazarus) [TMainIDE.DoBuildProject] MainBuildBoss.DoCheckIfProjectNeedsCompilation nothing to be done
[TCmdLineDebugger] Debug PID: 1055
Hint: (lazarus) [TMainIDE.DoRunProject] Debugger=TGDBMIDebugger
Hint: (lazarus) [TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir="/home/pi/pro2/"
---------------
Ok so this wont work. I googled up for the missing fpdebug.lpk, found it somewhere on github, copy/pasted the file to /usr/lib/lazarus/1.6/components/fpdebug/fpdebug.lpk and got this:
pi@bpi-iot-ros-ai:~$ ./startlaz_engl.sh
is a file
TLazarusManager.Run starting /usr/lib/lazarus/1.6/lazarus ...
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/pi/.lazarus"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=arm-linux-qt New=arm-linux-qt FPC=True LCL=False
TLazSourceFileManager.LoadLFM Creating designer for hidden component of /home/pi/pro2/unit1.pas
TLazSourceFileManager.InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
Hint: (lazarus) [TMainIDE.DoRunProject] INIT
Hint: (lazarus) Project needs building: Src has changed Project /home/pi/pro2/unit1.pas
[TCompiler.Compile] CmdLine="/usr/bin/fpc -MObjFPC -Scghi -Os -gw2 -godwarfsets -gl -l -vabq -Fi/home/pi/pro2/lib/arm-linux -Fu/usr/lib/lazarus/1.6/lcl/units/arm-linux/qt -Fu/usr/lib/lazarus/1.6/lcl/units/arm-linux -Fu/usr/lib/lazarus/1.6/components/lazutils/lib/arm-linux -Fu/usr/lib/lazarus/1.6/packager/units/arm-linux -Fu/home/pi/pro2/ -FU/home/pi/pro2/lib/arm-linux/ -dLCL -dLCLqt project1.lpr"
Info: (lazarus) Execute Title="Compile Project, Target: project1"
Info: (lazarus) Working Directory="/home/pi/pro2/"
Info: (lazarus) Executable="/usr/bin/fpc"
Info: (lazarus) Param[0]="-MObjFPC"
Info: (lazarus) Param[1]="-Scghi"
Info: (lazarus) Param[2]="-Os"
Info: (lazarus) Param[3]="-gw2"
Info: (lazarus) Param[4]="-godwarfsets"
Info: (lazarus) Param[5]="-gl"
Info: (lazarus) Param[6]="-l"
Info: (lazarus) Param[7]="-vabq"
Info: (lazarus) Param[8]="-Fi/home/pi/pro2/lib/arm-linux"
Info: (lazarus) Param[9]="-Fu/usr/lib/lazarus/1.6/lcl/units/arm-linux/qt"
Info: (lazarus) Param[10]="-Fu/usr/lib/lazarus/1.6/lcl/units/arm-linux"
Info: (lazarus) Param[11]="-Fu/usr/lib/lazarus/1.6/components/lazutils/lib/arm-linux"
Info: (lazarus) Param[12]="-Fu/usr/lib/lazarus/1.6/packager/units/arm-linux"
Info: (lazarus) Param[13]="-Fu/home/pi/pro2/"
Info: (lazarus) Param[14]="-FU/home/pi/pro2/lib/arm-linux/"
Info: (lazarus) Param[15]="-dLCL"
Info: (lazarus) Param[16]="-dLCLqt"
Info: (lazarus) Param[17]="project1.lpr"
[TCompiler.Compile] end
Hint: (lazarus) [TMainIDE.DoBuildProject] compiler time in s: 19.2770001478493
[TCmdLineDebugger] Debug PID: 1691
Hint: (lazarus) [TMainIDE.DoRunProject] Debugger=TGDBMIDebugger
Hint: (lazarus) [TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir="/home/pi/pro2/"
TCodeHelpManager.GetFPDocFilenameForSource Hint: Owner has no fpdoc paths: /home/pi/pro2/unit1.pas
### TCodeToolManager.HandleException: "identifier not found: Sender" at Line=17 Col=28 in "/home/pi/pro2/unit1.pas"
I am at a loss now. So what to do to get Lazarus 1.6 and fpc 3.0.0 to install properly, including the debugger?