** Description changed: The way dbus-cpp sets up gtest and gmock is broken and does not work with Ninja. To replicate: bzr branch lp:dbus-cpp cd dbus-cpp mkdir build cd build cmake -DCMAKE_BUILD_TYPE=debug -G Ninja .. ninja - This brings (eventually) a gazillion errors starting with this: + This prints the following error: - [43/65] Building CXX object tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o - FAILED: /usr/bin/c++ -DCORE_DBUS_ENABLE_GOOGLE_TEST_FIXTURE -std=c++11 -Werror -Wall -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pedantic -Wextra -fPIC -pthread -g -I../include -I/usr/include/libxml2 -Itests -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -MMD -MT tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o -MF "tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o.d" -o tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o -c ../tests/compiler_test.cpp - In file included from /usr/include/gmock/gmock-generated-function-mockers.h:43:0, - from /usr/include/gmock/gmock.h:61, - from ../tests/compiler_test.cpp:23: - /usr/include/gmock/gmock-spec-builders.h:134:41: error: expected ‘;’ at end of member declaration - bool VerifyAndClearExpectationsLocked() - ^ - /usr/include/gmock/gmock-spec-builders.h:135:38: error: ‘g_gmock_mutex’ is not a type - GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex); - ^ + ninja: error: 'gmock/libs/gtest/libgtest.a', needed by 'tests/bus_test', + missing and no known rule to make it + This happens with both Gcc 4.8 and 4.7.
-- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to dbus-cpp in Ubuntu. https://bugs.launchpad.net/bugs/1293599 Title: Does not compile with Ninja To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dbus-cpp/+bug/1293599/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs