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

MSfMDataStats Doesn't Compile #20

Open
sjordahl opened this issue Aug 31, 2021 · 0 comments
Open

MSfMDataStats Doesn't Compile #20

sjordahl opened this issue Aug 31, 2021 · 0 comments

Comments

@sjordahl
Copy link

Trying to build qtAliceVision as part of building the full AliceVision/Meshroom stack in an NVIDIA-enabled docker container.

OS: AliceVision Docker image derived from nvidia/cudagl:11.2.2-devel-ubuntu20.04
Python 3.8.10
Qt/PySide 5.14.1
Meshroom version: release v2021.1.0 (HEAD-ad9f1e87)
AliceVision version: release v2.4.0 (HEAD-38d899f54)
CUDA version: 11.2.2

The build errors out when compiling MSfMDataStats.cpp with the following error:

[ 91%] Building CXX object src/CMakeFiles/qtAliceVisionPlugin.dir/MSfMDataStats.cpp.o
/tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp: In member function 'virtual void qtAliceVision::FeaturesIORunnable::run()':
/tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp:63:24: error: 'loadFeaturesPerDescPerView' is not a member of 'aliceVision::sfm'; did you mean 'loadFeaturesPerView'?
63 | bool loaded = sfm::loadFeaturesPerDescPerView(regionsPerViewPerDesc, viewIds, {folder.toLocalFile().toStdString()}, imageDescriberTypes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| loadFeaturesPerView
make[6]: *** [src/CMakeFiles/qtAliceVisionPlugin.dir/build.make:102: src/CMakeFiles/qtAliceVisionPlugin.dir/MFeatures.cpp.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [CMakeFiles/Makefile2:95: src/CMakeFiles/qtAliceVisionPlugin.dir/all] Error 2
make[4]: *** [Makefile:130: all] Error 2
make[3]: *** [CMakeFiles/qtAliceVision.dir/build.make:112: qtAliceVision-prefix/src/qtAliceVision-stamp/qtAliceVision-build] Error 2
make[2]: *** [CMakeFiles/Makefile2:80: CMakeFiles/qtAliceVision.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/qtAliceVision.dir/rule] Error 2
make: *** [Makefile:118: qtAliceVision] Error 2

I tried replacing loadFeaturesPerDescPerView with loadFeaturesPerView but then MFeatures.cpp errors out with:

[ 16%] Building CXX object src/CMakeFiles/qtAliceVisionPlugin.dir/MFeatures.cpp.o
/tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp: In member function 'virtual void qtAliceVision::FeaturesIORunnable::run()':
/tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp:64:44: error: invalid initialization of reference of type 'aliceVision::feature::FeaturesPerView&' from expression of type 'std::vector<std::vector<std::unique_ptraliceVision::feature::Regions > >'
64 | bool loaded = sfm::loadFeaturesPerView(regionsPerViewPerDesc, viewIds, {folder.toLocalFile().toStdString()}, imageDescriberTypes);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/Meshroom_build/qtAliceVision/src/MFeature.hpp:7,
from /tmp/Meshroom_build/qtAliceVision/src/MFeatures.hpp:3,
from /tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp:1:
/opt/AliceVision_install/include/aliceVision/sfm/pipeline/regionsIO.hpp:63:52: note: in passing argument 1 of 'bool aliceVision::sfm::loadFeaturesPerView(aliceVision::feature::FeaturesPerView&, const aliceVision::sfmData::SfMData&, const std::vector<std::__cxx11::basic_string >&, const std::vectoraliceVision::feature::EImageDescriberType&)'
63 | bool loadFeaturesPerView(feature::FeaturesPerView& featuresPerView,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
make[6]: *** [src/CMakeFiles/qtAliceVisionPlugin.dir/build.make:102: src/CMakeFiles/qtAliceVisionPlugin.dir/MFeatures.cpp.o] Error 1
make[5]: *** [CMakeFiles/Makefile2:95: src/CMakeFiles/qtAliceVisionPlugin.dir/all] Error 2
make[4]: *** [Makefile:130: all] Error 2
make[3]: *** [CMakeFiles/qtAliceVision.dir/build.make:112: qtAliceVision-prefix/src/qtAliceVision-stamp/qtAliceVision-build] Error 2
make[2]: *** [CMakeFiles/Makefile2:80: CMakeFiles/qtAliceVision.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/qtAliceVision.dir/rule] Error 2
make: *** [Makefile:118: qtAliceVision] Error 2

Any assistance is appreciated.

mugulmd pushed a commit that referenced this issue Jul 20, 2023
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

1 participant