forked from neo-technologies/rkflashtool
-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
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 :(
Metadata
Metadata
Assignees
Labels
No labels