You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile rkflashtool for Windows x64 on Ubuntu 22.04 according to the instructions given.
Preparing:
sudo apt-get install mingw-w64
git clone https://github.com/libusb/libusb.git
cd libusb
./autogen.sh
make clean
./configure --host x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
make
sudo make install
cd ~/rkflashtool
Compiling rkflashtool:
~/rkflashtool$ make MACH=mingw CROSSPREFIX=x86_64-w64-mingw32-
x86_64-w64-mingw32-windres -O coff -i rkcrc.rc -o rkcrc.res
x86_64-w64-mingw32-gcc -O2 -W -Wall -I/usr/include/libusb-1.0 rkcrc.c rkcrc.res -o rkcrc.exe -lusb-1.0 -s -static -lmman
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmman: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:56: rkcrc.exe] Error 1
rm rkcrc.rc rkcrc.res`
Could you please tell me what's wrong? Should I manually remove "-lmman" parametr in the Makefile?
Thank you!
P.S. I found the mman-win32 repo but it requires Windows for compiling :(
The text was updated successfully, but these errors were encountered:
I'm trying to compile rkflashtool for Windows x64 on Ubuntu 22.04 according to the instructions given.
Preparing:
Compiling rkflashtool:
Could you please tell me what's wrong? Should I manually remove "-lmman" parametr in the Makefile?
Thank you!
P.S. I found the mman-win32 repo but it requires Windows for compiling :(
The text was updated successfully, but these errors were encountered: