Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: cmake errors in WSL Ubuntu  (Read 4785 times)

0 Members and 1 Guest are viewing this topic.

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
cmake errors in WSL Ubuntu
« on: December 22, 2019, 06:02:20 am »
I'm trying to build the latest SFML for use in MXE environment in WSL Ubuntu, but I'm getting cmake errors. Do you have any clue what is causing it?

oomek@radek-pc:/mnt/d/Documents/GitKraken/sfml/build$ x86_64-w64-mingw32.static-cmake -G "Unix Makefiles" -DBUILD_STATIC=1 -DBUILD_STATIC_LIBS=1 ..
== Using MXE wrapper: /home/oomek/mxe/usr/bin/x86_64-w64-mingw32.static-cmake
     - cmake version 3.15.4
     - warnings for unused CMAKE_POLICY_DEFAULT variables can be ignored
== Using MXE toolchain: /home/oomek/mxe/usr/x86_64-w64-mingw32.static/share/cmake/mxe-conf.cmake
== Using MXE runresult: /home/oomek/mxe/usr/share/cmake/modules/TryRunResults.cmake
== Adding "-DCMAKE_BUILD_TYPE=Release"
loading initial cache file /home/oomek/mxe/usr/share/cmake/modules/TryRunResults.cmake
CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CMakeDetermineSystem.cmake:185 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:45 (project)


-- The C compiler identification is GNU 5.5.0
CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:212 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:45 (project)


-- The CXX compiler identification is GNU 5.5.0
CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:210 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:45 (project)


CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CMakeDetermineRCCompiler.cmake:55 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/Platform/Windows-GNU.cmake:138 (enable_language)
  /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/Platform/Windows-GNU-C.cmake:2 (__windows_compiler_gnu)
  /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CMakeCInformation.cmake:48 (include)
  CMakeLists.txt:45 (project)


-- Check for working C compiler: /home/oomek/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.static-gcc
-- Check for working C compiler: /home/oomek/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.static-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:80 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:45 (project)


-- Check for working CXX compiler: /home/oomek/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.static-g++
-- Check for working CXX compiler: /home/oomek/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.static-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CMakeTestCXXCompiler.cmake:73 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:45 (project)


CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CheckIncludeFile.cmake:55 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CheckTypeSize.cmake:230 (check_include_file)
  cmake/Config.cmake:10 (check_type_size)
  CMakeLists.txt:48 (include)


-- Looking for sys/types.h
-- Looking for sys/types.h - found
CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CheckIncludeFile.cmake:55 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CheckTypeSize.cmake:231 (check_include_file)
  cmake/Config.cmake:10 (check_type_size)
  CMakeLists.txt:48 (include)


-- Looking for stdint.h
-- Looking for stdint.h - found
CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CheckIncludeFile.cmake:55 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CheckTypeSize.cmake:232 (check_include_file)
  cmake/Config.cmake:10 (check_type_size)
  CMakeLists.txt:48 (include)


-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
CMake Error at /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CheckTypeSize.cmake:119 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /home/oomek/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.15/Modules/CheckTypeSize.cmake:246 (__check_type_size_impl)
  cmake/Config.cmake:10 (check_type_size)
  CMakeLists.txt:48 (include)


CMake Error at cmake/Config.cmake:11 (if):
  if given arguments:

    "STREQUAL" "4"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:48 (include)


-- Configuring incomplete, errors occurred!
See also "/mnt/d/Documents/GitKraken/sfml/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/d/Documents/GitKraken/sfml/build/CMakeFiles/CMakeError.log".
 

Jonny

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Email
Re: cmake errors in WSL Ubuntu
« Reply #1 on: January 20, 2020, 04:48:46 pm »
Don't think this is a problem with WSL, more likely a problem with MXE (which is completely alien to me, so can't offer much help there)

Little confused why you're calling a mingw script in WSL (which is for all intents and purposes a linux system) too?

 

anything