Great!
> How should I provide these changes?
Unified diffs would be most appreciated.
> I would also like to make some changes to the Wiki, since I found some
> bugs in the documentation, but I'm not able to get access. Is there a
> way to get an account?
Sure.
Just send me the username you want.
--
Wbr,
Antony Dovgal
Thanks, that worked fine.
> hpdf.h: Added
>
> +typedef HPDF_HANDLE HPDF_FontDef;
> +typedef HPDF_HANDLE HPDF_U3D;
>
> since they were not defined for the shared library in Windows (this
> doesn't show up for Linux shared libraries).
>
> hpdf_streams.c: Moved
>
> -#ifndef HPDF_NOZLIB
> -#include <zlib.h>
> -#include <zconf.h>
> -#endif /* HPDF_NOZLIB */
Ok, everything is committed already.
> The CBS was tested with Visual C++ 9.0 on Windows
> XP, but eventually should also work for MinGW, MSys, Cygwin, Linux,
> Mac OS X, Borland C++ and maybe others. I tried to mimic the configure
> stage, but this is not complete yet. E.g. the hpdf_version.h will not
> be created at the moment. Also the installation part was not tested at
> all. Mind though, that I don't want to replace the ABS - the CBS
> should just enable to compile the haru library for Windows without too
> much trouble and easy maintainence - alltough you can replace the ABS
> with CBS also on Linux.
Good.
Could you add some README with instructions on how to use this CMake build sys?
--
Wbr,
Antony Dovgal
How do I specify certain install prefix?
Or zlib/libpng prefixes in case I want to link against certain versions?
The build fails here with the following errmsg:
------
....
Linking C executable font_demo
[ 76%] Built target font_demo
[ 77%] Building C object demo/CMakeFiles/grid_sheet.dir/grid_sheet.o
gcc: NOTFOUND: No such file or directory
make[2]: *** [demo/CMakeFiles/grid_sheet.dir/grid_sheet.o] Error 1
make[1]: *** [demo/CMakeFiles/grid_sheet.dir/all] Error 2
make: *** [all] Error 2
----
Any ideas?
--
Wbr,
Antony Dovgal
Okay, so there is a list of magic defines that should be used instead of ./configure options.
Can I see this list somewhere? `cmake --help` is not really informative.
Or is it possible to use something similar to ./configure?
>> Or zlib/libpng prefixes in case I want to link against certain versions?
>
> You need to set
>
> export CMAKE_INCLUDE_PATH=path_to_zlib_include
> export CMAKE_LIBRARY_PATH=path_to_zlib_library
>
> Although zlib is in the path, these exports should have preference.
Oh..
./configure is so much more convenient to use.
> Thought so :(.Visual C++ ignored that. I need to do some changes to
> the CBS files.
Ok.
--
Wbr,
Antony Dovgal