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

Build step for googletest failed: 2 #95

Open
lostgab opened this issue Jul 25, 2023 · 2 comments
Open

Build step for googletest failed: 2 #95

lostgab opened this issue Jul 25, 2023 · 2 comments

Comments

@lostgab
Copy link

lostgab commented Jul 25, 2023

Hi all
I am doing the building of this enviroment and went to some problems:
https://github.com/mit-biomimetics/Cheetah-Software/blob/master/documentation/getting_started.md
image

My error was:
indrobo@indrobo-VirtualBox:/Cheetah-Software/build/CMakeFiles$ cd ..
indrobo@indrobo-VirtualBox:
/Cheetah-Software/build$ make -j
make: *** No targets specified and no makefile found. Stop.
indrobo@indrobo-VirtualBox:~/Cheetah-Software/build$ cmake ..
**** Mini-Cheetah build disabled ****
-- We are on a Linux system
-- Embedded is OFF
-- Printing is ON
-- Profiling is ON
-- User interrupt is ON
-- Floats are OFF
-- Long integers (64bit) are ON
-- Code coverage is OFF
-- MKL Pardiso: ON
-- Floats are OFF
-- Long integers (64bit) are ON
Cloning into 'googletest-src'...
fatal: invalid reference: master
CMake Error at googletest-download/googletest-download-prefix/tmp/googletest-download-gitclone.cmake:75 (message):
Failed to checkout tag: 'master'

make[2]: *** [googletest-download-prefix/src/googletest-download-stamp/googletest-download-download] Error 1
make[1]: *** [CMakeFiles/googletest-download.dir/all] Error 2
make: *** [all] Error 2
CMake Error at common/DownloadProject.cmake:179 (message):
Build step for googletest failed: 2
Call Stack (most recent call first):
common/CMakeLists.txt:28 (download_project)

-- Configuring incomplete, errors occurred!

Can anybody help me get through this part?

@Charlescai123
Copy link

Charlescai123 commented Sep 25, 2023

This is because the branch 'master' of googletest on github has been renamed as 'main' and the program will find the master version by default in the CmakeList file. To solve this, modify the CMakeLists.txt under 'common' folder and change the value of 'GIT_TAG' from 'master' to 'main':

Screen Shot 2023-09-25 at 13 28 25

@lostgab
Copy link
Author

lostgab commented Oct 2, 2023

@Charlescai123 , I've changed it but there was another error, I cant move the robot, can you assist me?

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