[Lazarus] Testing Lazarus development version easily under Wine

Juha Manninen juha.manninen62 at gmail.com
Sun Sep 6 11:03:09 CEST 2015

I don't have Windows right now.
I found out an easy way to test my development repository changes also
under Wine.
Lazarus runs amazingly well with Wine.

I installed the latest Lazarus release Windows version on Linux. It
opens with Wine automatically, no problems.
Then I ran a bash script (copied below and attached).
It deletes the source directories and replaces them with symbolic
links to my development sources.
Then I started the Windows version again. It complains about wrong
version and a missing package but that is OK.
Then I rebuilt it from Tools -> Configure Build Lazarus ... and I have
the latest Windows version of Lazarus running on Linux! Absolutely
cool. :)
I can check that my changes don't break the Windows version already
before committing them.




# Lazarus development version path.

# Lazarus release Windows version.
cd ~/.wine/drive_c/lazarus

for LazDir in components converter debugger designer doceditor docs
examples ide images languages lcl packager test tools
  # Do not delete already linked directories.
  if [[ -L "$LazDir" ]]; then
    echo "Directory $LazDir is already linked"
  echo "Linking directory $LazDir to development version"
  # Delete a directory from Windows installation.
  rm -rf $LazDir
  # Replace it with a symbolic link to Linux development version.
  ln -s $LazDevelPath/$LazDir $LazDir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LinkLazFromWineToLinux.sh
Type: application/x-sh
Size: 646 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150906/b6825422/attachment-0002.sh>

More information about the Lazarus mailing list