msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.3k stars 1.22k forks source link

Qt5 5.14.1 hardcoded paths #6198

Closed Gator96100 closed 4 years ago

Gator96100 commented 4 years ago

When trying to compile with Qt5 5.14.1 I get the error: /bin/sh: D:/mingwbuild/mingw-w64-qt5/pkg/mingw-w64-x86_64-qt5/mingw64/bin/uic: No such file or directory. I don’t even have a D:/ Drive, the path seems to be hardcoded into the qt5 exes.

Alexpux commented 4 years ago

Fixed by https://github.com/msys2/MINGW-packages/commit/bdf47e0135556310e64b53e4432f9d7517a0395f

Gator96100 commented 4 years ago

That didn't fix it.

Alexpux commented 4 years ago

@Gator96100 well need more info what not work. I have couple of computers installed and all is working

Gator96100 commented 4 years ago

I am using ProxSpace, a msys2 installation with various tools installed to compile the proxmark3 firmware It uses mingw as toolchain. The error that I get is:

/bin/sh: D:/mingwbuild/mingw-w64-qt5/pkg/mingw-w64-x86_64-qt5/mingw64/bin/uic: No such file or directory make[1]: [Makefile:317: ui/ui_overlays.h] Error 127 make: [Makefile:98: client/all] Error 2

Alexpux commented 4 years ago

@Gator96100 sorry but it doesnt tell me anything. Do you update packages to latest with pacman? Current Qt5 is 5.14.1-2.

Gator96100 commented 4 years ago

I will test a few things after work. It might have to do with the portable msys2 installation that ProxSpace is. Yes I did update to Qt5 5.14.1-2.

Gator96100 commented 4 years ago

After setting the prefix variable in the msys2\mingw64\lib\pkgconfig*.pc files correct it did compile successfully. Is

prefix=D:/mingwbuild/mingw-w64-qt5/pkg/mingw-w64-x86_64-qt5/mingw64

correct? Should this variable not update to the current installation path?

Alexpux commented 4 years ago

@Gator96100 hope this https://github.com/msys2/MINGW-packages/commit/a4b7d8897febe10b174a2559a89004619ac1e0fb solve issue. Will rebuild qt5 when get time