Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delphi: MapWinGIS_TLB.pas doesn't compile #212

Open
oldwired opened this issue Sep 10, 2021 · 4 comments
Open

Delphi: MapWinGIS_TLB.pas doesn't compile #212

oldwired opened this issue Sep 10, 2021 · 4 comments
Assignees

Comments

@oldwired
Copy link

MapWinGIS_TLB.pas doesn't compile under Delphi (10.4.2, but should be a general problem.

[dcc32 Error] MapWinGIS_TLB.pas(16332): E2029 ';' expected but '.' found
[dcc32 Error] MapWinGIS_TLB.pas(16334): E2003 Undeclared identifier: 'DefaultInterface'
[dcc32 Error] MapWinGIS_TLB.pas(16334): E2066 Missing operator or semicolon
[dcc32 Error] MapWinGIS_TLB.pas(16334): E2003 Undeclared identifier: 'yLatitude'
[dcc32 Error] MapWinGIS_TLB.pas(16334): E2003 Undeclared identifier: 'xLongitude'
[dcc32 Error] MapWinGIS_TLB.pas(9869): E2065 Unsatisfied forward or external declaration: 'TMap.SetLatitudeLongitude'
[dcc32 Fatal Error] Unit1.pas(7): F2063 Could not compile used unit 'MapWinGIS_TLB.pas'
Failed
Elapsed time: 00:00:00.2

If you look at MapWinGIS_TLB:16332 you can see that
procedure TmwMap.SetLatitudeLongitude(yLatitude: Double; xLongitude: Double); should be procedure TMap.SetLatitudeLongitude(yLatitude: Double; xLongitude: Double);
There is a superflous "mw" in the name of the class.

@mainxt
Copy link

mainxt commented Sep 10, 2021

Which version of MapWinGIS are you trying to compile? And where do you get MapWinGIS_TLB.pas create yourself or take from github?
I will assume that if you are trying to use an existing package ... it is outdated as it was built for version 5.1 and does not reflect the latest changes for version 5.2.4.

@mainxt
Copy link

mainxt commented Sep 10, 2021

I get it ... you tried to install it wrong.
Try to install with MapWinGIS.Delphi.Component.v5.1.0.zip
But it does not support some of the 5.2.4 features.
Need to update ....

You can try this

@oldwired
Copy link
Author

I installed (the 32 Bit built) 5.2 Release from here: https://github.com/MapWindow/MapWinGIS/releases/tag/v5.2.4 compiled and installed the component from the Zip Folder and used the MapWinGIS_TLB.pas that gets copied into the installation directory.
Now I see where I went wrong (I should not have used the .pas from the install folder), but it's all a bit confusing.

@Lwandile-M
Copy link

Good day

Please assist on how you finally got it to work , or even a more updated step-by-step instruction on how to install the ocmponent in delphi CE if you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants