<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I start with a clean empty build tree.&nbsp; Since Apple do not support
    gcc 4.5.2 (think they have moved to clang or something) I used Mac
    Ports to buld and install gcc 4.5.2. &nbsp;&nbsp; I used gcc_select, a script
    that manages all the symbolic links.&nbsp;&nbsp; So CMake finds gcc, g++ etc
    in the appropriate locations.&nbsp; I get the same error with 2.8.4 as
    follows:<br>
    <br>
    bricklemacho-imac-g5:VTK-Clean brickle$ cmake -version<br>
    cmake version 2.8.4<br>
    <br>
    bricklemacho-imac-g5:VTK-Clean brickle$ cmake -G "Unix Makefiles"
    /Users/brickle/development/source/VTK<br>
    -- The C compiler identification is GNU<br>
    -- The CXX compiler identification is GNU<br>
    -- Checking whether C compiler has -isysroot<br>
    -- Checking whether C compiler has -isysroot - yes<br>
    -- Checking whether C compiler supports OSX deployment target flag<br>
    -- Checking whether C compiler supports OSX deployment target flag -
    yes<br>
    -- Check for working C compiler: /opt/local/bin/gcc<br>
    -- Check for working C compiler: /opt/local/bin/gcc -- works<br>
    ...<br>
    ...<br>
    -- Check if the system is big endian<br>
    -- Searching 16 bit integer<br>
    -- Check size of unsigned short<br>
    -- Check size of unsigned short - failed<br>
    -- Check size of unsigned int<br>
    -- Check size of unsigned int - failed<br>
    -- Check size of unsigned long<br>
    -- Check size of unsigned long - failed<br>
    CMake Error at
    /opt/local/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (MESSAGE):<br>
    &nbsp; no suitable type found<br>
    Call Stack (most recent call first):<br>
    &nbsp; CMake/CMakeBackwardCompatibilityC.cmake:31 (TEST_BIG_ENDIAN)<br>
    &nbsp; CMakeLists.txt:428 (INCLUDE)<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    On 1/04/11 9:07 PM, David Cole wrote:
    <blockquote
      cite="mid:AANLkTikuuq+TTMnc4g6TumfbT=VSgQ0AZNm1urF7_Q5h@mail.gmail.com"
      type="cite">Did you start with a clean/empty build tree after
      switching from gcc 4.2.1 to gcc 4.5.2?<br>
      <br>
      How do you tell CMake to use gcc 4.5.2? (Is it in the PATH, do you
      set CC and CXX env vars?)<br>
      <br>
      Does the same thing happen with CMake 2.8.4?<br>
      <br>
      <br>
      <div class="gmail_quote">On Fri, Apr 1, 2011 at 7:46 AM, Brickle
        Macho <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:bricklemacho@gmail.com">bricklemacho@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          I previously had compiled under GCC 4.2.1 but was required to
          upgrade to<br>
          GCC 4.5.2 to allow PCL (Point Cloud Library) compile. &nbsp;PCL has
          a<br>
          dependency on VTK for its visualizer.<br>
          <br>
          I am now trying to compile VTK on MacOS 10.6.7, GCC 4.5. &nbsp;Can
          anyone<br>
          help with the following error which occurs during the CMake
          process:<br>
          <br>
          -------<br>
          ...<br>
          Check if the system is big endian<br>
          Searching 16 bit integer<br>
          Check size of unsigned short<br>
          Check size of unsigned short - failed<br>
          Check size of unsigned int<br>
          Check size of unsigned int - failed<br>
          Check size of unsigned long<br>
          Check size of unsigned long - failed<br>
          CMake Error at /Applications/CMake<br>
          2.8-3.app/Contents/share/cmake-2.8/Modules/TestBigEndian.cmake:44
          (MESSAGE):<br>
          &nbsp;no suitable type found<br>
          Call Stack (most recent call first):<br>
          &nbsp;CMake/CMakeBackwardCompatibilityC.cmake:31 (TEST_BIG_ENDIAN)<br>
          &nbsp;CMakeLists.txt:428 (INCLUDE)<br>
          <br>
          <br>
          Configuring incomplete, errors occurred!<br>
          -------<br>
          <br>
          <br>
          _______________________________________________<br>
          Powered by <a moz-do-not-send="true"
            href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at <a
            moz-do-not-send="true"
            href="http://www.kitware.com/opensource/opensource.html"
            target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
          <br>
          Please keep messages on-topic and check the VTK FAQ at: <a
            moz-do-not-send="true"
            href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
          <br>
          Follow this link to subscribe/unsubscribe:<br>
          <a moz-do-not-send="true"
            href="http://www.vtk.org/mailman/listinfo/vtkusers"
            target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </body>
</html>