Recent

Author Topic: LazMapViewer - testing samples  (Read 956 times)

J2M

  • Newbie
  • Posts: 6
LazMapViewer - testing samples
« on: June 14, 2023, 08:16:22 am »
Hello

I am testing LazMapViewer.

I made the installation of the package in the IDE, as indicated on the wiki https://wiki.lazarus.freepascal.org/LazMapViewer#Download_and_Installation

After download of the source code https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/lazmapviewer/, I opened the sample project "MapViewer_Demo", I tried to run it, but I got the following error message :

                  main.pas(388,11) Error: identifier idents no member "DrawPreviewTiles"

??

Note that the other samples "colored_tracks" and "trackdemo" are OK.


wp

  • Hero Member
  • *****
  • Posts: 12592
Re: LazMapViewer - testing samples
« Reply #1 on: June 14, 2023, 09:32:21 am »
Cannot reproduce this. Maybe you have a version mixup: old package, but new demo? Try again: After downloading the package from the sourceforge site via svn or zip snapshot, open the file "lazmapviewer.pkg.lpkl" in Lazarus, click "Use" > "Install". Allow the IDE to rebuild. When the IDE restarts you should be able to load the demo project. If this does not work do a clean rebuild of the IDE: "Tools" > "Configure build Lazarus" > check "Clean All" and "Switch after building to automatically" > "Build"

J2M

  • Newbie
  • Posts: 6
Re: LazMapViewer - testing samples
« Reply #2 on: June 14, 2023, 10:36:04 am »
Thank you.

When I wrote my post, I was using the already compiled package LazMapViewer.pkg, v0.2.5, available on the SVN of sourceForge (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/lazmapviewer/, that seems not taking into account new versions of source file.

This package v0.2.5 seems to no provide the recent evolutions of the code with "DrawPreviewTiles".

After posting my post, I managed to have the demo work, but it is a turn around :
- de-installing the lazmapviewer package v0.2.5 from the IDE
- regenerating the IDE to complety delete it-
- recompiling the demo code generated errors as no LazMapViewer element were available
- then I added all the source code of lazmapviewer source folder to the demo project (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/lazmapviewer/source/)
- recompiling now the code, and it works

But this is not satisfactory .... because your process should be the correct one, but I have a problem ...

"the package from the sourceforge site via svn or zip snapshot, open the file "lazmapviewer.pkg.lpkl" in Lazarus "
-> this file "lazmapviewer.pkg.lpkl" is not available on sourceforge ?!?


« Last Edit: June 14, 2023, 03:00:12 pm by J2M »

 

TinyPortal © 2005-2018