aldebaran / qibuild

qiBuild: the meta build framework
http://doc.aldebaran.com/qibuild/index.html
BSD 3-Clause "New" or "Revised" License
66 stars 43 forks source link

gtest/gtest.h: no such file or directory #129

Open QAbot-zh opened 5 years ago

QAbot-zh commented 5 years ago

According to the web url , http://doc.aldebaran.com/qibuild/advanced/guide/how_to_write_a_library.html, I download a fooproject from the url: http://doc.aldebaran.com/qibuild/_downloads/fooproject.zip. But when I use qibuild to compile it, I get the error :

[ 85%] Building CXX object libfoo/test/CMakeFiles/test_foo.dir/test_foo.cpp.o
/home/xxx/worktree/fooproject/libfoo/test/test_foo.cpp:1:25: fatal error: gtest/gtest.h: No such file or directory
 #include <gtest/gtest.h>
                         ^
compilation terminated.
...

Could you tell me how I can solve it? I try to apt install libgtest-dev, but the problem still exists.

victorpaleologue commented 5 years ago

I think you need to checkout this project in your qibuild worktree : https://github.com/aldebaran/gtest If I remember well (I did not test it), you should run: $ qisrc add https://github.com/aldebaran/gtest.git

Le ven. 26 juil. 2019 à 14:04, undefinedcodezhong notifications@github.com a écrit :

According to the web url , http://doc.aldebaran.com/qibuild/advanced/guide/how_to_write_a_library.html, I download a fooproject from the url: http://doc.aldebaran.com/qibuild/_downloads/fooproject.zip. But when I use qibuild to compile it, I get the error :

[ 85%] Building CXX object libfoo/test/CMakeFiles/test_foo.dir/test_foo.cpp.o /home/xxx/worktree/fooproject/libfoo/test/test_foo.cpp:1:25: fatal error: gtest/gtest.h: No such file or directory

include <gtest/gtest.h>

                     ^

compilation terminated. ...

Could you tell me how I can solve it? I try to apt install libgtest-dev, but the problem still exists.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aldebaran/qibuild/issues/129?email_source=notifications&email_token=ACD4ZXFECOP5VANIIDJPXIDQBLR4ZA5CNFSM4IHDHD3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HBWL65Q, or mute the thread https://github.com/notifications/unsubscribe-auth/ACD4ZXERH3J4SDTVQBMDXYLQBLR4ZANCNFSM4IHDHD3A .

--

*This email and any attachment thereto are confidential and intended solely for the use of the individual or entity to whom they are addressed.

If you are not the intended recipient, please be advised that disclosing, copying, distributing or taking any action in reliance on the contents of this email is strictly prohibited. In such case, please immediately advise the sender, and delete all copies and attachment from your system. This email shall not be construed and is not tantamount to an offer, an acceptance of offer, or an agreement by SoftBank Robotics Europe on any discussion or contractual document whatsoever. No employee or agent is authorized to represent or bind SoftBank Robotics Europe to third parties by email, or act on behalf of SoftBank Robotics Europe by email, without express written confirmation by SoftBank Robotics Europe’ duly authorized representatives. *

Ce message électronique et éventuelles pièces jointes sont confidentiels, et exclusivement destinés à la personne ou l'entité à qui ils sont adressés. Si vous n'êtes pas le destinataire visé, vous êtes prié de ne pas divulguer, copier, distribuer ou prendre toute décision sur la foi de ce message électronique. Merci d'en aviser immédiatement l'expéditeur et de supprimer toutes les copies et éventuelles pièces jointes de votre système. Ce message électronique n'équivaut pas à une offre, à une acceptation d’offre, ou à un accord de SoftBank Robotics Europe sur toute discussion ou document contractuel quel qu’il soit, et ne peut être interprété comme tel. Aucun employé ou agent de SoftBank Robotics Europe n'est autorisé à représenter ou à engager la société par email, ou à agir au nom et pour le compte de la société par email, sans qu’une confirmation écrite soit donnée par le représentant légal de SoftBank Robotics Europe ou par toute autre personne ayant reçu délégation de pouvoir appropriée.

**

QAbot-zh commented 5 years ago

@victorpaleologue Thank you soooooo much! Your suggestion fixes my problem , the project compiles successfully!