You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmake -DBUILD_SHARED_LIBS:BOOL=ON ../OpenIGTLink
make
will fail the build due to error
~/igtl/OpenIGTLink/Testing/igtlCommandMessageTest.cxx:95:3: error: ‘EXPECT_NE’ was not declared in this scope
EXPECT_NE(messageHeader->crc, crc); // should not be equal as the content changed
^~~~~~~~~
~/igtl/OpenIGTLink/Testing/igtlCommandMessageTest.cxx:95:3: note: suggested alternative: ‘EXPECT_LT’
EXPECT_NE(messageHeader->crc, crc); // should not be equal as the content changed
^~~~~~~~~
EXPECT_LT
~/igtl/OpenIGTLink/Testing/igtlCommandMessageTest.cxx: In member function ‘virtual void CommandMessageTest_UnpackFormatVersion2_Test::Run()’:
~/igtl/OpenIGTLink/Testing/igtlCommandMessageTest.cxx:186:3: error: ‘EXPECT_NE’ was not declared in this scope
EXPECT_NE(messageHeader->crc, crc); // should not be equal as the content changed
^~~~~~~~~
~/igtl/OpenIGTLink/Testing/igtlCommandMessageTest.cxx:186:3: note: suggested alternative: ‘EXPECT_LT’
EXPECT_NE(messageHeader->crc, crc); // should not be equal as the content changed
^~~~~~~~~
EXPECT_LT
This indicates there is something imcompatible with the current gtest. I had to turn off the flag BUILD_TESTING to compile the project.
I tried to turn off the flag BUILD_SHARED_LIBS, and the build proceeds without error. What is the issue exactly?
The text was updated successfully, but these errors were encountered:
mli0603
changed the title
Master branch test build failed on Ubuntu 18.04
Master branch failed to build test files on Ubuntu 18.04
Dec 11, 2019
shared build of google test library tend to fail under windows environment. when shared_build is turn on, we use a local file igtlTestConfig.h.in for testing marcos. As for the commandmessage test, EXPECT_NE is not defined in the igtlTestConfig.h.in.
you can see this issue for more details: #122
Using the command
will fail the build due to error
This indicates there is something imcompatible with the current gtest. I had to turn off the flag
BUILD_TESTING
to compile the project.I tried to turn off the flag
BUILD_SHARED_LIBS
, and the build proceeds without error. What is the issue exactly?The text was updated successfully, but these errors were encountered: