Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake internal error (TEST_BIG_ENDIAN)

Tags:

windows

cmake

itk

I am using CMake on Windows 7, 64 bit (although I'm compiling in 32 bit).

I am trying to install vxl library and when I run CMake (from interface) I get the following error:

The C compiler identification is unknown
The CXX compiler identification is unknown
Check if the system is big endian
Searching 16 bit integer
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (message):
  no suitable type found
Call Stack (most recent call first):
  config/cmake/config/CMakeLists.txt:287 (TEST_BIG_ENDIAN)


Configuring incomplete, errors occurred!

I use the default compiler of VS 2008 for 32 bit. It looks like an internal CMake error and I couldn't find anything helpful on the internet. The thing is that I get the same error when I try to reconfigure the -already installed- ITK library.

NOTE: When I first try to configure CMake I get bazillions of errors of the type:

CMake Error: Internal CMake error, TryCompile configure of cmake failed

They don't appear again after the CMakeCache is created and I set the cmake variables. In the second "Configure" try only the first error appears.

I really don't have any idea on how to continue, can anyone help? Thank you in advance.

like image 759
George Aprilis Avatar asked Jan 16 '23 02:01

George Aprilis


1 Answers

Just had this issue. My previous build had errored because of a gcc issue.

After fixing the build, I ran cmake without wiping the build folder clean and received this error.

A simple rm -rf * (make sure you're in the right directory when you use this!) deleted the undesired files/folders (CMakeFiles, CMakeCache.txt, etc).

Running cmake again gave me a successful build. So yeah, just make sure your directory is clean before running cmake and you should be fine.

like image 68
James G Avatar answered Jan 22 '23 18:01

James G