So I’m trying to build mkhexgrid.
1. libpng 👌
2. ignore libjpg for the moment 👌
3. FreeType 2 👌
4. libgd 👎 – I had to configure and build this inside a X11 session!
5. fortunately I already have libz! 😄
6. and I need the Boost C++ Libraries – I had too add `-I/Users/alex/Source/boost_1_35_0` to `CPPFLAGS` in the Makefile
7. mkhexgrid 👌
The X11 dependency was surprising. I assume there’s a better way to do it, but I don’t know what it is. The error I got without X11:
Pyrobombus:~/Source/gd-2.0.36RC1 alex$ gcc -DHAVE_CONFIG_H -I. -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/libpng12 -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fno-common -DPIC -o .libs/gdft.o gdft.c:1405:35: error: fontconfig/fontconfig.h: No such file or directory gdft.c:1468: error: parse error before '*' token gdft.c:1468: error: parse error before '*' token
I also noticed that SVG output required px units, which is not true. I submitted the following patch to version 0.1.1:
diff -c /Users/alex/Source/mkhexgrid-0.1.1/grid.cpp\~ /Users/alex/Source/mkhexgrid-0.1.1/grid.cpp
I just used copy & paste to use the same code that was available for PS output.
And finally this is the specfile I used for my map:
output=svg outfile=hex-layer.svg hex-side=1in rows=8 columns=5 grid-color=B3B3FF coord-color=B3B3FF coord-size=10pt coord-distance=0.7in coord-column-start=21 coord-row-start=11
Yay!! 😄
#Software #Graphics #Maps #Hex #RPG
(Please contact me if you want to remove your comment.)
⁂
I also found a python extension to generate hex maps in Inkscape via the Cartographers’ Guild thred index. There seems to be a bug that prevents the hexes from actually having coordinates. I’d have to investigate.
python extension to generate hex maps in Inkscape
Cartographers’ Guild thred index
– Alex Schroeder 2008-08-01 00:53 UTC