Jump to content
TrinityCore

[Howto] properly install git on Windows / Fix Trinitycore rev. 1970-01-01 00:00:00 +0000


leak
 Share

Recommended Posts

Hi, after reinstal GIT, cmake found it, but I earn new problem:

 

The C compiler identification is unknown
The CXX compiler identification is unknown
Detected 32-bit platform
Using supplied MySQL sources
Found OpenSSL: C:/OpenSSL-Win32/lib/ssleay32.lib;C:/OpenSSL-Win32/lib/libeay32.lib  
Found git binary : D:/Program Files (x86)/Git/cmd/git.exe

* TrinityCore revision   : 132cc295ca7f 2013-03-24 00:23:27 +0100 (4.3.4 branch)

* Install core to        : C:/Program Files (x86)/TrinityCore

* Build world/auth       : Yes (default)
* Build with scripts     : Yes (default)
* Build map/vmap tools   : No  (default)
* Build core w/PCH       : Yes (default)
* Build scripts w/PCH    : Yes (default)
* Show compile-warnings  : No  (default)
* Use coreside debug     : No  (default)
* Use MySQL sourcetree   : Yes (default)
* Use GIT revision hash  : Yes

Looking for IPPROTO_IPV6
CMake Error at D:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for IPPROTO_IPV6 - not found
Looking for IPV6_V6ONLY
CMake Error at D:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for IPV6_V6ONLY - not found
Looking for S_IROTH
CMake Error at D:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


............

 

I hope, someone can help me. thx

Edited by Jakob
Link to comment
Share on other sites

I Have Windows 7 64-Bit with Git 1.7.0.2 but in cmake i have this error

 

CMake Error at cmake/macros/FindGit.cmake:24 (message):

 

Git was NOT FOUND on your system - did you forget to install a recent version, or setting the path to it?

Observe that for revision hash/date to work you need at least version 1.7

Call Stack (most recent call first):

CMakeLists.txt:65 (find_package)

 

Now i setting the path in variables from my environment variables but what is the true variable path string? Is really C:Program Files (x86)Gitcmd ? Because to me not work..

 

Thank you guys.

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
  • 1 month later...
  • 1 month later...
  • 5 weeks later...
  • 1 year later...

Problem:

    Could not find a proper repository signature (hash) - you may need to pull tags with git fetch -t
    Continuing anyway - note that the versionstring will be set to "unknown 1970-01-01 00:00:00 (Archived)"

How to repeat:

Make TC's repo clone, push some commits to your new repo and merge with TC's one.

Solution:

Go to https://github.com/TrinityCore/TrinityCore/releases/tag/init
Find "init" named tag and its hash (9b1c0e006f20091f28f3f468cfcab1feb51286bd)
Go with git into your cloned repo and type:

git tag -a init 9b1c0e006f20091f28f3f468cfcab1feb51286bd
git push --tags

You can also check if everything ok with this command:

git describe --match init --dirty=+ --abbrev=12

Output should be like init-<counter>-<short-hash>
For ex.: init-22656-g15a9c6729ee2

Link to comment
Share on other sites

  • 4 weeks later...

Requirements:

 

Msysgit can either by acquired directly from msysgit or using the "CompleteSetup" package from GitExtensions.

 

Msysgit version required: 1.7+

Minimum required TC rev: b2404c1a26d9 (10997)

 

Setup options:

 

During the setup wizard you will encounter the following screen:

 

post-5-0-92947600-1294417154_thumb.png

Make sure your git executable is added to the PATH variable by choosing one of the green marked options.

 

Fixes "Missing or outdated git - did you forget to install a recent version?"

​​Can't see the thumbnail. :(

  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...

For those who gives them error and does not show version.
It is almost understandable that it is not so but it is worth clarifying.
If you download the repo as a .zip with the button on the project page it will never show the version.
To show the version you have to clone the project directly with Git

Link to comment
Share on other sites

On 5/16/2017 at 2:45 PM, HannibalRoG said:

For those who gives them error and does not show version.
It is almost understandable that it is not so but it is worth clarifying.
If you download the repo as a .zip with the button on the project page it will never show the version.
To show the version you have to clone the project directly with Git

I don't quite understand what you are saying...

You can check the revision while downloading as a zip.

Link to comment
Share on other sites

11 hours ago, CDawg said:

I don't quite understand what you are saying...

You can check the revision while downloading as a zip.

He says that the issue this thread we are in tries to fix cannot be fixed by using the method described if you downloaded the source as a zip.
If you are saying that you can still do this fix, then maybe share some steps?

The point is not that you cannot get the version of the zip. The point is that you cannot fix the version showing as Trinitycore rev. 1970-01-01 00:00:00 +0000 on startup and in cmake and everywhere.

Link to comment
Share on other sites

1 hour ago, Rochet2 said:

He says that the issue this thread we are in tries to fix cannot be fixed by using the method described if you downloaded the source as a zip.
If you are saying that you can still do this fix, then maybe share some steps?

The point is not that you cannot get the version of the zip. The point is that you cannot fix the version showing as Trinitycore rev. 1970-01-01 00:00:00 +0000 on startup and in cmake and everywhere.

ah gothca... my bad.. I guess the simple question is, why download it as a zip?

Actually... I think there is a way to make a simple batch file (windows) to run that cross references the fresh zipped repo with TC using git api, then interjects or creates a new (genrev.cmake), before someone runs cmake, it would be an extra step for zip downloaders, but would work.

I would just recommend to clone it.

Link to comment
Share on other sites

  • 3 months later...
  • 5 months later...
On 2/14/2018 at 9:08 AM, Polaretto said:

I'd suggest closing this topic, since installing git on Windows has become insanely easy over the last couple of years and the wiki extensively explains how to install all the tools.

I would agree. Windows git has fixed a lot their bugs where applications would not recognize it. I also have one machine with Windows on it wasn't trivial at all to install on a fresh windows 10 machine and cmake found everything.

Link to comment
Share on other sites

  • 1 month later...

Hello,

I do not know where to get the help hope I am here, if not I'm really sorry

have the problem


 

Description:

Problem with npcbots to spawn not possible

Current behaviour:

if I make .npcb loo 1 (for Kríeger)
and ID example: .npc add 70224 spawn no npcbots

Expected behaviour:

npcbots to spawn not possible

Steps to reproduce the problem:

 

  1. https://picload.org/view/daiodwpw/1.jpg.html

  2. if I make .npcb loo 1 (for Kríeger) or .npc add 70224 spawn no npcbots

  3. So in creature_template all are in there 70001 to 70246
    if I add .npc add 70224 it does not work
    but he creates it in world creature
    and do not create it in characters_npcbot
    If I add it to characters_npcbot, the server crashes

Branch(es):

bots-test (335)

https://github.com/livingsacrifice/TrinityCore/tree/bots-test

TC rev. hash/commit:

TrinityCore rev. 19820ac 2018-03-16 13:44:13 -0500 (bots-test branch) (Win64, Release, Static) (worldserver-daemon)
Using SSL version: OpenSSL 1.0.2k 26 Jan 2017 (library: OpenSSL 1.0.0q 15 Jan 2015)
Using Boost version: 1.63.0
Using MySQL version: 5.6.36
Using CMake version: 3.8.0
Using World DB: TDB 335.63
Visual studio 2015 Community

Operating system:

Windows 10 Home x64

Edited by Katha
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...