_______________
I have used LibHaru for many years, and it worked fine.
It was installed on a 32-bit Win2000 computer. But the computer stopped now to work.
Now I want to move the AHK program, which creates PDF files, to a newer computer (Win10, 64-bit),
but I can not get the program (LibHaru) to work.
What should be done to make it work on the newer computer?
_______________________
What have I done
First I copied the old libhpdf.dll from the old computer, but no PDF-file is created.
(maybe an earlier release, 32-bit, not all necessary files were copied or ...)
_______________________
After that, I tried to install LibHaru again
libharu-RELEASE_2_3_0 was downloaded from http://libharu.org/ (Maybe it's a 32-bit program? Does it matter?)
In order for LibHaru to work, the program must be "compiled" with a program NMAKE or MAKE or...
(if I understood the installation instructions below correctly - I have no idea what cygwin or MSYS is)
LibHaru Installations instruction .:
I searched and searched for the NMAKE or MAKE programs, but found only a 32-bit program that did not work under a 64-bit OS.Windows (except cygwin/MSYS)
Unpack the libharu package, using the command prompt.
unzip libharu-X.X.X.zip
cd libharu-X.X.X
There are several kinds of makefile, for every compiler, in the script directory. Build the library with an appropriate makefile.
1. Microsoft VC++ Compiler
nmake -f script/Makefile.msvc
2. Borland C++
make -f script/Makefile.bcc
Note: If you want to create DLL, use Makefile.msvc_dll (or Makefile.bcc32_dll) instead.
Type the following commands to test library. If it succeeds, some PDF files are made in the demo directory. In Windows environment, Install command is not prepared.
1. Microsoft VC++ Compiler
nmake -f script/Makefile.msvc[_dll] demo
2. Borland C++
make -f script/Makefile.bcc[_dll] demo
If you use "Visual Studio .NET", use "Visual Studio .NET Command Prompt" to build Haru. But some warnings about optimizing may occur, because the compiler included in "Visual Studio .NET" does not have an optimizing feature. You can also use "Microsoft Visual C++ Toolkit 2003" and "Microsoft Platform SDK" instead. The compiler of "Microsoft Visual C++ Toolkit 2003" has an optimizing feature.
Installed, after a while, the free version of Visual Studio and Visual C ++ Build Tools (64-bit).
Now I have the program nmake.exe!
If I understand the instruction correctly, the following command applies to me.
- nmake -f script/Makefile.msvc or
- nmake -f script/Makefile.msvc_dll
File structure .:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" or "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe" I don't know the difference
When i try, from the cmd-prompt (as administrator), to run the command .:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -f "C:\Temp\Libharu\script\Makefile.msvc"
I received the following error .:
'c1' is not recognized as an internal or external command, operal program or batch file. NMAKE : fatal error U1077: 'c1' : return code '0x1'
How do I proceed?