Installation issue
Digital-Banana opened this issue · comments
After running "cmake -- build ." I get the following:
$ cmake --build .
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 6-10-2017 10:36:25.
Project "C:\Users\kenny\Desktop\map\build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\Users\kenny\Desktop\map\build\ALL_BUILD.vcxproj" (1) is building "C: \Users\kenny\Desktop\map\build\ZERO_CHECK.vcxproj" (2) on node 1 (default target s).
PrepareForBuild:
Creating directory "x64\Debug\ZERO_CHECK\".
Creating directory "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "Alw aysCreate" was specified.
CustomBuild:
Checking Build System
CMake does not need to re-run because C:/Users/kenny/Desktop/map/build/CMakeFi les/generate.stamp is up-to-date.
FinalizeBuildStatus:
Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Users\kenny\Desktop\map\build\ZERO_CHECK.vcxproj" (def ault targets).
Project "C:\Users\kenny\Desktop\map\build\ALL_BUILD.vcxproj" (1) is building "C: \Users\kenny\Desktop\map\build\vectiler.vcxproj" (3) on node 1 (default targets) .
Project "C:\Users\kenny\Desktop\map\build\vectiler.vcxproj" (3) is building "C:\ Users\kenny\Desktop\map\build\vectiler_core.vcxproj" (4) on node 1 (default targ ets).
PrepareForBuild:
Creating directory "vectiler_core.dir\Debug\".
Creating directory "C:\Users\kenny\Desktop\map\build\Debug\".
Creating directory "vectiler_core.dir\Debug\vectiler_core.tlog\".
InitializeBuildStatus:
Creating "vectiler_core.dir\Debug\vectiler_core.tlog\unsuccessfulbuild" becaus e "AlwaysCreate" was specified.
CustomBuild:
Building Custom Rule C:/Users/kenny/Desktop/map/CMakeLists.txt
CMake does not need to re-run because C:/Users/kenny/Desktop/map/build/CMakeFi les/generate.stamp is up-to-date.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /IC:\Users\kenny\Desktop\map\src /IC:\Users\kenny\Desktop\map\platform /IC:\Use rs\kenny\Desktop\map\3rdparty\glm /IC:\Users\kenny\Desktop\map\3rdparty\rapidjso n\include /IC:\Users\kenny\Desktop\map\3rdparty\earcut.hpp\include /IC:\Users\ke nny\Desktop\map\3rdparty\flag /Zi /nologo /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc: wchar_t /Zc:forScope /Zc:inline /GR /Fo"vectiler_core.dir\Debug\\" /Fd"vectiler_ core.dir\Debug\vectiler_core.pdb" /Gd /TP /errorReport:queue C:\Users\kenny\Desk top\map\src\geojson.cpp C:\Users\kenny\Desktop\map\src\projection.cpp C:\Users\k enny\Desktop\map\src\vectiler.cpp C:\Users\kenny\Desktop\map\platform\windows_ht tpget.cpp
geojson.cpp
c:\users\kenny\desktop\map\src\geojson.h(7): fatal error C1083: Cannot open incl ude file: 'rapidjson/document.h': No such file or directory [C:\Users\kenny\Desk top\map\build\vectiler_core.vcxproj]
projection.cpp
c:\users\kenny\desktop\map\src\projection.h(3): fatal error C1083: Cannot open i nclude file: 'glm/glm.hpp': No such file or directory [C:\Users\kenny\Desktop\ma p\build\vectiler_core.vcxproj]
vectiler.cpp
C:\Users\kenny\Desktop\map\src\vectiler.cpp(9): fatal error C1083: Cannot open i nclude file: 'rapidjson/document.h': No such file or directory [C:\Users\kenny\D esktop\map\build\vectiler_core.vcxproj]
windows_httpget.cpp
c:\users\kenny\desktop\map\platform\windows/miniz.c(1107): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intende d?) [C:\Users\kenny\Desktop\map\build\vectiler_core.vcxproj]
c:\users\kenny\desktop\map\platform\windows/miniz.c(2478): warning C4838: conver sion from 'const char' to 'mz_uint8' requires a narrowing conversion [C:\Users\k enny\Desktop\map\build\vectiler_core.vcxproj]
c:\users\kenny\desktop\map\platform\windows/mini_gzip.c(118): warning C4267: '+= ': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Users\k enny\Desktop\map\build\vectiler_core.vcxproj]
Generating Code...
Done Building Project "C:\Users\kenny\Desktop\map\build\vectiler_core.vcxproj" ( default targets) -- FAILED.
Done Building Project "C:\Users\kenny\Desktop\map\build\vectiler.vcxproj" (defau lt targets) -- FAILED.
Done Building Project "C:\Users\kenny\Desktop\map\build\ALL_BUILD.vcxproj" (defa ult targets) -- FAILED.
Build FAILED.
"C:\Users\kenny\Desktop\map\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\kenny\Desktop\map\build\vectiler.vcxproj" (default target) (3) ->
"C:\Users\kenny\Desktop\map\build\vectiler_core.vcxproj" (default target) (4) ->
(ClCompile target) ->
c:\users\kenny\desktop\map\platform\windows/miniz.c(1107): warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift inten ded?) [C:\Users\kenny\Desktop\map\build\vectiler_core.vcxproj]
c:\users\kenny\desktop\map\platform\windows/miniz.c(2478): warning C4838: conv ersion from 'const char' to 'mz_uint8' requires a narrowing conversion [C:\Users \kenny\Desktop\map\build\vectiler_core.vcxproj]
c:\users\kenny\desktop\map\platform\windows/mini_gzip.c(118): warning C4267: ' +=': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Users \kenny\Desktop\map\build\vectiler_core.vcxproj]
"C:\Users\kenny\Desktop\map\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\kenny\Desktop\map\build\vectiler.vcxproj" (default target) (3) ->
"C:\Users\kenny\Desktop\map\build\vectiler_core.vcxproj" (default target) (4) ->
(ClCompile target) ->
c:\users\kenny\desktop\map\src\geojson.h(7): fatal error C1083: Cannot open in clude file: 'rapidjson/document.h': No such file or directory [C:\Users\kenny\De sktop\map\build\vectiler_core.vcxproj]
c:\users\kenny\desktop\map\src\projection.h(3): fatal error C1083: Cannot open include file: 'glm/glm.hpp': No such file or directory [C:\Users\kenny\Desktop\ map\build\vectiler_core.vcxproj]
C:\Users\kenny\Desktop\map\src\vectiler.cpp(9): fatal error C1083: Cannot open include file: 'rapidjson/document.h': No such file or directory [C:\Users\kenny \Desktop\map\build\vectiler_core.vcxproj]
3 Warning(s)
3 Error(s)
Time Elapsed 00:00:01.79
Hi, this seems to be because the submodules are missing.
can you run this command from mingw or something similar?
git submodule update --init --recursive
@karimnaaji Hi, I actually tried it with Git Bash, Windows Command Prompt and MinGW. I've installed cmake and Visual Studio 15. What else could I still be missing?
If you want a precompiled version you can download it here (assuming you're running 64 bits arch):
https://github.com/karimnaaji/vectiler/releases
Otherwise, if you still need to compile it yourself, the submodules are more likely to be missing in your case. Can you make sure that the command ran successfully by looking at the folders under 3rdparty/
are not empty? I can see that one of the missing file is rapidjson/document.h
, is it available under 3rdparty/rapidjson/
?
I tried it from a differenct PC. I have everything set up now, and no longer get that error when I run --build.
The next issue I'm getting is that "./vectiler.out is not recognized as an internal or external command,
operable program or batch file."
Tried it with dot, without, with slash and without in three different command prompts.
Same as before! Windows 10, 64 bit.
Hi, the debug map appears empty. I tried again from scratch: 0 warnings, 3 errors this time (using Git Bash). I added a .zip of my files. Using a different command prompt doesn't seem to be working either.
map.zip
Thanks for attaching the project, will look at this on my windows machine soon.
Hi, I had the same error that you mentioned from the project that you attached. Though, after looking at the submodule folders, those are effectively empty. I would suggest you to start from scratch in a clean git project by using the following commands in order, from mingw:
git clone git@github.com:karimnaaji/vectiler.git --recursive
cd vectiler
cmake . -Bbuild -G "Visual Studio 14 2015 Win64" #if you use Visual studio 2015, otherwise "Visual Studio 15 2017 Win64"
cmake --build build
Hey. I tried again, starting from a clean git and following your cmds. I got 3 errors again.
Build started 10/30/2017 7:17:17 PM.
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61 )" does not exist in the project, and will be ignored.
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61 )" does not exist in the project, and will be ignored.
Project "C:\Users\Kenny Jeurissen\Desktop\vec\build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\Users\Kenny Jeurissen\Desktop\vec\build\ALL_BUILD.vcxproj" (1) is bu ilding "C:\Users\Kenny Jeurissen\Desktop\vec\build\ZERO_CHECK.vcxproj" (2) on no de 1 (default targets).
PrepareForBuild:
Creating directory "x64\Debug\ZERO_CHECK\".
Creating directory "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "Alw aysCreate" was specified.
CustomBuild:
Checking Build System
CMake does not need to re-run because C:/Users/Kenny Jeurissen/Desktop/vec/bui ld/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Users\Kenny Jeurissen\Desktop\vec\build\ZERO_CHECK.vcx proj" (default targets).
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61 )" does not exist in the project, and will be ignored.
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61 )" does not exist in the project, and will be ignored.
Project "C:\Users\Kenny Jeurissen\Desktop\vec\build\ALL_BUILD.vcxproj" (1) is bu ilding "C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler.vcxproj" (3) on node 1 (default targets).
Project "C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler.vcxproj" (3) is bui lding "C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj" (4) on node 1 (default targets).
PrepareForBuild:
Creating directory "vectiler_core.dir\Debug\".
Creating directory "C:\Users\Kenny Jeurissen\Desktop\vec\build\Debug\".
Creating directory "vectiler_core.dir\Debug\vectiler_core.tlog\".
InitializeBuildStatus:
Creating "vectiler_core.dir\Debug\vectiler_core.tlog\unsuccessfulbuild" becaus e "AlwaysCreate" was specified.
CustomBuild:
Building Custom Rule C:/Users/Kenny Jeurissen/Desktop/vec/CMakeLists.txt
CMake does not need to re-run because C:/Users/Kenny Jeurissen/Desktop/vec/bui ld/CMakeFiles/generate.stamp is up-to-date.
ClCompile:
D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I"C:\Users\Kenny Jeurissen\Desktop\vec\src" /I"C:\Users\Kenny Jeurissen\Deskto p\vec\platform" /I"C:\Users\Kenny Jeurissen\Desktop\vec\3rdparty\glm" /I"C:\User s\Kenny Jeurissen\Desktop\vec\3rdparty\rapidjson\include" /I"C:\Users\Kenny Jeur issen\Desktop\vec\3rdparty\earcut.hpp\include" /I"C:\Users\Kenny Jeurissen\Deskt op\vec\3rdparty\flag" /Zi /nologo /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMA KE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"vectiler_core.dir\Debug\\" /Fd"vectiler_core.dir \Debug\vectiler_core.pdb" /Gd /TP /errorReport:queue "C:\Users\Kenny Jeurissen\D esktop\vec\src\geojson.cpp" "C:\Users\Kenny Jeurissen\Desktop\vec\src\projection .cpp" "C:\Users\Kenny Jeurissen\Desktop\vec\src\vectiler.cpp" "C:\Users\Kenny Je urissen\Desktop\vec\platform\windows_httpget.cpp"
geojson.cpp
c:\users\kenny jeurissen\desktop\vec\src\geojson.h(7): fatal error C1083: Cannot open include file: 'rapidjson/document.h': No such file or directory [C:\Users\ Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
projection.cpp
c:\users\kenny jeurissen\desktop\vec\src\projection.h(3): fatal error C1083: Can not open include file: 'glm/glm.hpp': No such file or directory [C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
vectiler.cpp
C:\Users\Kenny Jeurissen\Desktop\vec\src\vectiler.cpp(9): fatal error C1083: Can not open include file: 'rapidjson/document.h': No such file or directory [C:\Use rs\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
windows_httpget.cpp
c:\users\kenny jeurissen\desktop\vec\platform\windows/miniz.c(2478): warning C48 38: conversion from 'const char' to 'mz_uint8' requires a narrowing conversion [ C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
c:\users\kenny jeurissen\desktop\vec\platform\windows/mini_gzip.c(118): warning C4267: '+=': conversion from 'size_t' to 'unsigned int', possible loss of data [ C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
Generating Code...
Done Building Project "C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core. vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler.vcxpr oj" (default targets) -- FAILED.
Done Building Project "C:\Users\Kenny Jeurissen\Desktop\vec\build\ALL_BUILD.vcxp roj" (default targets) -- FAILED.
Build FAILED.
"C:\Users\Kenny Jeurissen\Desktop\vec\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler.vcxproj" (default target) ( 3) ->
"C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj" (default targ et) (4) ->
(ClCompile target) ->
c:\users\kenny jeurissen\desktop\vec\platform\windows/miniz.c(2478): warning C 4838: conversion from 'const char' to 'mz_uint8' requires a narrowing conversion [C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
c:\users\kenny jeurissen\desktop\vec\platform\windows/mini_gzip.c(118): warnin g C4267: '+=': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
"C:\Users\Kenny Jeurissen\Desktop\vec\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler.vcxproj" (default target) ( 3) ->
"C:\Users\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj" (default targ et) (4) ->
(ClCompile target) ->
c:\users\kenny jeurissen\desktop\vec\src\geojson.h(7): fatal error C1083: Cann ot open include file: 'rapidjson/document.h': No such file or directory [C:\User s\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
c:\users\kenny jeurissen\desktop\vec\src\projection.h(3): fatal error C1083: C annot open include file: 'glm/glm.hpp': No such file or directory [C:\Users\Kenn y Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
C:\Users\Kenny Jeurissen\Desktop\vec\src\vectiler.cpp(9): fatal error C1083: C annot open include file: 'rapidjson/document.h': No such file or directory [C:\U sers\Kenny Jeurissen\Desktop\vec\build\vectiler_core.vcxproj]
2 Warning(s)
3 Error(s)
Time Elapsed 00:00:02.55
Hmm yes, the submodules are still empty from your local configuration. I wonder why they wouldn't get initialized since from the command above, the git initialization also does submodules fetching, but it appears that they aren't downloaded on your machine for some reason. I ran the exact same command with no issues locally. Make sure that they are valid and downloaded under 3rdparty
(https://git-scm.com/book/en/v2/Git-Tools-Submodules), if they are not there, compilation will fail.
Hey @karimnaaji -- I tried again after deleting all my files and re-installing Git. Installing works fine now, with zero errors. :)
One more question though, sorry, haha. ;) How is the lat/lon calculating done? In vectiler --tilex I want to give the coordinates found in the WGS84 data on maptiler.org, but these coords seem to be different, as in only four numbers followed by a slash with four more numbers. What gives? I'm not used to lat-lon coords being entered this way.
Glad it worked out :)
The tile coordinates are non-TMS based, there is no input using lat/lon (though it would be a nice addition in the future). You have to find your tile of interest in something similar to http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ (See Google addressing) and feed the coordinates (x, y and zoom) to vectiler. The slash notation gives a range, --tilex start_x/end_x
would construct a model with tile coordinates on x from start_x
to end_x
.