Please Help!! How install libharu in Windows XP

1,594 views
Skip to first unread message

fortuna

unread,
Nov 26, 2008, 12:45:20 PM11/26/08
to libHaru
I'm new to using the libHaru library in Windows,
I programing in Lazarus in Linux and using libHaru fine.

I install:
1) Cmake 2.6
2) MinGW-5.1.4.exe
3) Last libharu




But now I need program in windows.

I try compile libhpdf.dll on diferen manners 14 days without
success.



I am trying testing this now.
http://groups.google.com/group/libharu/files?upload=1
buildHaru.zip

When started buildHaru.bat

It reports mistake.

when compile zlib static,
Cannot find source file adler32.c


and the end

It reports mistake.
Could NOT find ZLIB

Thee best regards from Slovenia.

Werner Smekal

unread,
Nov 26, 2008, 3:01:41 PM11/26/08
to lib...@googlegroups.com
Hi,

download libHaru-2.2.0-gcc.zip from
http://groups.google.com/group/libharu/files .
This zip file contains the already compiled libharu (with zlib and
libpng) library for MinGW GCC. Binary files and include files are
included, so this is all you need.

buildharu.zip may only work if my latest patch is applied, but I think
this patch wasn't applied so far, so this may not work with latest
libharu source.

Regards,
Werner
--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886

email: sme...@iap.tuwien.ac.at
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
+43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499

fortuna

unread,
Nov 27, 2008, 4:04:02 AM11/27/08
to libHaru
Thanks
I'am download libHaru-2.2.0-gcc.zip from > http://groups.google.com/group/libharu/files
.

But,
I need more helps.
How now get libhpdf.dll?
Please
I'am asking for case
how compile libHaru.
Thanks

Werner Smekal

unread,
Nov 27, 2008, 5:00:23 AM11/27/08
to lib...@googlegroups.com
Hi,

the haru library is already compiled for MinGW.

* the dll file is in the bin directory (libharu.dll)
* the import library for the dll is in the lib directory (libharu.dll.a)
* the include files are in the include directory
* the static library of haru, zlib and linpng are in the lib directory
(libharus.a, libpng12.a, libz.a)

That's all you need,
Werner
phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499

Message has been deleted

fortuna

unread,
Nov 27, 2008, 11:30:00 AM11/27/08
to libHaru

I'm programing in Lazaurs (dephi),

Look libharu-2.1.0/if/delphi/README.delphi ,,





/////////////////////////////

README.delphi //////////////////////////////////////////////////////
To use this interface, built Haru as a shared-library (DLL) or use
binary
package for win32(libharu_x_x_x_dll_win32.zip).

There are some example programs in this directory. The steps to run
the
demonstration programs is as follows.

1. Build libharu as a shared library and copy libhpdf.dll to "if
\delphi"
directory. (Or expand binary package for win32
(libharu_x_x_x_dll_win32.zip)
and copy libhpdf.dll to "if\delphi" directory.)

2. Compile and run demo programs.

a)Delphi
Open XXXX.dpr and run it.

b)Free Pascal
Compile demo programs using '-Mdelphi' option as follows.

fpc -Mdelphi LineDemo.dpr
LineDemo.exe

NOTE:
libhpdf.dll is required to run the program which uses delphi/fpc
interface for
libharu.
/////////////////////////////////////////////////////////////////////////// /////////////////////////////




******************************************
look libharu-2.1.0/if/delphi/hpdf.pas

unit hpdf;
interface
uses
SysUtils, hpdf_types;
const
LIBHPDF_DLL = 'libhpdf.so';
{*
NOTE:
if you want to use Haru with Kylix/FreePascal on Linux,
change "libhpdf.dll" to "libhpdf.so" and change "cdecl" to "cdecl"
(This file and hpdf_types.pas)I'm programing in Lazaurs (dephi),

Look libharu-2.1.0/if/delphi/README.delphi
********************************************************************************************




====================================================
NOTE:
libhpdf.dll is required to run
the program which uses delphi/fpc interface for libharu.
====================================================




When I compilinig my program in lazarus is all OK.

But when I run my program then reports mistake.

libhpdf.dll was not found;

How make this libhpdf.dll???

Werner Smekal

unread,
Nov 27, 2008, 3:26:39 PM11/27/08
to lib...@googlegroups.com
Hi,
>
> How make this libhpdf.dll???
>

Now I understand. Download libHaru-2.2.0-gcc.zip in the bin directory
you will find libharu.dll - this is the shared libharu library compiled
with MinGW 3.4.5. You can now either change

LIBHPDF_DLL = 'libhpdf.so';

to

LIBHPDF_DLL = 'libharu.dll';

OR rename libharu.dll to libhpdf.dll - it's the same library (only newer
and different name). Don't know if this works in the first place, since
I never tested this (though Lazarus is a really cool project).

Regards,
Werner

fortuna

unread,
Nov 27, 2008, 4:37:10 PM11/27/08
to libHaru
LIBHPDF_DLL = 'libharu.dll';
OR rename libharu.dll to libhpdf.dll - it's the same library (only
newer
I'm try this bat in not OK


http://libharu.org/wiki/Documentation/Install

I try this compilers
Microsoft Visual C++ Toolkit 2003
Microsoft VC 5.0 ++ Compiler
Microsoft VC 6.0 ++ Compiler
Borland C++ 5.0
Borland C++ 5.5.0

All these compilers is to old and not compile libharu.

And finally I'm try compile with MinGW.1.4.exe and success,




I found solution;

echo on
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\Wbem\;C:\;C:
\MinGW\bin

Set PATH=C:\MinGW\bin;%PATH%
Set INCLUDE=C:\MinGW\bin\include;%INCLUDE%
Set LIB=C:\MinGW\bin\lib;%LIB%

cd \h\m\
mingw32-make -f script/Makefile.mingw_DLL


Now i get libhpdf.dll.
Thank you;
Reply all
Reply to author
Forward
0 new messages