Recent

Author Topic: [SOLVED] Can't compile THtmlViewer  (Read 3311 times)

Sniper

  • New Member
  • *
  • Posts: 23
[SOLVED] Can't compile THtmlViewer
« on: April 19, 2018, 09:28:30 am »
Lazarus 1.8.2 i386-win32
FPC 3.0.4 i386-win32
THtmlViewer 11.8
Windows 8.1 64 bit


Error messages:

htmlmisc.pas(313,36) Warning: Symbol "CM_WININICHANGE" is not implemented
htmlmisc.pas(735,15) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
htmlmisc.pas(1259,46) Error: Identifier not found "lpCarbon"
htmlmisc.pas(1259,56) Error: Identifier not found "lpQt"
htmlmisc.pas(1259,62) Error: Identifier not found "lpGTK2"
htmlmisc.pas(1259,70) Error: Identifier not found "lpWin32"


error line 1259 htExpectsUTF8 := WidgetSet.LCLPlatform in [lpCarbon, lpQt, lpGTK2, lpWin32]; in HtmlMisc.pas file

What is wrong?
« Last Edit: April 19, 2018, 02:04:36 pm by Sniper »

GetMem

  • Hero Member
  • *****
  • Posts: 3510
Re: Can't compile THtmlViewer
« Reply #1 on: April 19, 2018, 12:49:51 pm »
Try the one from OPM, the issue is fixed there AFAIK.

Sniper

  • New Member
  • *
  • Posts: 23
Re: Can't compile THtmlViewer
« Reply #2 on: April 19, 2018, 01:23:42 pm »
Ok. I have tried

master:
HTMLSubs.pas(758,5) Warning: Constructor should be public
HTMLSubs.pas(1830,25) Hint: Variable "CountsPerType" does not seem to be initialized
HTMLSubs.pas(1949,53) Hint: Local variable "MargArray" does not seem to be initialized
HTMLSubs.pas(3971,23) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(3974,23) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(4031,41) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(4333,46) Error: Illegal qualifier
HTMLSubs.pas(4357,46) Error: Illegal qualifier
HTMLSubs.pas(7669,18) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(7865,33) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(7865,15) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(7866,63) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(7892,40) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(8262,49) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(8266,49) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(8284,30) Hint: Local variable "Algn" does not seem to be initialized
HTMLSubs.pas(8601,44) Hint: Local variable "Point" does not seem to be initialized
HTMLSubs.pas(8609,48) Hint: Local variable "SizeV" does not seem to be initialized
HTMLSubs.pas(8610,46) Hint: Local variable "SizeW" does not seem to be initialized
HTMLSubs.pas(8717,71) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(11493,29) Hint: Local variable "Align" does not seem to be initialized
HTMLSubs.pas(11534,29) Hint: Local variable "Align" does not seem to be initialized
HTMLSubs.pas(13688,46) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(13688,67) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(14087,33) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(15510,29) Hint: Local variable "Align" does not seem to be initialized
HTMLSubs.pas(15817,38) Hint: Variable "IY" does not seem to be initialized
HTMLSubs.pas(15817,34) Hint: Variable "IX" does not seem to be initialized
HTMLSubs.pas(15952,40) Hint: Local variable "Y" does not seem to be initialized
HTMLSubs.pas(15952,37) Hint: Local variable "X" does not seem to be initialized
HTMLSubs.pas(16368,42) Hint: Variable "IY" does not seem to be initialized
HTMLSubs.pas(16368,38) Hint: Variable "IX" does not seem to be initialized
HTMLSubs.pas(16392,38) Hint: Variable "IY" does not seem to be initialized
HTMLSubs.pas(16392,34) Hint: Variable "IX" does not seem to be initialized


11.7:
htmlmisc.pas(164,18) Error: Identifier not found "GCP_RESULTS"
htmlmisc.pas(164,29) Error: Error in type definition
htmlmisc.pas(309,36) Warning: Symbol "CM_WININICHANGE" is not implemented

11.6
htmlmisc.pas(163,18) Error: Identifier not found "GCP_RESULTS"
htmlmisc.pas(163,29) Error: Error in type definition
htmlmisc.pas(308,36) Warning: Symbol "CM_WININICHANGE" is not implemented

11.5
htmlmisc.pas(163,18) Error: Identifier not found "GCP_RESULTS"
htmlmisc.pas(163,29) Error: Error in type definition
htmlmisc.pas(308,36) Warning: Symbol "CM_WININICHANGE" is not implemented

11.4
htmlmisc.pas(141,18) Error: Identifier not found "GCP_RESULTS"
htmlmisc.pas(141,29) Error: Error in type definition
htmlmisc.pas(286,36) Warning: Symbol "CM_WININICHANGE" is not implemented


Sniper

  • New Member
  • *
  • Posts: 23
Re: Can't compile THtmlViewer
« Reply #3 on: April 19, 2018, 01:28:01 pm »
Try the one from OPM, the issue is fixed there AFAIK.
What OPM is?

GetMem

  • Hero Member
  • *****
  • Posts: 3510
Re: Can't compile THtmlViewer
« Reply #4 on: April 19, 2018, 01:46:19 pm »

Thaddy

  • Hero Member
  • *****
  • Posts: 9190
Re: Can't compile THtmlViewer
« Reply #5 on: April 19, 2018, 02:02:24 pm »
I tested for arm (Raspberry Pi)  and win64: both work with OPM. But I use trunk.
also related to equus asinus.

Sniper

  • New Member
  • *
  • Posts: 23
Re: Can't compile THtmlViewer
« Reply #6 on: April 19, 2018, 02:03:31 pm »