Comiling the THTMLViewer 11.4v component on Linux platform. lazarus / 31-LCL ---------------------------------------------------------------------- toplek · 2015-08-23 08:29 Hi, I'm trying to compile THTMLViewer v11.4 component on linux platform, but I'm getting the error: QuoteGDIPL2A.pas(106,48) Error: Identifier not found "ULONG" Please help in solving this problem. br Piotr Polok ---------------------------------------------------------------------- Jurassic Pork · 2015-08-23 10:13 hello toplek, i am trying like you to compile htmviewer package (but the version 11.6)  on Ubuntu 14.04 with Lazarus 1.4.0 . I have this error : QuoteFree Pascal Compiler version 2.6.4 [2014/04/20] for x86_64 Copyright (c) 1993-2014 by Florian Klaempfl and others (1002) Target OS: Linux for x86-64 /home/jurassic/lazarus/HtmlViewer/source/htmlmisc.pas(569,68) Error: (5000) Identifier not found "LPINT" /home/jurassic/lazarus/HtmlViewer/source/htmlmisc.pas(570,72) Error: (5000) Identifier not found "INT_PTR" /home/jurassic/lazarus/HtmlViewer/source/htmlmisc.pas(582,1) Fatal: (10026) There were 2 errors compiling module, stopping Fatal: (1018) Compilation aborted     see here ---------------------------------------------------------------------- toplek · 2015-08-23 10:26 You have to add to uses clausule the 'Types' library. I have below code: Code: [Select]uses   SysUtils,   {$IFDEF MSWINDOWS}    Windows,   {$ELSE}    Types, Printers,   {$ENDIF}   LclIntf, LMessages, LclType, LclProc, InterfaceBase,   GraphType, Graphics, Controls; ---------------------------------------------------------------------- Jurassic Pork · 2015-08-23 11:05 i have already types in the uses of  htmlmisc unit Code: [Select]{$mode objfpc} {$H+} {$inline on} unit HtmlMisc; interface uses   ctypes,   SysUtils,   {$IFDEF MSWINDOWS}    Windows,   {$ELSE}    Types, Printers,   {$ENDIF}      not sure that this unit is unix compatible : for example we find in the code without conditional compilation : Code: [Select]procedure InitFlatSB; var   handle : THandle; begin   handle:=GetModuleHandle('comctrl32.dll');   if handle<>0 then   begin     pointer(Internal_InitializeFlatSB):=GetProcAddress(handle,'Initial izeFlatSB'); ---------------------------------------------------------------------- toplek · 2015-08-23 11:36 Could you try to install THTMLViewer 11.4v, in this version there is no LPINT used in htmlmisc unit. ---------------------------------------------------------------------- Jurassic Pork · 2015-08-23 14:33 Sorry but GDIPL2A.pas is a windows unit     : Code: [Select]{$I htmlcons.inc} unit GDIPL2A; interface uses   Windows, ActiveX, SysUtils, Graphics, Classes,   HtmlGlobals;                           Not sure that htmlviewer is linux compatible. Where have you seen that this package works under linux ? No Code: [Select]{$IFDEF UNIX} in the source files ---------------------------------------------------------------------- toplek · 2015-08-23 15:29 I compiled / installed the component, but I'm getting an error while viewing HTML data. The old version of this component (ThtmlPort) is working properly on Linux platform, omitting image viewing: http://forum.lazarus.freepascal.org/index.php/topic,29373.0.html perhaps you are right that newer version of THTMLViewer is not supporting Unix platform. Do you know about Html Viewer component that will work on Unix platform ? Thank you for the help. PP p.s.: In unit GDIPL2A should be added to uses clause  the library: 'LclType', 'Types', 'HtmlMisc' and change variable type ULONG to Cardinal; ---------------------------------------------------------------------- Jurassic Pork · 2015-08-23 16:01 gdiplus is a ms windows library for graphics , image , maybe it is for that your component htlmport doesn't work on linux. Maybe i make a mistake ---------------------------------------------------------------------- OrphanCat · 2016-09-22 12:17 BerndGabriel released HtmlViewer 11.7 with Linux support.