-
Notifications
You must be signed in to change notification settings - Fork 114
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
No definition of [google-mock] for OS [osx] #110
Comments
I'm having the same issue, I tried building google-mock myself but it doesn't seem to reference it still |
Homebrew doesn't package gtest/gmock because the maintainers explicitly recommend against doing so— they're prefer you vendor the source into your projects rather than having a globally-installed version. Vendoring is not the preferred ROS approach, so GTest is presently handled by a formula on the GMock should be handled the same way. In the very immediate, if you've already built and install GMock yourself, you can modify your https://github.com/mikepurvis/ros-install-osx/blob/master/rosdeps.yaml |
I got through this by installing gmock manually and adding this to the rosdep.yaml i got a build error later on python_orocos_kdl w/ more information I'm going to have to look at it another time |
@mikepurvis Great! I blanked the dependency as proposed. and it worked! I am now stuck during compilation for So what could be a long-term solution for Gmock ? |
@quinnabrvau maybe you need to install SIP with I just had a look for the compilation error for xmlrpcpp, it is actually because it cannot find where I installed gmock. I guess I have to modify the So far what I did is to modify the include_directories(
include
libb64/include
${catkin_INCLUDE_DIRS}
# added this line (include folder of my gmock build)
/Users/ejalaa/Development/ros_installation/googletest-master/mybuild/install_dir/include
)
link_directories(
${catkin_LIBRARY_DIRS}
# added this line (lib folder of my gmock build)
/Users/ejalaa/Development/ros_installation/googletest-master/mybuild/install_dir/lib
) but that ends with the following error: Errors << xmlrpcpp:make /Users/ejalaa/Development/ros_installation/ros-install-osx/lunar_desktop_full_ws/logs/xmlrpcpp/build.make.010.log
Undefined symbols for architecture x86_64:
"XmlRpc::XmlRpcValue::invalidate()", referenced from:
XmlRpc::XmlRpcValue::operator=(char const*) in test_fixtures.cpp.o
"XmlRpc::XmlRpcValue::operator=(XmlRpc::XmlRpcValue const&)", referenced from:
XmlRpc::XmlRpcValue::operator=(char const*) in test_fixtures.cpp.o
"XmlRpc::XmlRpcServer::bindAndListen(int, int)", referenced from:
XmlRpcTest::SetUp() in test_fixtures.cpp.o
"XmlRpc::XmlRpcServer::enableIntrospection(bool)", referenced from:
XmlRpcTest::SetUp() in test_fixtures.cpp.o
"XmlRpc::XmlRpcServer::work(double)", referenced from:
XmlRpcTest::work() in test_fixtures.cpp.o
"XmlRpc::XmlRpcServer::shutdown()", referenced from:
XmlRpcTest::TearDown() in test_fixtures.cpp.o
"XmlRpc::XmlRpcServer::XmlRpcServer()", referenced from:
XmlRpcTest::XmlRpcTest() in test_fixtures.cpp.o
"XmlRpc::XmlRpcServer::~XmlRpcServer()", referenced from:
XmlRpcTest::XmlRpcTest() in test_fixtures.cpp.o
XmlRpcTest::~XmlRpcTest() in test_fixtures.cpp.o
"XmlRpc::setVerbosity(int)", referenced from:
XmlRpcTest::TearDown() in test_fixtures.cpp.o
"XmlRpc::XmlRpcServerMethod::XmlRpcServerMethod(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, XmlRpc::XmlRpcServer*)", referenced from:
Hello::Hello(XmlRpc::XmlRpcServer*) in test_fixtures.cpp.o
"XmlRpc::XmlRpcServerMethod::~XmlRpcServerMethod()", referenced from:
XmlRpcTest::XmlRpcTest() in test_fixtures.cpp.o
Hello::~Hello() in test_fixtures.cpp.o
Hello::~Hello() in test_fixtures.cpp.o
Hello::Hello(XmlRpc::XmlRpcServer*) in test_fixtures.cpp.o
XmlRpcTest::~XmlRpcTest() in test_fixtures.cpp.o
"testing::Test::Test()", referenced from:
XmlRpcTest::XmlRpcTest() in test_fixtures.cpp.o
"testing::Test::~Test()", referenced from:
XmlRpcTest::XmlRpcTest() in test_fixtures.cpp.o
XmlRpcTest::~XmlRpcTest() in test_fixtures.cpp.o
"typeinfo for XmlRpc::XmlRpcServerMethod", referenced from:
typeinfo for Hello in test_fixtures.cpp.o
"typeinfo for testing::Test", referenced from:
typeinfo for XmlRpcTest in test_fixtures.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/ejalaa/Development/ros_installation/ros-install-osx/lunar_desktop_full_ws/devel/.private/xmlrpcpp/lib/libtest_fixtures.dylib] Error 1
make[1]: *** [test/CMakeFiles/test_fixtures.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
cd /Users/ejalaa/Development/ros_installation/ros-install-osx/lunar_desktop_full_ws/build/xmlrpcpp; catkin build --get-env xmlrpcpp | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
..................................................................................................................................................................................
Failed << xmlrpcpp:make [ Exited with code 2 ]
Failed <<< xmlrpcpp [ 17.4 seconds ] |
@ejalaa12 I'm having the same issue. This isn't because the build can't find gmock but rather because when building the tests it tries to link them against the symbols from libxmlrpcpp.dylib (which is in I'm not smart enough to quickly figure out how to fix this, so I've just skipped building the tests for xmlrpcpp by commenting out the last 3 lines in My build log from running
|
@neomanic Thank you! I also commented these test so I can continue the installation as well. I managed to solve the next errors and it compiled successfully. However now that I run the roscore I get the following error: |
I've just run into the same problem (std::length_error). Don't really have a clue yet where it actually comes from. |
Running into the same problem... Any news here? |
great work! but why would you not simply add this is what i have to manually do to get it working. |
There used to be a big raft of I have a mixed relationship with |
|
Great answer! it works for me, I think you might have missed a letter c at the end. |
Hello,
I am trying to install ros-lunar for osx with your script.
I did comment the homebrew/science tap. (because it is deprecated)
And I run into this issue while doing the
rosdep
command:Should I build google-mock myself? If so, how do I say to rosdep where to find it?
If not, what should I do ?
Thank you.
The text was updated successfully, but these errors were encountered: