thank you for putting this library together! I've been unable to compile gdal from the steps outlined in the readme over several tries. I am including --with-lib=/usr/local/Cellar/poppler/0.90.1/
in my configure script & have changed the HOST_TAG
value to darwin-x86_64
as I am compiling on MacOS, but otherwise the configuration is mostly the same. I'm getting the following error in the final stages of the run (I've also tried removing the --with-lib
flag & get the same error) --
basic_test.o: In function `(anonymous namespace)::dumy_dummy_Test::dumy_dummy_Test()':
basic_test.cpp:(.text+0x124): undefined reference to `testing::Test::Test()'
basic_test.o: In function `(anonymous namespace)::dumy_dummy_Test::~dumy_dummy_Test()':
basic_test.cpp:(.text+0x154): undefined reference to `testing::Test::~Test()'
basic_test.o: In function `(anonymous namespace)::dumy_dummy_Test::TestBody()':
basic_test.cpp:(.text+0x28c): undefined reference to `testing::Message::Message()'
basic_test.cpp:(.text+0x2bc): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
basic_test.cpp:(.text+0x2cc): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
basic_test.cpp:(.text+0x2d8): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
basic_test.cpp:(.text+0x308): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
basic_test.o: In function `__cxx_global_var_init':
basic_test.cpp:(.text.startup+0x48): undefined reference to `testing::internal::GetTestTypeId()'
basic_test.cpp:(.text.startup+0xb0): undefined reference to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
basic_test.o: In function `testing::AssertionResult testing::internal::CmpHelperNE<std::__ndk1::unique_ptr<PJconsts, PJconsts* (*)(PJconsts*)>, decltype(nullptr)>(char const*, char const*, std::__ndk1::unique_ptr<PJconsts, PJconsts* (*)(PJconsts*)> const&, decltype(nullptr) const&)':
basic_test.cpp:(.text._ZN7testing8internal11CmpHelperNEINSt6__ndk110unique_ptrI8PJconstsPFPS4_S5_EEEDnEENS_15AssertionResultEPKcSB_RKT_RKT0_[_ZN7testing8internal11CmpHelperNEINSt6__ndk110unique_ptrI8PJconstsPFPS4_S5_EEEDnEENS_15AssertionResultEPKcSB_RKT_RKT0_]+0x40): undefined reference to `testing::AssertionSuccess()'
basic_test.o: In function `testing::AssertionResult testing::internal::CmpHelperOpFailure<std::__ndk1::unique_ptr<PJconsts, PJconsts* (*)(PJconsts*)>, decltype(nullptr)>(char const*, char const*, std::__ndk1::unique_ptr<PJconsts, PJconsts* (*)(PJconsts*)> const&, decltype(nullptr) const&, char const*)':
basic_test.cpp:(.text._ZN7testing8internal18CmpHelperOpFailureINSt6__ndk110unique_ptrI8PJconstsPFPS4_S5_EEEDnEENS_15AssertionResultEPKcSB_RKT_RKT0_SB_[_ZN7testing8internal18CmpHelperOpFailureINSt6__ndk110unique_ptrI8PJconstsPFPS4_S5_EEEDnEENS_15AssertionResultEPKcSB_RKT_RKT0_SB_]+0x40): undefined reference to `testing::AssertionFailure()'
basic_test.cpp:(.text._ZN7testing8internal18CmpHelperOpFailureINSt6__ndk110unique_ptrI8PJconstsPFPS4_S5_EEEDnEENS_15AssertionResultEPKcSB_RKT_RKT0_SB_[_ZN7testing8internal18CmpHelperOpFailureINSt6__ndk110unique_ptrI8PJconstsPFPS4_S5_EEEDnEENS_15AssertionResultEPKcSB_RKT_RKT0_SB_]+0x14c): undefined reference to `testing::AssertionResult::AssertionResult(testing::AssertionResult const&)'
basic_test.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [12]>(char const (&) [12])':
basic_test.cpp:(.text._ZN7testing15AssertionResultlsIA12_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA12_cEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
basic_test.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char const*>(char const* const&)':
basic_test.cpp:(.text._ZN7testing15AssertionResultlsIPKcEERS0_RKT_[_ZN7testing15AssertionResultlsIPKcEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
basic_test.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [3]>(char const (&) [3])':
basic_test.cpp:(.text._ZN7testing15AssertionResultlsIA3_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA3_cEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
basic_test.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)':
basic_test.cpp:(.text._ZN7testing15AssertionResultlsINSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEERS0_RKT_[_ZN7testing15AssertionResultlsINSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
basic_test.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [5]>(char const (&) [5])':
basic_test.cpp:(.text._ZN7testing15AssertionResultlsIA5_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA5_cEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
basic_test.o: In function `testing::AssertionResult::AppendMessage(testing::Message const&)':
basic_test.cpp:(.text._ZN7testing15AssertionResult13AppendMessageERKNS_7MessageE[_ZN7testing15AssertionResult13AppendMessageERKNS_7MessageE]+0xa0): undefined reference to `testing::Message::GetString() const'
basic_test.o: In function `testing::internal::scoped_ptr<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >::reset(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)':
basic_test.cpp:(.text._ZN7testing8internal10scoped_ptrINSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE5resetEPS8_[_ZN7testing8internal10scoped_ptrINSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE5resetEPS8_]+0x3c): undefined reference to `testing::internal::IsTrue(bool)'
basic_test.o: In function `testing::internal::scoped_ptr<std::__ndk1::basic_stringstream<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >::reset(std::__ndk1::basic_stringstream<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)':
basic_test.cpp:(.text._ZN7testing8internal10scoped_ptrINSt6__ndk118basic_stringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE5resetEPS8_[_ZN7testing8internal10scoped_ptrINSt6__ndk118basic_stringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE5resetEPS8_]+0x3c): undefined reference to `testing::internal::IsTrue(bool)'
basic_test.o:(.data.rel.ro+0x60): undefined reference to `testing::Test::SetUp()'
basic_test.o:(.data.rel.ro+0x68): undefined reference to `testing::Test::TearDown()'
basic_test.o:(.data.rel.ro+0x90): undefined reference to `typeinfo for testing::Test'
main.o: In function `main':
main.cpp:(.text+0x24): undefined reference to `testing::InitGoogleTest(int*, char**)'
main.o: In function `RUN_ALL_TESTS()':
main.cpp:(.text._Z13RUN_ALL_TESTSv[_Z13RUN_ALL_TESTSv]+0x8): undefined reference to `testing::UnitTest::GetInstance()'
main.cpp:(.text._Z13RUN_ALL_TESTSv[_Z13RUN_ALL_TESTSv]+0xc): undefined reference to `testing::UnitTest::Run()'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [basic_test] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
.././install-sh -c -d '/Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c libproj.la '/Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/lib'
libtool: install: /usr/bin/install -c .libs/libproj.so /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/lib/libproj.so
libtool: install: /usr/bin/install -c .libs/libproj.lai /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/lib/libproj.la
libtool: install: /usr/bin/install -c .libs/libproj.a /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/lib/libproj.a
libtool: install: chmod 644 /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/lib/libproj.a
libtool: install: ranlib /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/lib/libproj.a
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: warning for library: /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/lib/libproj.a the table of contents is empty (no object file members in the library define global symbols)
.././install-sh -c -d '/Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin'
/bin/sh ../libtool --mode=install /usr/bin/install -c proj nad2bin geod cs2cs gie cct '/Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin'
libtool: install: /usr/bin/install -c .libs/proj /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin/proj
libtool: install: /usr/bin/install -c .libs/nad2bin /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin/nad2bin
libtool: install: /usr/bin/install -c .libs/geod /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin/geod
libtool: install: /usr/bin/install -c .libs/cs2cs /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin/cs2cs
libtool: install: /usr/bin/install -c .libs/gie /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin/gie
libtool: install: /usr/bin/install -c .libs/cct /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin/cct
rm -f /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin/invproj
(cd /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin; ln -s proj invproj)
rm -f /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin/invgeod
(cd /Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/bin; ln -s geod invgeod)
.././install-sh -c -d '/Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/include'
/usr/bin/install -c -m 644 proj.h proj_api.h geodesic.h org_proj4_PJ.h '/Users/sashaheinen/workspace/GDAL/gdal/../submodules/build/arm64-v8a/include'
mkdir: /Users/sashaheinen/workspace/GDAL/gdal/src/main/cpp: File exists
mkdir: /Users/sashaheinen/workspace/GDAL/gdal/libs: File exists
cp: gdal.jar: No such file or directory