title: How to reconfigure Google Test for a 32-bit embedded software?
body: <p>I've managed to install Google Test according to <a href="https://stackoverflow.com/questions/38395984/how-to-install-google-test-on-ubuntu-without-root-access">this.</a></p>
  <p>My problem is the following: I have to test projects which are being developed for an embedded software with a 32-bit operating system, so I need to reconfigure Google Test from 64-bit.</p>
  <p>With the old 1.7.0 version it is know that the solution was this:</p>
  <pre><code>autoreconf -fvi
  ./configure --build=i686-pc-linux-gnu &quot;CFLAGS=-m32&quot; &quot;CXXFLAGS=-m32&quot; &quot;LDFLAGS=-m32&quot;
  make
  </code></pre>
  <p>This is how I tried now with the new version:</p>
  <pre><code>cd home/CWD/googletest/googlemock
  autoreconf -fvi
  ./configure --build=i686-pc-linux-gnu &quot;CFLAGS=-m32&quot; &quot;CXXFLAGS=-m32&quot; &quot;LDFLAGS=-m32&quot;
  
  cd home/CWD/googletest/googletest
  autoreconf -fvi
  ./configure --build=i686-pc-linux-gnu &quot;CFLAGS=-m32&quot; &quot;CXXFLAGS=-m32&quot; &quot;LDFLAGS=-m32&quot;
  
  cd ..
  mkdir googletest_build
  cd googletest_build
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/me/googletest ../googletest
  make
  make install
  </code></pre>
  <p>Did this, because I could not find configure files anywhere else but results shown in the terminal were the same as with the 1.7.0 version's reconfiguration.</p>
  <p>However after using:</p>
  <pre><code>make UTEST=yes project_Name
  </code></pre>
  <p>I get this:</p>
  <pre><code>Linking... project_Name
  GTEST_LDFLAGS=-L ../../googletest//lib/ -lpthread -lgtest -lgtest_main -lgmock -lstdc++!
  /usr/bin/ld: skipping incompatible ../../googletest//lib//libgtest.a when searching for -lgtest
  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../libgtest.a when searching for -lgtest
  /usr/bin/ld: skipping incompatible //usr/lib/libgtest.a when searching for -lgtest
  /usr/bin/ld: cannot find -lgtest
  /usr/bin/ld: skipping incompatible ../../googletest//lib//libgtest_main.a when searching for -lgtest_main
  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../libgtest_main.a when searching for -lgtest_main
  /usr/bin/ld: skipping incompatible //usr/lib/libgtest_main.a when searching for -lgtest_main
  /usr/bin/ld: cannot find -lgtest_main
  /usr/bin/ld: skipping incompatible ../../googletest//lib//libgmock.a when searching for -lgmock
  /usr/bin/ld: cannot find -lgmock
  collect2: error: ld returned 1 exit status
  </code></pre>
  <p>The projects env variables are set to 32-bit in the makefile, so that shouldn't be the problem.</p>
  <p>Looking at the error message I am thinking: Is it my gcc version?</p>