Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#1,091 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake, python

Research direction

Start with the recursive clone instructions and inspect the CMake configuration references to src/third/gtest, src/testing_main.cc, and src/third_party/vlfeat/vl. Compare those paths with the 0.5.1 release contents and reproduce the build to determine whether the submodules or source references are missing; done means a clean checkout configures without these missing-source errors.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
3.8k
Forks
898
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapillary/OpenSfM

All issues in mapillary/OpenSfM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.