Recent

Author Topic: [SOLVED] Using lazbuild to build LazMapViewer  (Read 1420 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 8571
[SOLVED] Using lazbuild to build LazMapViewer
« on: May 11, 2024, 09:10:45 pm »
A few months ago I found myself putting a bit of time into a script to build the Lazarus IDE with preinstalled packages, after finding that "using the IDE to add packages to itself" was having difficulty building for multiple widget sets (I like having precompiled IDEs for GTK and Qt) https://forum.lazarus.freepascal.org/index.php/topic,65706.msg507514.html#msg507514 .

I've been looking at that again today with a view to using it for an IDE with LazMapViewer preinstalled, and hit what I believe is a known problem relating to ssl_openssl.pas (https://forum.lazarus.freepascal.org/index.php/topic,47082.msg336821.html#msg336821 https://forum.lazarus.freepascal.org/index.php/topic,47082.msg336838.html#msg336838).

I know that my system is able to compile and run the standard LazMapViewer demos in an IDE where the packages have been installed using OPM. However I'd be very interested if anybody could recommend a "best practice" solution for setting it up using lazbuild.

I attach my current lazbuild script in case it is of any use or interest to anybody.

MarkMLl
« Last Edit: May 12, 2024, 12:06:57 pm by MarkMLl »
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

MarkMLl

  • Hero Member
  • *****
  • Posts: 8571
Re: Using lazbuild to build LazMapViewer
« Reply #1 on: May 12, 2024, 12:06:21 pm »
I've followed the lead of OLPM and created symlinks for ssl_openssl.pas, ssl_openssl_lib.pas and jedi.inc in the synapse_downloadengine directory.

Currently having problems building for Qt5 and unused packages and links have to be removed using the IDE, but I think it's good enough since it allows me to regenerate my working IDE etc. in a controlled fashion.

The form of --add-package-link in the --help output etc. appears to be wrong: the .lpk shouldn't be supplied as a parameter to the option but as the final parameter that the program is working on.

Updated shell script attached.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

wp

  • Hero Member
  • *****
  • Posts: 13502
Re: [SOLVED] Using lazbuild to build LazMapViewer
« Reply #2 on: May 12, 2024, 12:16:58 pm »
Sorry can't help you with this. All the make tools always have been a mystery to me (just followed by regular expressions...)

MarkMLl

  • Hero Member
  • *****
  • Posts: 8571
Re: [SOLVED] Using lazbuild to build LazMapViewer
« Reply #3 on: May 12, 2024, 12:25:54 pm »
Sorry can't help you with this. All the make tools always have been a mystery to me (just followed by regular expressions...)

OTOH, your two cited ML postings (and looking what OLPM actually did) were seminal.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018