CMake "Check size of void* - failed" error

Started by dHula, 03 March 2014, 21:48:15

dHula

Hi all,

I'm using CMake (2.8.11.2) and MinGW 4.7 (from code block) but I getting the flowing error.
QuoteCheck size of void* - failed

Any ideas ?

Additional information:
OS: windows 7
code block: v13.12
TGUI: 0.6.1


CMake console:
The C compiler identification is GNU 4.7.1
The CXX compiler identification is GNU 4.7.1
Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe
Check for working CXX compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of void*
Check size of void* - failed
CMake Error at cmake/Config.cmake:13 (message):
  Unsupported architecture
Call Stack (most recent call first):
  CMakeLists.txt:29 (include)


Configuring incomplete, errors occurred!
See also "C:/Users/d/Desktop/TGUI-0.6.1 MinGW 4.7 TDM (SJLJ) - 32bit/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/d/Desktop/TGUI-0.6.1 MinGW 4.7 TDM (SJLJ) - 32bit/build/CMakeFiles/CMakeError.log".

texus

#1
QuoteCMake Error at cmake/Config.cmake:13 (message):
  Unsupported architecture
This config file is directly copied from sfml, so I doubt it is going to contain any mistakes.
Maybe you should check if you can build sfml?

Is there a reason why you need to build tgui yourself? Because there is a precompiled version available for your compiler.

dHula

QuoteIs there a reason why you need to build tgui yourself? Because there is a precompiled version available for your compiler.

I haven't been able to find one that works.

if you can direct me to one it will be great  ;D

texus

The one on the download page should work.
Download TGUI v0.6.1 with precompiled MinGW 4.7 TDM (SJLJ) 32-bit libraries

If its not working then you should let me know what goes wrong. It should work for the MinGW 4.7 that comes with CodeBlocks.
But make sure to use the included sfml libraries instead of sfml 2.1.