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

CMake Error: Cannot find source file: testing_main.cc,gtest #1091

Open
brz-hub opened this issue Mar 11, 2025 · 4 comments
Open

CMake Error: Cannot find source file: testing_main.cc,gtest #1091

brz-hub opened this issue Mar 11, 2025 · 4 comments

Comments

@brz-hub
Copy link

brz-hub commented Mar 11, 2025

I cloned the repository code:

git clone --recursive https://github.com/mapillary/OpenSfM

And installed the required dependencies. However, I encountered issues with missing files during the build process:

  1. Missing src/third/gtest
    The entire library file was not downloaded.

  2. Missing src/testing_main.cc

3.Missing source "No SOURCES given to target: src/third_party/vlfeat/vl

I found the gtest files in the 0.5.1 release version, but I couldn't find testing_main.cc.

Image

@vgutierrez2404
Copy link

vgutierrez2404 commented Mar 11, 2025

Hi! Check this issue #1078. As far as I know, they deleted a couple of important files at this point and no one is adding them to the source code. You should have access to testing_main.cc in commit ef872b2.

Try it and if you need anything more feel free to ask!

@brz-hub
Copy link
Author

brz-hub commented Mar 12, 2025

Hi! Check this issue #1078. As far as I know, they deleted a couple of important files at this point and no one is adding them to the source code. You should have access to testing_main.cc in commit ef872b2.

Try it and if you need anything more feel free to ask!

Thank you so much!
I found the missing file and compiled and installed it.
During this process, I encountered other issues, which were resolved after setting the version of Ceres Solver to 2.0.0 and enabling the C++17 standard.
Wishing you a pleasant life!

@richardrevesz
Copy link

Hi! Check this issue #1078. As far as I know, they deleted a couple of important files at this point and no one is adding them to the source code. You should have access to testing_main.cc in commit ef872b2.
Try it and if you need anything more feel free to ask!

Thank you so much! I found the missing file and compiled and installed it. During this process, I encountered other issues, which were resolved after setting the version of Ceres Solver to 2.0.0 and enabling the C++17 standard. Wishing you a pleasant life!

Can you please explain how to Ceres Solver to 2.0.0 and enabling the C++17 standard?
(using Win 11, anaconda prompt, not sure if it is relevant)

@brz-hub
Copy link
Author

brz-hub commented Mar 15, 2025

Hi! Check this issue #1078. As far as I know, they deleted a couple of important files at this point and no one is adding them to the source code. You should have access to testing_main.cc in commit ef872b2.
Try it and if you need anything more feel free to ask!

Thank you so much! I found the missing file and compiled and installed it. During this process, I encountered other issues, which were resolved after setting the version of Ceres Solver to 2.0.0 and enabling the C++17 standard. Wishing you a pleasant life!

Can you please explain how to Ceres Solver to 2.0.0 and enabling the C++17 standard? (using Win 11, anaconda prompt, not sure if it is relevant)

I suggest compiling the project in a Linux environment rather than a Windows environment. If you want to compile the project in a Windows environment, you can follow what the official tutorial says.

Whether in the Windows environment or the Linux environment:
Which C++ standard to use is set in CMakeLists.txt. You can search for "How to install cere-solver 2.0.0" on Google, Baidu, and Bing.

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

3 participants