Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile for Windows x64 #18

Open
Immick opened this issue Sep 23, 2024 · 0 comments
Open

Cannot compile for Windows x64 #18

Immick opened this issue Sep 23, 2024 · 0 comments

Comments

@Immick
Copy link

Immick commented Sep 23, 2024

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 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant