mirror of
https://github.com/sharkcz/rkdeveloptool.git
synced 2025-01-28 06:27:30 +01:00
macOS requires -liconv in the LDFLAGS to link correctly. So add a search macro to the configure script to prevent following error: g++ -g -O2 -o rkdeveloptool main.o crc.o RKBoot.o RKComm.o RKDevice.o RKImage.o RKLog.o RKScan.o -L/usr/local/Cellar/libusb/1.0.21/lib -lusb-1.0 Undefined symbols for architecture x86_64: "_iconv", referenced from: StringToWideString(char*, wchar_t*&) in main.o WideStringToString(wchar_t*, char*&) in main.o "_iconv_close", referenced from: StringToWideString(char*, wchar_t*&) in main.o WideStringToString(wchar_t*, char*&) in main.o "_iconv_open", referenced from: StringToWideString(char*, wchar_t*&) in main.o WideStringToString(wchar_t*, char*&) in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [rkdeveloptool] Error 1
rkdeveloptool gives you a simple way to read/write rockusb device.let's start. compile and install 1 install libusb and libudev sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf 2 go into root of rkdeveloptool 3 autoreconf -i 4 ./configure 5 make rkdeveloptool usage,input "rkdeveloptool -h" to see example: 1.download kernel.img sudo ./rkdeveloptool db RKXXLoader.bin //download usbplug to device sudo ./rkdeveloptool wl 0x8000 kernel.img //0x8000 is base of kernel partition,unit is sector. sudo ./rkdeveloptool rd //reset device compile error help if you encounter the error like below: ./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0' ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)' You should install pkg-config libusb-1.0: sudo apt-get install pkg-config libusb-1.0
Description
Languages
C++
94.8%
C
3.9%
CMake
0.7%
M4
0.3%
Makefile
0.3%