erickt / rust-zmq

Rust zeromq bindings.
Apache License 2.0
886 stars 189 forks source link

Compilation troubles with msys2 #371

Closed buxx closed 1 year ago

buxx commented 1 year ago

Hello ! I'm game developer of OpenCombat open source game (https://github.com/buxx/OpenCombat).

I have troubles with compilation.

I use a github action (ex. https://github.com/buxx/OpenCombat/blob/master/.github/workflows/rustbuild.yml) msys2 job configured to install mingw-w64-x86_64-zeromq :

jobs:  
  check-msys-mingw64:
    [...]
      - name: Setup msys2 dependencies
        uses: msys2/setup-msys2@v2
        with:
          msystem: MINGW64
          update: true
          install: git mingw-w64-x86_64-cc mingw-w64-x86_64-rust mingw-w64-x86_64-zeromq mingw-w64-x86_64-pkg-config --needed

But, build fail on the following :

thread 'main' panicked at 'Unable to locate libzmq:
  Could not run `"pkg-config" "--libs" "--cflags" "libzmq" "libzmq >= 4.1"`
  The pkg-config command could not be found.

Any idea about why pkg-config don't found libzmq ?

buxx commented 1 year ago

Problem solved : https://github.com/msys2/MINGW-packages/issues/16397#issuecomment-1482909270