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

Unable to install gtest #3

Closed
jslee02 opened this issue Mar 30, 2014 · 6 comments
Closed

Unable to install gtest #3

jslee02 opened this issue Mar 30, 2014 · 6 comments

Comments

@jslee02
Copy link
Member

jslee02 commented Mar 30, 2014

I tried to install gtest using Homebrew on Mac 10.9.2 but failed. Here is the error message:

brew install https://raw.github.com/dartsim/homebrew-dart/master/gtest.rb
######################################################################## 100.0%
==> Downloading http://googletest.googlecode.com/files/gtest-1.6.0.zip
Already downloaded: /Library/Caches/Homebrew/gtest-1.6.0.zip
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/gtest/1.6.0 -DCMAKE_BUILD_T
==> make install
make: *** No rule to make target `install'.  Stop.

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

Did I something wrong?

@catalli
Copy link

catalli commented May 31, 2014

I have the same problem. CMake isn't correctly generating the makefile, it seems.
Here's my link to the commands necessary for diagnosis: https://gist.github.com/Number-42/8c326938168c84b47aeb

@scpeters
Copy link
Collaborator

It is not recommended by google to install a pre-compiled copy of gtest, since it needs to use the same compiler flags as your code.

It is instead recommended to include the gtest source code in your project and compile it inline. We do this for gazebo.

@darkn3rd
Copy link

darkn3rd commented Dec 9, 2014

I am running into same problem. I'm running with a very similar setup to Numbe-42, except running OS X 10.8.5 Snow Leopard.

I was grepping around in /Library/Caches/Homebrew/gtest-1.6.0/, and the resulting Makefile does not have an "install" directive. I noticed a file called install-data-local that has this in it:

echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Test into your build system."

@scpeters
Copy link
Collaborator

I think the gtest formulae can be installed manually, but as I said before in this thread, it is not recommended to use an installed version of gtest. In fact, the homebrew tool will ignore gtest dependencies (see blacklist.rb) specified by a formula. That's probably why brew install dart doesn't install gtest.

I can advise about the recommended way to do use gtest.

@jslee02
Copy link
Member Author

jslee02 commented Jan 24, 2015

I tried to create gtest formulae manually but, as you said, couldn't with this error message gtest is blacklisted for creation. We should add in gtest source as Gazebo did, and remove gtest formulae in this repo, I think.

@jslee02
Copy link
Member Author

jslee02 commented Jan 25, 2015

Resolved by dartsim/dart#315.

Thanks @scpeters !

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

4 participants