Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts


See also "C:/Users/Premal/Desktop/Build/CMakeFiles/CMakeOutput.log".

See also "C:/Users/Premal/Desktop/Build/CMakeFiles/CMakeError.log".

 

what do these say, also, you aren't giving any info at all, is this win 7, 8, XP, Vista? exactly what versions of 2013 have you tried? (ARM is most likely not the one you need, as it is the CPU used in tablets and smart phones) if using 7, you need desktop, if using XP, I think you mightbe Shit out of luck, unless Desktop also works there.

Link to comment
Share on other sites

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I have windows 7, could you link me the version i am suppose to be using as i have different versions of it on my laptop but i have no idea which one i should be using. Also i use ARM by mistake i have been using the win64 versions mainly but i still get the same error.

CMakeError:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:  
Build flags: 
Id flags: 
 
The output was:
The system cannot find the file specified
 
 
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:  
Build flags: 
Id flags: 
 
The output was:
The system cannot find the file specified
 
CMakeOutput:
The system is: Windows - 6.1 - AMD64
 
Link to comment
Share on other sites

Hello, I ran into a problem when I went to use Cmake after I pulled the repo. Attached screenshot has both the error box and CMakeError shown. Sorry if this is an easy fix.

 

Setup:

just pulled from repo today (6/20/14)

VS Ultimate 2012

Windows 7 on Core i7 processor

CMake 3.0.0

 

If any more information is needed I will gladly give it! Thanks for your time!

post-20929-0-25912300-1403249896_thumb.p

Link to comment
Share on other sites

ok I feel like an idiot about that oversight but now it says that it can't find Open SSL even though I have the most recent version installed. I tried running CMake after reinstalling both 1.0.1h light and regular but it gives the same error:

CMake Error at D:/CMake/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  D:/CMake/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  cmake/macros/FindOpenSSL.cmake:176 (find_package_handle_standard_args)
  CMakeLists.txt:56 (find_package)
Link to comment
Share on other sites

Hi ,

 

The answer is in the error .

 

(missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)

 

In Cmake check the tab that says advanced and check where Cmake is looking for the OpenSSL Libraries if it is not the location you have installed OpenSSL then change it to the correct Dir .

 

example = C:OpenSSL-Win64/include

 

This issue is common when you install Cmake or OpenSSL to directories other than C: without telling Cmake where to look for OpenSSL  as default it will look at C: in less told other wise.

 

I would suggest if you are a novice to compiling Trinity Core that you only use your C: drive to install all the required components and compiling as adding/changing directories will confuse you or cause errors like the issue you have .

 

 

Link to comment
Share on other sites

 

cmake ../ -DPREFIX=/home/desktop/Escritorio/TrinityCore/src/server -DCONF_DIR=/home/desktop/Escritorio/TrinityCore/src/server/conf -DLIBSDIR=/home/desktop/Escritorio/TrinityCore/dep/lib -DTOOLS=1 -DWITH_WARNINGS=1

-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/gcc
CMake Error at cmake/compiler/gcc/settings.cmake:7 (message):
  GCC: TrinityCore requires version 4.7.2 to build but found
Call Stack (most recent call first):
  cmake/platform/unix/settings.cmake:37 (include)
  cmake/macros/CheckPlatform.cmake:15 (include)
  CMakeLists.txt:48 (include)
 
 
-- Configuring incomplete, errors occurred!
 

Cmake 2.8.11

GCC 4.7.3

Edited by Fanatixwow
Link to comment
Share on other sites

Hi mitar95x ,

 

Your error is simple "ITS IN RED AT THE BOTTOM OF CMAKE"

 

Install Git correctly !

 

Follow the wiki guide it is there to help you .

 

Also if the path is incorrect too because you used directories other than C: to install Git then check the "Advanced box" in Cmake and see where it is looking for the Git extensions .

 

You would not have this issue if you had read the wiki , as it states the required software and setup , Please take time to read it ! 

Link to comment
Share on other sites

Having trouble getting CMake to recognize VS 2013 on Windows 7.

 

Note: I have not had problems with VS9 or VS10 in the past...

 

  • Installed VS 2013 Ultimate
  • Ran "vcvarsall.bat" from VS install dir to set environment variables
    • This actually doesn't seem to do anything so I ran vcvars32.bat directly which also seems to do nothing
  • Installed CMake 3.0.0
  • Ran CMake
    • Tools -> Configure
      • "Visual Studio 12 2013"
      • Use default native compilers
      • Finish
    • Got the following errors:
      • The C compiler identification is unknown
      • The CXX compiler identification is unknown
      • CMake error log says it failed to compile a test program
        • error LNK1181: cannot open input file 'kernel32.lib'
      • CMake error log also has an error: MSB8003 - Could not find WindowsSDKDir in registry
  • Cleared CMake cache and ran it again
    • Tools -> Configure
      • Visual Studio 12 2013
      • Specify native compilers
        • Selected the VS 2103 "cl.exe" for both C and C++
      • Finish
    • Got the same errors as before
  • Checked Google
    • Not very useful. Looked at similar topics about VS 2010 where it is mentioned that you need to run vcvars32.bat before installing CMake which I had done.
    • Other posts say to run the IDE first (which I tried) and to uninstall / reinstall CMake which I did.
    • Also no helpful information on the "WindowsSDKDir" error either
Link to comment
Share on other sites

I'm getting strange build errors trying to compile but the build continues anyway...

 

  • Hash: c28345e279f31af2fa32df2411325ccfabe06fc8
  • CMake: 3.0.0
  • Git: Git-1.9.4-preview20140611
  • OS: Windows 7
  • Compiler: Visual Studio 2013 Ultimate
  • Error:
    • error MSB6006
      • "cmd.exe" exited with code 1
         
      • Note: This is repeated several times throughout the build process and is related to the following:
        • CMake error at EnsureVersion.cmake:95
          • NORMALIZE_VERSION macro invoked with incorrect arguments
        • CMake error at FindGit.cmake:42
          • Git was found but is OUTDATED you need at least version 1.7
        • CMake Configure step failed. Build files cannot be regenerated correctly
           
        • Git version too old

 

So is this a problem with the sources or with my installation? After cloning the repo, CMake worked fine to generate the source files. To test GIT, I created a branch and merged a dummy patch which was successful.

 

Any advice?

 

Edit:

 

I looked in FindGit.cmake and saw this:

 


hint git git.cmd

 

Is it possible that this is failing because GIT stopped including git.cmd in 1.8?

Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes locked this topic
  • Carbenium unlocked this topic
  • Aokromes pinned and locked this topic
  • Aokromes featured and featured this topic
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...