Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I try to run cmake 3.14.0 with visual studio 2017 and GDAL224 ,wrong #82

Open
laobel opened this issue Feb 12, 2019 · 20 comments
Open

I try to run cmake 3.14.0 with visual studio 2017 and GDAL224 ,wrong #82

laobel opened this issue Feb 12, 2019 · 20 comments

Comments

@laobel
Copy link

laobel commented Feb 12, 2019

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 LNK1120 1 个无法解析的外部命令 ctb D:\cesium-terrain-builder-master-quantized-mesh\build\src\Debug\ctb.dll 1

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 LNK2019 无法解析的外部符号 "class GDALDataset * __cdecl GDALCreateOverviewDataset(class GDALDataset *,int,int)" (?GDALCreateOverviewDataset@@YAPAVGDALDataset@@pav1@HH@Z),该符号在函数 "void * __cdecl getOverviewDataset(void ,int (__cdecl)(void *,int,int,double *,double *,double *,int *),void *)" (?getOverviewDataset@@YAPAXPAXP6AH0HHPAN11PAH@Z0@Z) 中被引用 ctb D:\cesium-terrain-builder-master-quantized-mesh\build\src\GDALTiler.obj 1

@laobel laobel closed this as completed Feb 12, 2019
@laobel laobel reopened this Feb 12, 2019
@ahuarte47
Copy link

Related #15 (comment) ?

@laobel
Copy link
Author

laobel commented Feb 12, 2019

Hi @ahuarte47 I“m try #15 (comment) ?,but the problem still exists.

@laobel
Copy link
Author

laobel commented Feb 12, 2019

Hi @ahuarte47 ,What GDAL version do you use? x64 or x86?

@ahuarte47
Copy link

ahuarte47 commented Feb 12, 2019

I build CTB with GDAL 2.3.x x64 in Windows

@laobel
Copy link
Author

laobel commented Feb 12, 2019

Oh,,Please send me the compiled GDAL 2.3.x. Thanks!

@ahuarte47
Copy link

You can download it from http://www.gisinternals.com

@laobel
Copy link
Author

laobel commented Feb 13, 2019

I download GDAL 2.3.3 from http://www.gisinternals.com,but errors still exists.

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "class GDALDataset * __cdecl GDALCreateOverviewDataset(class GDALDataset *,int,int)" (?GDALCreateOverviewDataset@@YAPEAVGDALDataset@@PEAV1@HH@Z) referenced in function "protected: virtual class ctb::GDALTile * __cdecl ctb::GDALTiler::createRasterTile(class GDALDataset *,double (&)[6])const " (?createRasterTile@GDALTiler@ctb@@MEBAPEAVGDALTile@2@PEAVGDALDataset@@AEAY05N@Z) ctb D:\cesium-terrain-builder-master-quantized-mesh\build\src\GDALTiler.obj 1

@ahuarte47
Copy link

Did you try to add to your project the gdaloverviewdataset.cpp file? It was my workaround.

@laobel
Copy link
Author

laobel commented Feb 13, 2019

Okay, thank you for your help.After I added to my project the gdaloverviewdataset.cpp file.Fortunately, the build succeeded.

Thanks!

@laobel
Copy link
Author

laobel commented Feb 14, 2019

Hi @ahuarte47, I use ctb to create terrain tiles, the format is quantized-mesh. There is an error when loaded with Cesium. Why?
loadterrainerror

@ahuarte47
Copy link

Do you have defined the Content-Encoding: gzip content negotiation header?

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding

@laobel
Copy link
Author

laobel commented Feb 14, 2019

YES。
qq 20190214095552

@laobel
Copy link
Author

laobel commented Feb 14, 2019

The terrain file is too small,the biggest is 2kb.. Is it normal?
qq 20190214095919

@laobel
Copy link
Author

laobel commented Feb 14, 2019

Request directly in the chrome browser and report the following error.
qq 20190214100531

@ahuarte47
Copy link

Yes, my tiles are very small too. I attach a fragment of my tile set, from 0 to 6th level - qm.zip . It is located in N42°49'0.73" - O1°38'35.63"

I do not know any idea about your error, I'm sorry.

@laobel
Copy link
Author

laobel commented Feb 15, 2019

Thank you all the same.I try other ideas。

@laobel
Copy link
Author

laobel commented Feb 18, 2019

Hi @ahuarte47 How do I create quantized-mesh terrain with multiple tif files?Must merge multiple tif files into a single file?

@ahuarte47
Copy link

ahuarte47 commented Feb 18, 2019

You could use gdalbuildvrt for creating a virtual raster file without really to save a new big tif.

@laobel
Copy link
Author

laobel commented Apr 3, 2019

@ahuarte47 How do I create quantized-mesh terrain with water mask by master-quantized-mesh branch。thanks!

@ahuarte47
Copy link

ahuarte47 commented Apr 3, 2019

Sorry, CTB tool does not support the water mask creation for any output format. You can read it in the limitations-TODO section in Readme page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants