Hi Vlad,
On Nov 3, 9:54 pm, Vlad Losev <
vl...@google.com> wrote:
> Hi Luke,
>
> It looks like you have a version of Google Test installed in your system in
> /usr/local. Can it be that that version is compiled by an older compiler?
> Try running 'sudo make uninstall' from your Google Test build directory,
> then rebuild Google Test and invoke 'make install' again. Then try to
> rebuild your own project.
OK, this doesn't help. I've figured out what the problem is, and have
a workaround, though I don't know what the actual fix is. The default
gtest configuration builds a 64 bit library:
luked$ file libgtest.0.dylib
libgtest.0.dylib: Mach-O 64-bit dynamically linked shared library
x86_64
I'm trying to build a 32 bit binary with -m32, hence the error about
"not the required architecture." The workaround I used is to configure
with:
luked$ CC='gcc -m32' CXX='g++ -m32' ./configure
This builds a 32 bit library:
luked$ file libgtest.0.dylib
libgtest.0.dylib: Mach-O dynamically linked shared library i386
I don't enough about the Mac system architecture to suggest a way to
build both 32 and 64 bit versions of the library so that this error
doesn't occur.
I filed an issue with the workaround included.
Luke
>
> Let us know if this helps!
>
> Regards,
> Vlad
>