[vtkusers] GCC 4.5 Mac Os X
Brickle Macho
bricklemacho at gmail.com
Fri Apr 1 09:54:20 EDT 2011
I start with a clean empty build tree. 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. I used gcc_select, a script that manages
all the symbolic links. So CMake finds gcc, g++ etc in the appropriate
locations. I get the same error with 2.8.4 as follows:
bricklemacho-imac-g5:VTK-Clean brickle$ cmake -version
cmake version 2.8.4
bricklemacho-imac-g5:VTK-Clean brickle$ cmake -G "Unix Makefiles"
/Users/brickle/development/source/VTK
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /opt/local/bin/gcc
-- Check for working C compiler: /opt/local/bin/gcc -- works
...
...
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at /opt/local/share/cmake-2.8/Modules/TestBigEndian.cmake:44
(MESSAGE):
no suitable type found
Call Stack (most recent call first):
CMake/CMakeBackwardCompatibilityC.cmake:31 (TEST_BIG_ENDIAN)
CMakeLists.txt:428 (INCLUDE)
On 1/04/11 9:07 PM, David Cole wrote:
> Did you start with a clean/empty build tree after switching from gcc
> 4.2.1 to gcc 4.5.2?
>
> How do you tell CMake to use gcc 4.5.2? (Is it in the PATH, do you set
> CC and CXX env vars?)
>
> Does the same thing happen with CMake 2.8.4?
>
>
> On Fri, Apr 1, 2011 at 7:46 AM, Brickle Macho <bricklemacho at gmail.com
> <mailto:bricklemacho at gmail.com>> wrote:
>
> I previously had compiled under GCC 4.2.1 but was required to
> upgrade to
> GCC 4.5.2 to allow PCL (Point Cloud Library) compile. PCL has a
> dependency on VTK for its visualizer.
>
> I am now trying to compile VTK on MacOS 10.6.7, GCC 4.5. Can anyone
> help with the following error which occurs during the CMake process:
>
> -------
> ...
> Check if the system is big endian
> Searching 16 bit integer
> Check size of unsigned short
> Check size of unsigned short - failed
> Check size of unsigned int
> Check size of unsigned int - failed
> Check size of unsigned long
> Check size of unsigned long - failed
> CMake Error at /Applications/CMake
> 2.8-3.app/Contents/share/cmake-2.8/Modules/TestBigEndian.cmake:44
> (MESSAGE):
> no suitable type found
> Call Stack (most recent call first):
> CMake/CMakeBackwardCompatibilityC.cmake:31 (TEST_BIG_ENDIAN)
> CMakeLists.txt:428 (INCLUDE)
>
>
> Configuring incomplete, errors occurred!
> -------
>
>
> _______________________________________________
> Powered by www.kitware.com <http://www.kitware.com>
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110401/f4028012/attachment.htm>
More information about the vtkusers
mailing list