How do I run and compile Github project?

Callow Guy

Supremacy Member
Joined
Jan 27, 2012
Messages
8,514
Reaction score
55
Ok.. i am not a programmer. Anyone can advise on how to run and compile a github project?

For example, I want to run and compile this :



What do I need in order to run the following commands on a Windows 10 computer?

git submodule update --init
autoreconf -vis
rm -rf build && mkdir build
cd build
../configure
make
sudo make install
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
11,280
Reaction score
112
Ok.. i am not a programmer. Anyone can advise on how to run and compile a github project?

For example, I want to run and compile this :



What do I need in order to run the following commands on a Windows 10 computer?

git submodule update --init
autoreconf -vis
rm -rf build && mkdir build
cd build
../configure
make
sudo make install
You need to first clone the repo down as such

Bash:
git clone https://github.com/nfc-tools/nfc-iclass.git

Then you change into the directory and the run the commands in succession.

However I realise it will require the most recent version of the libnfc, which you will need to obtain from

Again the libnfc library will have dependency on libusb
It seems libusb-dev is found in my ubuntu repository, so that is as simple as
same for libssl-dev too
Bash:
sudo apt install libusb-dev
sudo apt install libssl-dev

And there you go :)
Bash:
$ ./build/src/nfc-iclass -h


Usage: ./build/src/nfc-iclass [options] [BINARY FILE|HEX DATA]


  Options:


    -c <KEY>      Use CREDIT KEY Kc / APP2 (default is DEBIT KEY Kd / APP1)
    -C <?|CARD>   Create CONFIG card (? prints list of config cards)
    -d <KEY>      Use non-default DEBIT KEY for APP1
    -e            AUTH KEY is ELITE
    -h            You're looking at it
    -k <KEY>      Keyroll KEY for CONFIG card
    -n            Do not DIVERSIFY key
    -o <FILE>     Write TAG data to FILE
    -p <KEY>      Permute KEY
    -r <KEY>      Re-Key with KEY (assumes new key is ELITE)
    -R <KEY>      Re-Key to non-ELITE
    -u <KEY>      Unpermute KEY
    -w <BLOCK>    WRITE to tag starting from BLOCK (specify # in HEX)


    If no KEY is specified, default HID Kd (APP1) will be used


  Examples:


    Use non-default key for APP1:


    ./build/src/nfc-iclass -d DEADBEEFCAFEF00D


    Dump contents of APP2:


    ./build/src/nfc-iclass -c 0DC442031337D00F


    Write APP1 blocks 8 & 9:


    ./build/src/nfc-iclass -w 8 aabbccddaabbccddaabbccddaabbccdd


      or


    ./build/src/nfc-iclass -w 8 /tmp/iclass-8-9-dump.icd


davidktw@ul2004lts:~/nfc-iclass$
 

Callow Guy

Supremacy Member
Joined
Jan 27, 2012
Messages
8,514
Reaction score
55
All the steps u hv mentioned can be done using Windows 10 enviroment? I do not have Ubuntu environment installed in my computer. Thank you for your advise!

Edit: ok.. i roughly know what to do already.. I need to install Git for Windows first... thx again for your advice!
 
Last edited:

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
11,280
Reaction score
112
All the steps u hv mentioned can be done using Windows 10 enviroment? I do not have Ubuntu environment installed in my computer. Thank you for your advise!

Edit: ok.. i roughly know what to do already.. I need to install Git for Windows first... thx again for your advice!
I'm afraid the project is setup to be build within an unix environment with the usual build tools like GCC, Autoconf, Automake, pkg-config and so forth.

The most straight forward way for you to build it is in an unix environment. You can do so in your windows environment by either installing a linux virtual machine(using Oracle Virtualbox), or using Cygwin, MinGW, or maybe using Microsoft WSL1/2. The first one will be the easiest and most straight forward.

Trying to create your own building process in Windows using a totally different build suite will be quite an undertaking unless you know and willing to deal with the project dependencies yourself. It can be done, just not something at your level can perform :)
 

Callow Guy

Supremacy Member
Joined
Jan 27, 2012
Messages
8,514
Reaction score
55
And yes.. i hit a roadblock when trying to run the commands in sequence using git bash.. it says autoreconf command not found.. I will try install Oracle Virtualbox and try again.. Thx for your advice!
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ. Forum members and moderators are responsible for their own posts.

Please refer to our Terms of Service for more information.
Top