diff --git a/CROSS_COMPILE.md b/CROSS_COMPILE.md index 2fde738..9da1c89 100644 --- a/CROSS_COMPILE.md +++ b/CROSS_COMPILE.md @@ -3,18 +3,32 @@ git clone https://github.com/enki/libev.git cd libev ./configure --host=arm-linux-gnueabi - DESTDIR=/opt/rtty_install make install + DESTDIR=/tmp/rtty_install make install # Build libuwsc - git clone https://github.com/zhaojh329/libuwsc.git + git clone --recursive https://github.com/zhaojh329/libuwsc.git cd libuwsc - cmake . -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -DCMAKE_FIND_ROOT_PATH=/opt/rtty_install -DUWSC_SSL_SUPPORT=OFF - DESTDIR=/opt/rtty_install make install + cmake . -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -DCMAKE_FIND_ROOT_PATH=/tmp/rtty_install -DUWSC_SSL_SUPPORT=OFF + DESTDIR=/tmp/rtty_install make install # Build rtty git clone https://github.com/zhaojh329/rtty.git cd rtty - cmake . -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -DCMAKE_FIND_ROOT_PATH=/opt/rtty_install - DESTDIR=/opt/rtty_install make install + cmake . -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -DCMAKE_FIND_ROOT_PATH=/tmp/rtty_install + DESTDIR=/tmp/rtty_install make install + +# Copy these files to your device's corresponding directory + + /tmp/rtty_install/ + └── usr + └── local + ├── bin + │ └── rtty + └── lib + ├── libev.so -> libev.so.4.0.0 + ├── libev.so.4 -> libev.so.4.0.0 + ├── libev.so.4.0.0 + ├── libuwsc.so -> libuwsc.so.3.3.2 + └── libuwsc.so.3.3.2