Lukács István
2014-10-21 11:59:44 UTC
Hi all,
I am trying to build cucumber-cpp on the basis of
"https://github.com/cucumber/cucumber-cpp".
The following Gmock and Gtest are installed on my Ubuntu:
GMock with its GTest: 1.6.0
Ubuntu: 64bit, 14.04
"cucumber-ruby-core" directory is in the Path.
the output of command "cmake -E chdir build cmake -DCUKE_ENABLE_EXAMPLES=on
.." :
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- thread
-- system
-- regex
-- date_time
-- unit_test_framework
-- Could NOT find CPPSPEC (missing: CPPSPEC_LIBRARY CPPSPEC_INCLUDE_DIR)
-- Found GTest: /usr/lib/libgtest.a
-- Found GMock: /usr/src/gmock/libgmock.a
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Adding ContextHandlingTest
-- Adding HookRegistrationTest
-- Adding StepRegistrationTest
-- Adding TaggedHookRegistrationTest
-- Adding WireServerTest
-- Adding WireProtocolTest
-- Adding BasicStepTest
-- Adding ContextManagerTest
-- Adding CukeCommandsTest
-- Adding RegexTest
-- Adding StepCallChainTest
-- Adding StepManagerTest
-- Adding TableTest
-- Adding TagTest
-- Adding GTestDriverTest
-- Adding BoostDriverTest
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.6")
CMake Warning at CMakeLists.txt:128 (message):
Could not find Bundler: skipping Ruby Gem management
-- Found Cucumber
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/s-dev/cucumber-cpp/cucumber-cpp-master/build
Then I get the following error as output of "cmake --build build":
Scanning dependencies of target cucumber-cpp
[ 1%] Building CXX object
src/CMakeFiles/cucumber-cpp.dir/ContextManager.cpp.o
...
[ 53%] Built target BasicStepTest
Scanning dependencies of target BoostDriverTest
[ 55%] Building CXX object
tests/CMakeFiles/BoostDriverTest.dir/integration/drivers/BoostDriverTest.cpp.o
Linking CXX executable BoostDriverTest
[ 55%] Built target BoostDriverTest
Scanning dependencies of target ContextHandlingTest
[ 56%] Building CXX object
tests/CMakeFiles/ContextHandlingTest.dir/integration/ContextHandlingTest.cpp.o
Linking CXX executable ContextHandlingTest
CMakeFiles/ContextHandlingTest.dir/integration/ContextHandlingTest.cpp.o:
In function `testing::AssertionResult testing::internal::CmpHelperEQ<int,
unsigned long>(char const*, char const*, int const&, unsigned long const&)':
ContextHandlingTest.cpp:(.text._ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x92):
undefined reference to `testing::internal::EqFailure(char const*, char
const*, testing::internal::String const&, testing::internal::String const&,
bool)'
CMakeFiles/ContextHandlingTest.dir/integration/ContextHandlingTest.cpp.o:
In function `testing::AssertionResult testing::internal::CmpHelperEQ<int,
int>(char const*, char const*, int const&, int const&)':
ContextHandlingTest.cpp:(.text._ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x8d):
undefined reference to `testing::internal::EqFailure(char const*, char
const*, testing::internal::String const&, testing::internal::String const&,
bool)'
collect2: error: ld returned 1 exit status
make[2]: *** [tests/ContextHandlingTest] Error 1
make[1]: *** [tests/CMakeFiles/ContextHandlingTest.dir/all] Error 2
make: *** [all] Error 2
Does somebody have any idea to solve this problem?
I am waiting for your answer!
BR,
Istvan
I am trying to build cucumber-cpp on the basis of
"https://github.com/cucumber/cucumber-cpp".
The following Gmock and Gtest are installed on my Ubuntu:
GMock with its GTest: 1.6.0
Ubuntu: 64bit, 14.04
"cucumber-ruby-core" directory is in the Path.
the output of command "cmake -E chdir build cmake -DCUKE_ENABLE_EXAMPLES=on
.." :
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- thread
-- system
-- regex
-- date_time
-- unit_test_framework
-- Could NOT find CPPSPEC (missing: CPPSPEC_LIBRARY CPPSPEC_INCLUDE_DIR)
-- Found GTest: /usr/lib/libgtest.a
-- Found GMock: /usr/src/gmock/libgmock.a
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Adding ContextHandlingTest
-- Adding HookRegistrationTest
-- Adding StepRegistrationTest
-- Adding TaggedHookRegistrationTest
-- Adding WireServerTest
-- Adding WireProtocolTest
-- Adding BasicStepTest
-- Adding ContextManagerTest
-- Adding CukeCommandsTest
-- Adding RegexTest
-- Adding StepCallChainTest
-- Adding StepManagerTest
-- Adding TableTest
-- Adding TagTest
-- Adding GTestDriverTest
-- Adding BoostDriverTest
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.6")
CMake Warning at CMakeLists.txt:128 (message):
Could not find Bundler: skipping Ruby Gem management
-- Found Cucumber
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/s-dev/cucumber-cpp/cucumber-cpp-master/build
Then I get the following error as output of "cmake --build build":
Scanning dependencies of target cucumber-cpp
[ 1%] Building CXX object
src/CMakeFiles/cucumber-cpp.dir/ContextManager.cpp.o
...
[ 53%] Built target BasicStepTest
Scanning dependencies of target BoostDriverTest
[ 55%] Building CXX object
tests/CMakeFiles/BoostDriverTest.dir/integration/drivers/BoostDriverTest.cpp.o
Linking CXX executable BoostDriverTest
[ 55%] Built target BoostDriverTest
Scanning dependencies of target ContextHandlingTest
[ 56%] Building CXX object
tests/CMakeFiles/ContextHandlingTest.dir/integration/ContextHandlingTest.cpp.o
Linking CXX executable ContextHandlingTest
CMakeFiles/ContextHandlingTest.dir/integration/ContextHandlingTest.cpp.o:
In function `testing::AssertionResult testing::internal::CmpHelperEQ<int,
unsigned long>(char const*, char const*, int const&, unsigned long const&)':
ContextHandlingTest.cpp:(.text._ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x92):
undefined reference to `testing::internal::EqFailure(char const*, char
const*, testing::internal::String const&, testing::internal::String const&,
bool)'
CMakeFiles/ContextHandlingTest.dir/integration/ContextHandlingTest.cpp.o:
In function `testing::AssertionResult testing::internal::CmpHelperEQ<int,
int>(char const*, char const*, int const&, int const&)':
ContextHandlingTest.cpp:(.text._ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x8d):
undefined reference to `testing::internal::EqFailure(char const*, char
const*, testing::internal::String const&, testing::internal::String const&,
bool)'
collect2: error: ld returned 1 exit status
make[2]: *** [tests/ContextHandlingTest] Error 1
make[1]: *** [tests/CMakeFiles/ContextHandlingTest.dir/all] Error 2
make: *** [all] Error 2
Does somebody have any idea to solve this problem?
I am waiting for your answer!
BR,
Istvan
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.