(05-11-2018, 01:14 AM)JosJuice Wrote: After cloning the git repo, run this:
git checkout 15759c457d2f2f34456b4b2a8f98b1fd139ea45f
Then build as usual.
(05-11-2018, 02:02 AM)Shonumi Wrote: You don't need to add the git hash to the cmake command. Just cmake .. like before. You can add variables like -DLINUX_LOCAL_DEV=true as usual.
Once you git checkout, the source code you're compiling is from whatever hash you entered, so you don't need to enter that hash again.
[ps4@ps4 ~]$ git clone https://github.com/dolphin-emu/dolphin.git
fatal: destination path 'dolphin' already exists and is not an empty directory.
[ps4@ps4 ~]$ cd Desktop/
[ps4@ps4 Desktop]$ git clone https://github.com/dolphin-emu/dolphin.git cd/desktop
Cloning into 'cd/desktop'...
remote: Counting objects: 313145, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 313145 (delta 5), reused 4 (delta 4), pack-reused 313125
Receiving objects: 100% (313145/313145), 315.90 MiB | 244.00 KiB/s, done.
Resolving deltas: 100% (248185/248185), done.
Checking out files: 100% (7161/7161), done.
but...
[ps4@ps4 Desktop]$ git checkout 15759c457d2f2f34456b4b2a8f98b1fd139ea45f
fatal: not a git repository (or any of the parent directories): .git
[ps4@ps4 Desktop]$ cd Desktop/ git checkout 15759c457d2f2f34456b4b2a8f98b1fd139ea45f
bash: cd: too many arguments
[ps4@ps4 Desktop]$ cd Desktop/
bash: cd: Desktop/: No such file or directory
[ps4@ps4 Desktop]$ mkdir build
[ps4@ps4 Desktop]$ cd build
[ps4@ps4 build]$ cmake
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.
Run 'cmake --help' for more information.
[ps4@ps4 ~]$ git checkout 15759c457d2f2f34456b4b2a8f98b1fd139ea45f cd Desktop/
fatal: not a git repository (or any of the parent directories): .git
[ps4@ps4 ~]$ cd Desktop/
[ps4@ps4 Desktop]$ cd cd/
[ps4@ps4 cd]$ cd Desktop/
bash: cd: Desktop/: No such file or directory
[ps4@ps4 cd]$ cd Desktop/cd
bash: cd: Desktop/cd: No such file or directory
[ps4@ps4 cd]$ cd desktop
[ps4@ps4 desktop]$ git checkout 15759c457d2f2f34456b4b2a8f98b1fd139ea45f
Note: checking out '15759c457d2f2f34456b4b2a8f98b1fd139ea45f'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 15759c457d Merge pull request #4579 from lioncash/namespace
[ps4@ps4 desktop]$
[ps4@ps4 desktop]$ mkdir build
[ps4@ps4 desktop]$ cd build
[ps4@ps4 build]$ cmake
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.
Run 'cmake --help' for more information.
[ps4@ps4 build]$ make
make: *** No targets specified and no makefile found. Stop.
