dgiunchi / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gtest build failed with arm-linux-androideabi_g++ #393

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
IMPORTANT NOTE: PLEASE send issues or requests to
http://groups.google.com/group/googletestframework *instead of here*.
This issue tracker is NOT regularly monitored.

If you really need to create a new issue, please provide the information
asked for below.

What steps will reproduce the problem?
1../configure --host=arm-linux-androideabi
2.make
3.

What is the expected output? What do you see instead?
depbase=`echo src/gtest-all.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/bash ./libtool --tag=CXX   --mode=compile arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include  -DGTEST_HAS_PTHREAD=1 -g -O2 -MT src/gtest-all.lo -MD -MP -MF $depbase.Tpo -c -o src/gtest-all.lo src/gtest-all.cc &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -I./build-aux 
-I. -I./include -DGTEST_HAS_PTHREAD=1 -g -O2 -MT src/gtest-all.lo -MD -MP -MF 
src/.deps/gtest-all.Tpo -c src/gtest-all.cc  -fPIC -DPIC -o 
src/.libs/gtest-all.o
In file included from ./include/gtest/internal/gtest-internal.h:40,
                 from ./include/gtest/gtest.h:57,
                 from src/gtest-all.cc:39:
./include/gtest/internal/gtest-port.h:762: error: 'wstring' in namespace 'std' 
does not name a type
In file included from ./include/gtest/gtest.h:57,
                 from src/gtest-all.cc:39:
./include/gtest/internal/gtest-internal.h:229: error: 
'testing::internal::FormatForComparisonFailureMessage' declared as an 'inline' 
variable
./include/gtest/internal/gtest-internal.h:229: error: 
'testing::internal::String 
testing::internal::FormatForComparisonFailureMessage' redeclared as different 
kind of symbol
./include/gtest/internal/gtest-internal.h:227: error: previous declaration of 
'testing::internal::String 
testing::internal::FormatForComparisonFailureMessage(const char*, const 
std::string&)'
./include/gtest/internal/gtest-internal.h:229: error: 'std::wstring' has not 
been declared
./include/gtest/internal/gtest-internal.h:229: error: 'str' was not declared in 
this scope
./include/gtest/internal/gtest-internal.h:229: error: expected 
primary-expression before 'const'
./include/gtest/internal/gtest-internal.h:229: error: expected unqualified-id 
before '::' token
./include/gtest/internal/gtest-internal.h:229: error: expected ')' before '::' 
token
./include/gtest/internal/gtest-internal.h:229: error: expected initializer 
before '::' token
In file included from ./include/gtest/gtest.h:60,
                 from src/gtest-all.cc:39:
./include/gtest/gtest-message.h:177: error: expected unqualified-id before '&' 
token
./include/gtest/gtest-message.h:177: error: expected ')' before '&' token
./include/gtest/gtest-message.h:177: error: 'testing::Message& 
testing::Message::operator<<(...)' must not have variable number of arguments
./include/gtest/gtest-message.h:177: error: expected ';' before '&' token
In file included from ./include/gtest/internal/gtest-param-util.h:47,
                 from ./include/gtest/gtest-param-test.h:192,
                 from ./include/gtest/gtest.h:61,
                 from src/gtest-all.cc:39:
./include/gtest/gtest-printers.h:477: error: expected unqualified-id before '&' 
token
./include/gtest/gtest-printers.h:477: error: expected ')' before '&' token
./include/gtest/gtest-printers.h:477: error: expected initializer before '&' 
token
./include/gtest/gtest-printers.h:478: error: expected unqualified-id before '&' 
token
./include/gtest/gtest-printers.h:478: error: expected ')' before '&' token
./include/gtest/gtest-printers.h:478: error: expected initializer before '&' 
token
In file included from src/gtest-all.cc:39:
./include/gtest/gtest.h:1538: error: expected unqualified-id before '&' token
./include/gtest/gtest.h:1538: error: expected ')' before '&' token
./include/gtest/gtest.h:1538: error: expected initializer before '&' token
./include/gtest/gtest.h:1541: error: expected unqualified-id before '&' token
./include/gtest/gtest.h:1541: error: expected ')' before '&' token
./include/gtest/gtest.h:1541: error: expected initializer before '&' token
In file included from src/gtest-all.cc:42:
./src/gtest.cc:933: error: expected unqualified-id before '&' token
./src/gtest.cc:933: error: expected ')' before '&' token
./src/gtest.cc:933: error: expected initializer before '&' token
./src/gtest.cc:1319: error: expected unqualified-id before '&' token
./src/gtest.cc:1319: error: expected ')' before '&' token
./src/gtest.cc:1319: error: expected initializer before '&' token
./src/gtest.cc:1325: error: expected unqualified-id before '&' token
./src/gtest.cc:1325: error: expected ')' before '&' token
./src/gtest.cc:1325: error: expected initializer before '&' token
./src/gtest.cc: In static member function 'static bool 
testing::internal::String::CaseInsensitiveWideCStringEquals(const wchar_t*, 
const wchar_t*)':
./src/gtest.cc:1625: error: 'wcscasecmp' was not declared in this scope
In file included from src/gtest-all.cc:46:
./src/gtest-printers.cc: At global scope:
./src/gtest-printers.cc:349: error: expected unqualified-id before '&' token
./src/gtest-printers.cc:349: error: expected ')' before '&' token
./src/gtest-printers.cc:349: error: expected initializer before '&' token
make: *** [src/gtest-all.lo] Error 1

What version of Google Test are you using? On what operating system?

Please provide any additional information below, such as a code snippet.

Original issue reported on code.google.com by hellocai...@gmail.com on 9 Dec 2011 at 9:23

GoogleCodeExporter commented 9 years ago
Google Test expects std::wstring to available by default. Build it with 
-DGTEST_HAS_STD_WSTRING=0 if it's not available.

Original comment by vladlosev on 9 Dec 2011 at 7:46

GoogleCodeExporter commented 9 years ago
thanks, it's all right with-DANDROID.

Original comment by hellocai...@gmail.com on 10 Dec 2011 at 6:26