kopia lustrzana https://github.com/proto17/dji_droneid
f0fe8ae39a | ||
---|---|---|
.. | ||
README.md | ||
add_turbo.cc | ||
remove_turbo.cc |
README.md
Building for Windows
Installing and Configuration Cygwin
- Download Cygwin from https://www.cygwin.com/setup-x86_64.exe
- Execute downloaded install executable
- Select Yes when prompted by User Account Control
- Click
Next
- Select
Install from Internet
and clickNext
- Leave
Root Install Directory
alone and clickNext
- Leave
Select Local Package Directory
alone and clickNext
- Leave
Select Your Internet Connection
alone and clickNext
- Select a mirror and click
Next
- From the
View
dropdown selectFull
- Enter
gcc-g++
in theSearch
box and select11.3.0-1
in theNew
column for thegcc-g++
row - Enter
autoconf
in theSearch
box and select15-1
in theNew
column for theautoconf
row - Enter
automake
in theSearch
box and select11-1
in theNew
column for theautomake
row - Enter
make
in theSearch
box and select4.4.1-2
in theNew
column for themake
row - Enter
git
in theSearch
box and select2.39.0-1
in theNew
column for thegit
row - Enter
wget
in theSearch
box and select1.21.3-1
in theNew
column for thewget
row - Click
Next
at the bottom right of the window - Click
Next
at theReview and confirm changes
window - Click
Finish
to close the window
Updating Windows PATH
- Click on the Start menu
- Type
PATH
- Select
Edit the system environment variables
- A new window called
System Properties
should come up - Click
Environment Variables
button - In the top panel click the
Path
button - In the new window click the
Edit
button - In the new window click the
New
button - Type in
C:\cygwin64\bin
- Click
OK
to close the edit window - Click
OK
to close theEnvironment Variables
window - Click
OK
to close theSystem Properties
window - At this point you might have to reboot the computer, but sometimes you don't have to
Building the Turbo decode/encode executables
- Open the Cygwin terminal (should be on your desktop, search the start menu if not)
- Navigate to where you have extracted/cloned the
dji_droneid
repo in Windows If you have the code atC:\Users\<user_name>\Downloads\dji_droneid
then you would run:cd /cygdrive/c/Users/<user_name>/Downloads/dji_droneid
in the Cygwin terminal - Run the following set of commands in the Cygwin terminal
pushd cpp
wget https://raw.githubusercontent.com/d-bahr/CRCpp/master/inc/CRC.h -O CRC.h
mkdir -p deps; pushd deps
git clone https://github.com/ttsou/turbofec; pushd turbofec
autoreconf -i && ./configure && make && make install
popd && popd
g++ -Wall add_turbo.cc -o add_turbo -I. -I/usr/local/include -L/usr/local/lib -lturbofec
g++ -Wall remove_turbo.cc -o remove_turbo -I. -I/usr/local/include -L/usr/local/lib -lturbofec
You should now have two new executables: add_turbo
and remove_turbo
These executables should be usable from Windows