compiling oxffff tool from source

i downloaded tool from this website ,it is official homepage

adding source code from windows to wsl

i extracted source code from zip file to my downloads folder. i named folder as "helox"
now in my wsl terminal i want to copy from windows folder to wsls' folder

Note

moving from windows to wsl folder is required becuase sometimes errors will raise becuase of filesystem differences

so in my wsl terminal i should create a folder named helo2

mkdir helo2

now i want to copy it to newly created folder, here first argument is source and second argument is destination. that means source willbe copied to destination

 cp -r /mnt/c/Users/user/Pictures/helox ./helo2

i should change current working directory to that folder. so i can call "make" command without adding any arguments.

cd helo2

compiling by buildtools

now we want to compile source code and we will get output in ./src subfolder.
but we now need make command if you are not a developer or doing it first time then we should install build tools , it contain make command line tool and compilers such as gcc.

sudo apt update
sudo apt install build-essential -y

now make tool is installed ,we can call make command ,
sourcecode folder will contain a script that automatically compile oxffff tool for us when we enter make command

Note

oxFFFF tools documentation mentioned that to run make command we must have a libusb installed in wsl.
so to iinstall libusb enter following command in wsl.

 sudo apt install libusb-dev

congrats we can succesfully compile 0xFFFF tool now just enter make command.

make

now if it is successfully compiled then you can see following response in terminal
(i removed more than 20 lines from center for making it short)
you can see mv command in last line,

 make
cc -W -Wall -O2 -pedantic -std=c99 -DVERSION=\"0.10\" -DBUILD_DATE="\"Mar 30 
..................................
mv 0xFFFF.1.tmp 0xFFFF.1

if you checked "./src" folder then you can see a file named "0XFFFF"
that mean it was success you can execute it to flash firmwire of nokia n900

Powered by Forestry.md