Windows compile error: 'color_lib': undeclared identifier
Created by: Chiel92
I'm on windows 7. In the past I once managed to manually build a version of graphviz. I can't figure out which commit I built back then, since at some point I just pulled the remote repo. Current commit:
commit bbd38b76890d6332564f65ed294ce12634269ff4
Author: Emden R. Gansner <erg@emdenrg.net>
Date: Sun Jan 29 18:50:34 2017 -0500
Update documentation to handle included json
I use 3 scripts to build, based on the instructions mentioned here: https://ellson.github.io/graphviz/doc/html/winbuild.html
Or maybe these script aren't correct (anymore)?
$ cat setup-step1.sh
root=`git rev-parse --show-toplevel`
echo "Root of repository: $root"
git submodule update --init
export PATH=$root/windows/dependencies/graphviz-build-utilities:$PATH
echo $PATH
cd windows/dependencies/libgd
mkdir deps
cd deps
wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/archives/freetype-2.6.2-vc14-x86.zip -O freetype.zip
wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/libiconv-1.14-vc14-x86.zip -O iconv.zip
wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/libjpeg-9b-vc14-x86.zip -O jpeg.zip
wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/libpng-1.6.21-vc14-x86.zip -O png.zip
wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/zlib-1.2.8-vc14-x86.zip -O zlib.zip
7z x freetype.zip
7z x iconv.zip
7z x jpeg.zip
7z x png.zip
7z x zlib.zip
$ cat setup-step2.bat
cd windows\dependencies\libgd
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
set WITH_DEVEL=deps
set WITH_BUILD=build
nmake /f windows/Makefile.vc build_libs
$ cat setup-step3.sh
root=`git rev-parse --show-toplevel`
echo "Root of repository: $root"
git submodule update --init
export PATH=$root/windows/dependencies/graphviz-build-utilities:$PATH
echo $PATH
msbuild graphviz.sln //t:gvc
I run step 1 and 3 in a git bash and step 2 in a cmd prompt. The step 3 ends with a compile error:
"C:\Users\Chiel.tenBrinke\Projects\graphviz\lib\gvc.vcxproj" (default target) (2) ->
(ClCompile target) ->
c:\users\chiel.tenbrinke\projects\graphviz\lib\common\colxlate.c(404): error C2065: 'color_lib': undeclared identifier [C:\Users\Chiel.tenBrinke\Projects\graphviz\lib\gvc.vcxproj]
c:\users\chiel.tenbrinke\projects\graphviz\lib\common\colxlate.c(405): error C2065: 'color_lib': undeclared identifier [C:\Users\Chiel.tenBrinke\Projects\graphviz\lib\gvc.vcxproj]
158 Warning(s)
2 Error(s)
Time Elapsed 00:00:05.31