Can't configure with CMake

Problems building or running the engine, queries about how to use features etc.
Post Reply
jungleburger
Gnoblar
Posts: 1
Joined: Wed Aug 29, 2018 10:11 pm

Can't configure with CMake

Post by jungleburger »

Ogre Version: 2.1
Operating System: Windows 10
Render System: N/A

Brand new to this guys so please be kind. I can't seem to CMake version 2.1. I've followed the building guide, inasmuch as I've added freetype dll and lib to "Dependencies\bin and lib" folders respectively, pointed CMake at the ogre directory with the "BuildingOgre.txt" file in it, created a new directory for the configured code.

I just get a load of errors, here's the log:

Code: Select all

Determining if the include file pthread.h exists failed with the following output:
Change Dir: H:/Code/git/working-source-ogre/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_e0a56.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Microsoft (R) Build Engine version 15.8.168+ga8fba1ebd7 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 29/08/2018 22:09:50.

Project "H:\Code\git\working-source-ogre\CMakeFiles\CMakeTmp\cmTC_e0a56.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_e0a56.dir\Debug\".

  Creating directory "H:\Code\git\working-source-ogre\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_e0a56.dir\Debug\cmTC_e0a56.tlog\".

InitializeBuildStatus:

  Creating "cmTC_e0a56.dir\Debug\cmTC_e0a56.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_e0a56.dir\Debug\\" /Fd"cmTC_e0a56.dir\Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue "H:\Code\git\working-source-ogre\CMakeFiles\CMakeTmp\CheckIncludeFile.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26726 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  CheckIncludeFile.c

  cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_e0a56.dir\Debug\\" /Fd"cmTC_e0a56.dir\Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue "H:\Code\git\working-source-ogre\CMakeFiles\CMakeTmp\CheckIncludeFile.c"

  

h:\code\git\working-source-ogre\cmakefiles\cmaketmp\checkincludefile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [H:\Code\git\working-source-ogre\CMakeFiles\CMakeTmp\cmTC_e0a56.vcxproj]

Done Building Project "H:\Code\git\working-source-ogre\CMakeFiles\CMakeTmp\cmTC_e0a56.vcxproj" (default targets) -- FAILED.



Build FAILED.



"H:\Code\git\working-source-ogre\CMakeFiles\CMakeTmp\cmTC_e0a56.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  h:\code\git\working-source-ogre\cmakefiles\cmaketmp\checkincludefile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [H:\Code\git\working-source-ogre\CMakeFiles\CMakeTmp\cmTC_e0a56.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:01.64
there's also a warning in the CMake Gui cogfigure:

Code: Select all

CMake Warning at C:/Program Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMake/Dependencies.cmake:199 (find_package)
  CMakeLists.txt:258 (include)
and some errors:

Code: Select all

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FREETYPE_FT2BUILD_INCLUDE_DIR (ADVANCED)
...
any help getting this going would be most appreciated

thanks
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5298
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1279
Contact:

Re: Can't configure with CMake

Post by dark_sylinc »

Post Reply