lee

  • *
  • 42
How to fix the error "recipe for target 'gtest_install' failed"
« on: December 26, 2015, 09:23:23 am »
I git clone the latest source code of OpenPilot from github, and implement the command "make all_sdk_install", then I get the error "recipe for target 'gtest_install' failed".

My PC system is Ubuntu 15.04, compile error message as followed:

========================================
Operation was successfully performed.
 CLEAN       build/QT_BUILD
 CLEAN       tools/gtest-1.6.0
 VERIFY      downloads/gtest-1.6.0.zip
/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/make/tools.mk:894: recipe for target 'gtest_install' failed
make: *** [gtest_install] Error 6

Could you help me please? How can I fix this error?

Best Regards!

m_thread

  • *****
  • 87
  • GCS is my home
    • LibrePilot
Re: How to fix the error "recipe for target 'gtest_install' failed"
« Reply #1 on: December 26, 2015, 10:41:13 am »
Hi
Try to run 'make V=1 all_sdk_install' to enable more logging.
/Fredrik

f5soh

  • *****
  • 4548
    • LibrePilot
Re: How to fix the error "recipe for target 'gtest_install' failed"
« Reply #2 on: December 26, 2015, 12:01:58 pm »
This error make sense.

You can't download the gtest-1.6.0.zip anymore because no OP servers for that.

Do it manually

lee

  • *
  • 42
Re: How to fix the error "recipe for target 'gtest_install' failed"
« Reply #3 on: December 27, 2015, 02:36:41 am »
Hi, friends
I downloaded gtest manually and "make V=1 all_sdk_install", the compile logging as followed:
========================================
Operation was successfully performed.
 CLEAN       build/QT_BUILD
[ ! -d "/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/build/QT_BUILD" ] || rm -rf "/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/build/QT_BUILD"
 CLEAN       tools/gtest-1.6.0
[ ! -d "/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/tools/gtest-1.6.0" ] || rm -rf "/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/tools/gtest-1.6.0"
 VERIFY      downloads/gtest-1.6.0.zip
( cd "/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads" && curl -L --silent -o "/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads/gtest-1.6.0.zip.md5" ""http://wiki.openpilot.org/download/attachments/18612236/gtest-1.6.0.zip.md5"" && if [ "`test -f \"/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads/gtest-1.6.0.zip\" && openssl dgst -md5 \"/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads/gtest-1.6.0.zip\" | cut -f2 -d' '`" != "`cut -f1 -d' ' < \"/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads/gtest-1.6.0.zip.md5\"`" ]; then echo ' DOWNLOAD   ' http://wiki.openpilot.org/download/attachments/18612236/gtest-1.6.0.zip && curl -L -o "/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads/gtest-1.6.0.zip" "http://wiki.openpilot.org/download/attachments/18612236/gtest-1.6.0.zip" && echo ' MD5        ' downloads/gtest-1.6.0.zip && [ "`test -f \"/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads/gtest-1.6.0.zip\" && openssl dgst -md5 \"/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads/gtest-1.6.0.zip\" | cut -f2 -d' '`" = "`cut -f1 -d' ' < \"/home/xxx/OpenPilot-ubuntu1504/code/OpenPilot/downloads/gtest-1.6.0.zip.md5\"`" ]; fi; )

Re: How to fix the error "recipe for target 'gtest_install' failed"
« Reply #4 on: December 27, 2015, 05:12:32 am »
Another option is to install only the required tools.
make build_sdk_install

lee

  • *
  • 42
Re: How to fix the error "recipe for target 'gtest_install' failed"
« Reply #5 on: December 27, 2015, 08:33:39 am »
Another option is to install only the required tools.
make build_sdk_install
Hi, TheOtherCliff
Thank you very much, According to your reply, I compiled the OP source successfully!
Thank you also to other friends.
Best Regards!