Skip to content

mingw-w64-libftdi and mingw-w64-libusb-1.0 packages need relocatable config files #29871

@cr1901

Description

@cr1901

Description / Steps to reproduce the issue

I ran into an issue build openFPGAloader a few weeks ago, where the cmake configuration is told to find libftdi and libusb-1.0's includes/libraries at the hardcoded root /mingw64 prefix. By the time code is compiled, neither cmake or the build tool has converted the Cygwin-based /mingw64 into "an actual path on the filesystem", so gcc cannot find any includes/libraries.

I don't have time to champion this myself right now. But since I know the problem and solution, I should at least document it.

Expected behavior

libftdi's LibFTDI1Config.cmake and libusb-1.0's libusb-1.0.pc files need to be made relocatable.

Actual behavior

libftdi's LibFTDI1Config.cmake and libusb-1.0's libusb-1.0.pc files are hardcoded to use /mingw64 root.

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

Maybe later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions