Virtual Lazarus

Posted by ALB42 on 21. April 20167 Comments

Here you can download a Virtual machine for VMware Player. It’s a Linux with cross freepascal compilers for Amiga 3.x, AmigaOS 4, AROS (i386), MorphOS and a working Lazarus which can produce LCL – GUI applications for all this platforms (+ Linux of course).
 

Virtual machine with Lazarus Amiga, OS4, AROS, MorphOS:
VM Lazarus (1152 MB)
MD5: 2bb3c6c04e8489cb9db6dfa665112094

 

Introduction Video for this virtual machine use to show how easy it is:


Addition for AmigaOS4:

History

Version 2.0 (16.05.2016)

  • FIX: Redraw problems on AmigaOS3
  • FIX: Size problems
  • FIX: Mouse event crashes
  • ADD: Support for AmigaOS4
  • CHG: Striped image from unneeded things, reduced download size

Version 1.0

  • Inital release for AmigaOS3, AROS, MorphOS

 

Questions and Answers

Q: How to change the default keymap?

A: Open xterm and type “setxkbmap us”, replace the us (= american layout) by your favourite keyboard layout (de, us, fr, ….). To make it permanent for every boot, edit /home/test/.profile and add the setxkbmap call to end of the file.

 

Q: How did you transfer the compiled programs to the target computer?

A: I used the VMware shared folder on the host computer and used samba to access the program from MorphOS. Amiga/UAE and AROS can directly access the files on the harddisk or with samba on dedicated computers.

 

Q: The AROS compilation seems to be different from the previous AROS release?

A: Yes, the LCL diverted fro AROS on the one side and Amiga/MorphOS on the other side. This is the first try to join them, but its not on par currently. (For example Groupboxes does not work in this version also speedbuttons look weird and so on) So if you experience problems just compile your program at AROS again, or wait for bugfixes πŸ˜‰

 

Q: How to compile for Amiga/AROS/MorphOS?

A: You can set by hand in Project Options. But I suggest you use my prepared config file as shown in the video. Open “Menu – Project -Project Options” press “Import” (Button on the lower edge) choose the “/home/test/AllAmigaPlatforms.xml”. Now you have build settings for all four platforms.

 

Q: Synedit (or other package) is missing in the component icon list?

A: Make sure this package is already supported for Amiga style systems (SynEdit is πŸ˜‰ ) and go to Package – Install/Uninstall Packages and choose to install. Lazarus have to compile again after installing/uninstalling an package.

 

Q: Are there examples/How to know which components are availabel for our systems?

A: Examples are available at GitHub. If you want to download directly to this virtual machine, open a xterm and type “git clone https://github.com/alb42/fpc-tests.git”. You will find a directory named fpc-tests in your home directory with a sub directory LCL, where you can find many test code examples to use and test which elements are working, or not.

 

Q: I get errors on code completion if the compile mode is other than Linux

A: Yes, thats a Bug, I still have no idea why this happen, so remember to turn back to Default (=Linux) before write code. The Option “build many modes” seems also to have a Bug, if you include “Default” into the compilation, so uncheck it before start, like shown in the video

7 comments to "Virtual Lazarus"

  1. Marcus F sagt:

    This is great!

    With a little tweaking I got it working perfectly with VirtualBox and seamless + auto resize.

    • ALB42 sagt:

      nice πŸ˜‰ did you wrote some code already πŸ™‚ Some ideas already what to code?

      • Marcus F sagt:

        I’m full of ideas πŸ˜‰

        A friend just gave me an Amiga 500+ so I’m going to see if I can make something run on that (After I upgrade ROMS and WB)

        • ALB42 sagt:

          I don’t to stop your enthusiasm, but a plain A500+ will be much too slow for LCL programs, thats more for accelerated Amigas πŸ˜‰
          You need at least OS 3.0 to run FreePascal compiled programs.
          What will work on such setup is native Amiga API for example or MUI programs.
          Which are maybe easier to compile and use with the Online Compiler

          • Marcus F sagt:

            No worries, enthusiasm is not stopped!

            I use FPC all over the place, I’m looking at adding Amiga and AROS development πŸ™‚

          • ALB42 sagt:

            good πŸ˜€
            Also I would like to point you to the FreePascal SubForum on AmigaCoding. Which I try to establish as a centralized discussion platform for Freepascal Amiga stuff πŸ˜‰ and maybe to show off the stuff you wrote. Maybe you want drop a Hello there πŸ˜‰

    • Mo Ahaddour sagt:

      Hi Marcus,

      Could you explain how you tweaked it for VirtualBox? I Would like to use Virtual lazarus in Virtualbox.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht verΓΆffentlicht. Erforderliche Felder sind mit * markiert.