Closed Digital-Banana closed 6 years ago
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.
What operating system are you using now? I'll give this error message a look.
On Oct 7, 2017 4:15 AM, "Kenny Jeurissen" notifications@github.com wrote:
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.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/karimnaaji/vectiler/issues/24#issuecomment-334918825, or mute the thread https://github.com/notifications/unsubscribe-auth/AGvARXck1nSNIrFvQSgzX_GMetz365I6ks5spzMzgaJpZM4PwKpl .
Same as before! Windows 10, 64 bit.
The executable name on windows platform shouldn't be vectiler.out
but
vectiler.exe
as you can see here
https://ci.appveyor.com/project/karimnaaji/vectiler/build/1.0.19#L282. This
would make sense since the error message is not recognized as an internal or external command, operable program or batch file
means the command
isn't found. To be sure to run the appropriate executable, I would
recommend running the command dir
from the build directory output, most
likely under build\Debug
making sure that vectiler.exe
is available.
On Sat, Oct 7, 2017 at 11:01 AM, Kenny Jeurissen notifications@github.com wrote:
Same as before! Windows 10, 64 bit.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/karimnaaji/vectiler/issues/24#issuecomment-334941085, or mute the thread https://github.com/notifications/unsubscribe-auth/AGvARf88qNoqZvMSIHrb6dYfKRKlqWXCks5sp5IxgaJpZM4PwKpl .
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
.
After running "cmake -- build ." I get the following: