Dolphin, the GameCube and Wii emulator - Forums

Full Version: No build/version number after building
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi

I'm having a hard time figuring out how to add a build/version number when building Dolphin.

As you see in this screenshot:

*IMAGE REMOVED BY DUKE NUKEM*

all I get is Dolphin [] and no build/version number.

I'm on Windows Server 2012 R2 and Visual Studio 2013 Ultimate Update 4.

Dolphin otherwise builds just fine and works OK.

How can I add a build/version number to my builds?

Thanks in advance!
Welcome back Gabriel.
Just a stab into the dark, but do you have GIT installed somewhere? It needs to be in your Path.
Since you haven't stated that you've followed anything, follow this and make sure you got every prerequisite.
Yeah, definitely because git is missing.
(01-07-2015, 03:29 AM)Garteal Wrote: [ -> ]Welcome back Gabriel.
Just a stab into the dark, but do you have GIT installed somewhere? It needs to be in your Path.
Since you haven't stated that you've followed anything, follow this and make sure you got every prerequisite.

Hi Garteal!

Well I have the official git commandline package installed from here:
http://git-scm.com/download/win

and everything is up to date both Windows and Visual Studio wise.

If I'm not gonna upload anything and just build, can I change build number without git?
And if I have to use git, do I have to be online?

My Windows Server 2012 R2 build setup is currently dual booted with Windows 8.1, which is my gaming setup and it's not online.
Yeah you can manually edit scmrev.h, just make sure make_scmrev.js doesn't change it back. Git does not ever require you to be online, except to push.
(01-07-2015, 04:01 AM)RachelB Wrote: [ -> ]Yeah you can manually edit scmrev.h, just make sure make_scmrev.js doesn't change it back. Git does not ever require you to be online, except to push.

Thank you, but I made changes to scmrev.h and it's the same. I guess make_scmrev.js is changing it back.
How can I prevent this?

To take an example, what if I wanted to give my build version number 4.5, how do I do it the easy way?
(01-07-2015, 03:48 AM)Duke Nukem Wrote: [ -> ]Well I have the official git commandline package installed from here:
http://git-scm.com/download/win

During the setup, you get 3 options to choose:
- do nothing (i think)
- add git to PATH
- add everything to PATH (marked in red as dangerous)

Did you select at least the "git in PATH" one? Unless you got cygwin, unxutils or any other linux compat layer in place, you might aswell select the red option.
(01-07-2015, 05:35 AM)Jack Frost Wrote: [ -> ]
(01-07-2015, 03:48 AM)Duke Nukem Wrote: [ -> ]Well I have the official git commandline package installed from here:
http://git-scm.com/download/win

During the setup, you get 3 options to choose:
- do nothing (i think)
- add git to PATH
- add everything to PATH (marked in red as dangerous)

Did you select at least the "git in PATH" one? Unless you got cygwin, unxutils or any other linux compat layer in place, you might aswell select the red option.

I'm not sure what I selected during setup, but I guess I have to uninstall and install it again.
But once I install it again, how can I add a build/version number with git? How does it work?
For example, I have set the solution to build in release and the build is put in the Build folder under x64 but nowhere during that I see git intervene.
Theres a script "make_scmrev.js" that runs as post-build event (or even build?) of the SCMRev project. It runs git describe (and others) to get a version string. It puts that into scmrev.h, which is included by the main project and shown in the GUI.
(01-07-2015, 05:52 PM)Duke Nukem Wrote: [ -> ]I'm not sure what I selected during setup, but I guess I have to uninstall and install it again.
Or you could simply add the bin directory to your PATH.
Pages: 1 2