Skip to content

Missing <sys/mman.h> on MSYS MinGW x64, Windows 7 (was missing Package libusb-1.0) #14

@drmpf

Description

@drmpf

I am getting this error in msys2 when trying to compile stlink-tool

Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found

git clone https://github.com/jeanthom/stlink-tool
did not bring down the libusb folder

pkg-config was installed by pacman msys/pkg-config 0.29.2-4

I downloaded libusb-1.0.23.tar.bz2 from https://github.com/libusb/libusb/releases/tag/v1.0.23 but not clear to me what to do next to resolve this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions