Applications developed in Lazarus not displaying on Amiga

danilos · 399

danilos

  • Newbie
  • *
    • Posts: 27
    • Karma: +1/-0
Hi, I have to admit that it has been a really long time since I was developing for the Amiga or in Pascal, but I am keen on doing some work and hopefully contributing to AROS. I am using the excellent machine DSL 2.7 prepared by ALB to cross-compile Lazarus projects into Amiga executables and I find that even the simplest test does not seem to work. The application when launched on the Amiga does not do anything, it does not pop up a window, it just seems to disappear.

I followed his excellent demo click me tutorial and I compile on the DSL VM machine and the form displays on the Linux machine
In the multiple build modes I select: Amiga, AROS, AMIGAOS4 and MorphOS (I compile to all targets just to test).
Lazarus builds the project without errors.
In the project lib folder I find the folders: i386-aros, i386-linux, m68k-amiga. powerpc-amiga, powerpc-morphos. All are populated with files with the name of the project and if I execute the project file in the i386-linux, the application runs as expected.

When I am on the Amiga in WinAUE, and I double click on the executable in folder m68k-amiga, WorkBench opens the execute a file dialog but when I click on ok, nothing else is displayed. If I use the CLI to launch the application, the prompt returns normally but nothing is displayed on the screen.

I also wrote a standard writeln('Hello World'); readln; to see if there is any console output, but again the file executes and control returns to the CLI but nothing seems to happen.

Would anyone have any idea of what I am doing wrong? Thanks indeed for any help.



4pLaY

  • Administrator
  • Junior Member
  • *****
    • Posts: 74
    • Karma: +11/-0
Reply #1 on: March 06, 2021, 01:51:41 PM
When I am on the Amiga in WinAUE, and I double click on the executable in folder m68k-amiga, WorkBench opens the execute a file dialog but when I click on ok, nothing else is displayed. If I use the CLI to launch the application, the prompt returns normally but nothing is displayed on the screen.

I also wrote a standard writeln('Hello World'); readln; to see if there is any console output, but again the file executes and control returns to the CLI but nothing seems to happen.

Would anyone have any idea of what I am doing wrong? Thanks indeed for any help.

Perhaps a silly question, but is the exe file executeable? If the file has been a trip in Windows, Win will remove the executeable flag on it most of the times.



danilos

  • Newbie
  • *
    • Posts: 27
    • Karma: +1/-0
Reply #2 on: March 06, 2021, 02:18:25 PM
Hi, thanks for the help. The file permissions are rwed so they should be executable.



magorium

  • Moderator
  • Senior Member
  • *****
    • Posts: 253
    • Karma: +7/-0
  • Convicted non contributor
Reply #3 on: March 06, 2021, 03:19:32 PM
Danilos,


Are you able to share a simple executable for me to try ? Does any of the example programs from ALB42's blog ( https://blog.alb42.de/ ) execute ok on your system ?


The first thing that comes to mind is if you are aware that by default Free Pascal creates executables for a 68020 processor (no FPU). Does your testing machine contain such a processor ?