kai-46 / colmapforvissat Goto Github PK
View Code? Open in Web Editor NEWAdapted COLMAP intended to work with satellite images
License: Other
Adapted COLMAP intended to work with satellite images
License: Other
Describe the bug
Software cannot be built successfully in Windows
To Reproduce
Steps to reproduce the behavior:
cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE=D:\vcpkg\scripts\buildsystems\vcpkg.cmak
create the Colmap.sln successfully in the \build folderExpected behavior
Dear @Kai-46 , Can you provide me with some suggestions on this so that I can build the software successfully?I will be extremely grateful if you can provide me with assistance.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Describe the bug
I tried to build this software in Windows with Visual Studio 2017 and 2019, and CUDA_TOOLKIT= 9.2,10.2,11.2.
But colmap_cuda cannot be built successfully.
To Reproduce
Expected behavior
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
I'm not sure if this is a bug or just a platform dependent behaviour, but the array named pose_host_data[kNumTformParams * problem_.src_image_idxs.size()]
defined in patch_match_cuda.cu @ line #1734 results in the follwing error:
this cannot be used in a constant expression
.
I was able to mitigate the error and successfully build the project by allocating the array on heap and memset-ing the required umber of bytes as follows:
float* poses_host_data = new float[kNumTformParams * problem_.src_image_idxs.size()];
for (size_t i = 0; i < kNumTformParams * problem_.src_image_idxs.size(); i++) {
poses_host_data[i] = 0.0;
}
....
....
delete []poses_host_data;
Requesting your help in verifying the correctness of this patch.
To Reproduce
Steps to reproduce the behavior:
Just followed typical cmake build steps using Visual Studio 2019.
Expected behavior
NA
Screenshots
NA
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.