leak

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

46 posts in this topic

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
0

Share this post


Link to post
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.

0

Share this post


Link to post
Share on other sites

Thanks friend. very useful information. to my helped me very much

 

1

Share this post


Link to post
Share on other sites

I added GIT to the path variable but im getting this error woth git not found...

0

Share this post


Link to post
Share on other sites

Hi Guys
I have GIT v. 2.46, I didn't see the picture (post #1) and have this problem: Git was NOT FOUND on your system

 

any Idea?

0

Share this post


Link to post
Share on other sites

Hi Guys

I have GIT v. 2.46, I didn't see the picture (post #1) and have this problem: Git was NOT FOUND on your system

 

any Idea?

 

The picture didn't display for me unless I logged in, but it definitely worked today.

0

Share this post


Link to post
Share on other sites

Surprise, surprise, it's an attachment which are usually only shown for registered users. Just saying.

0

Share this post


Link to post
Share on other sites

For anyone still having cmake error git not found, try to run cmake as admin

2

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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. :(

1

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
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.

0

Share this post


Link to post
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.

0

Share this post


Link to post
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.

0

Share this post


Link to post
Share on other sites

Thanks @Rochet2 for translate my bad English.

And yes @CDawg, Some people, like me, at the beginning, download the .zip and the version not showing properly, the aclaration is valid.

 

Note: Now, i use git clone instead.

0

Share this post


Link to post
Share on other sites
9 minutes ago, Asandru93 said:

and for linux?

use git clone.

0

Share this post


Link to post
Share on other sites

 

1 hour ago, Aokromes said:

use git clone.

I did Aokromes, still does not help.

Debian 9.1

0

Share this post


Link to post
Share on other sites
2 hours ago, Asandru93 said:

 

I did Aokromes, still does not help.

Debian 9.1

works for me using wiki.

0

Share this post


Link to post
Share on other sites
On 9/11/2017 at 10:34 AM, Asandru93 said:

 

I did Aokromes, still does not help.

Debian 9.1

What error are you receiving on Linux when you git clone? Are you making modifications to the core after you clone the repo?

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.