mit-biomimetics / Cheetah-Software

MIT License
2.62k stars 929 forks source link

Build step for googletest failed: 2 #95

Open lostgab opened 1 year ago

lostgab commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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