• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] C make error

Status
Not open for further replies.

cliffsmits

Enthusiast
hello guys i am trying to run cmake but i recieve this error hopefully somone can help me

i compiled with the latest rev version from trinitycore

Code:
Determining if files pthread.h exist failed with the following output:
Change Dir: C:/TrinityCore/Build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe" "cmTryCompileExec2558042386.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.21005.1

[Microsoft .NET Framework, version 4.0.30319.18444]

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 9/9/2014 12:38:42 PM.

Project "C:\TrinityCore\Build\CMakeFiles\CMakeTmp\cmTryCompileExec2558042386.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTryCompileExec2558042386.dir\Debug\".

  Creating directory "C:\TrinityCore\Build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTryCompileExec2558042386.dir\Debug\cmTryCom.82BE167A.tlog\".

InitializeBuildStatus:

  Creating "cmTryCompileExec2558042386.dir\Debug\cmTryCom.82BE167A.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2558042386.dir\Debug\\" /Fd"cmTryCompileExec2558042386.dir\Debug\vc120.pdb" /Gd /TC /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4512 /analyze- /errorReport:queue CheckIncludeFiles.c

  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2558042386.dir\Debug\\" /Fd"cmTryCompileExec2558042386.dir\Debug\vc120.pdb" /Gd /TC /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4512 /analyze- /errorReport:queue CheckIncludeFiles.c

  

  CheckIncludeFiles.c

CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\TrinityCore\Build\CMakeFiles\CMakeTmp\cmTryCompileExec2558042386.vcxproj]

Done Building Project "C:\TrinityCore\Build\CMakeFiles\CMakeTmp\cmTryCompileExec2558042386.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\TrinityCore\Build\CMakeFiles\CMakeTmp\cmTryCompileExec2558042386.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\TrinityCore\Build\CMakeFiles\CMakeTmp\cmTryCompileExec2558042386.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.88


Source:
/* */
#include <pthread.h>


int main(){return 0;}
 

Hyperion

Founder
You either need to check "WITHOUT_GIT" or You didn't set the mysql lib + mysql include dir path
Check your CMakeError log

I assume you're using VS12? looks like it
 

cliffsmits

Enthusiast
i think its the cmake thats make the problem hopefully you can help me out

i am sorry i dont have that much knowledge on those issues
 
Last edited:

Tommy

Founder
You either need to check "WITHOUT_GIT" or You didn't set the mysql lib + mysql include dir path
Check your CMakeError log

I assume you're using VS12? looks like it

It isn't a git issue. If it was, it would say path not found (or git not found), and to fix "path not found" he needs to set the path up via environment variables or re-install git correctly -- since checking without_git has its own issues. "Microsoft Visual Studio 12.0" is also the VS 2013 folder name.


i think its the cmake thats make the problem hopefully you can help me out

CMake just configure and generate the project, it really depends on if you have everything needed installed to make it succeed. The pthread.h file is Unix based, so you're missing something. It appears you didn't reply to Faded with something related to if you have MySQL libraries installed or not. We're helping, you just need to read our replies thoroughly. :p
 
Status
Not open for further replies.
Top