Closed bjornfor closed 1 year ago
Thanks for the report! The new URL for the same tarball seems to be:
https://download.qt.io/archive/qt/5.12/5.12.12/submodules/qtbase-everywhere-src-5.12.12.tar.xz
This is fixed in commit a57a608f4684894ec5605ae06ce9b07d3d6cfcb9.
Note that nixcrpkgs supports Qt 6 now, so you might want to try that instead! It should be better than Qt 5, since I didn't have to patch it as much and I didn't have to generate the CMake files myself using Ruby scripts.
nix-build -A win32.qt6.examples
Thanks!
nix-build -A win32.qt6.examples
That actually failed with missing /bin/pwd
. I fixed it with this quick hack:
diff --git a/pkgs/qt6/builder.sh b/pkgs/qt6/builder.sh
index 2d768d0..f3524d9 100644
--- a/pkgs/qt6/builder.sh
+++ b/pkgs/qt6/builder.sh
@@ -14,6 +14,7 @@ cd ../../..
mkdir build
cd build
+sed -i -e "s|/bin/pwd|pwd|g" ../src/configure
PKG_CONFIG=pkg-config-cross ../src/configure -prefix $out $configure_flags
cmake --build . --parallel
cmake --install .
diff --git a/pkgs/qt6/qt_host_builder.sh b/pkgs/qt6/qt_host_builder.sh
index 97194cb..9960b4a 100644
--- a/pkgs/qt6/qt_host_builder.sh
+++ b/pkgs/qt6/qt_host_builder.sh
@@ -6,6 +6,7 @@ chmod u+w -R src
mkdir build
cd build
+sed -i -e "s|/bin/pwd|pwd|g" ../src/configure
../src/configure -prefix $out $configure_flags
cmake --build . --parallel --verbose
cmake --install .
However, it failed to run under wine:
$ nix-shell -p wine --run "wine /nix/store/i7phvykdba758fbcla9a8v8hw622n7an-qt-examples-6.4.1-i686-w64-mingw32/bin/mainwindow.exe"
0024:err:module:import_dll Library api-ms-win-core-winrt-l1-1-0.dll (which is needed by L"Z:\\nix\\store\\i7phvykdba758fbcla9a8v8hw622n7an-qt-examples-6.4.1-i686-w64-mingw32\\bin\\mainwindow.exe") not found
0024:err:module:import_dll Library api-ms-win-core-winrt-string-l1-1-0.dll (which is needed by L"Z:\\nix\\store\\i7phvykdba758fbcla9a8v8hw622n7an-qt-examples-6.4.1-i686-w64-mingw32\\bin\\mainwindow.exe") not found
0024:err:module:import_dll Library api-ms-win-core-synch-l1-2-0.dll (which is needed by L"Z:\\nix\\store\\i7phvykdba758fbcla9a8v8hw622n7an-qt-examples-6.4.1-i686-w64-mingw32\\bin\\mainwindow.exe") not found
0024:err:module:LdrInitializeThunk Importing dlls for L"Z:\\nix\\store\\i7phvykdba758fbcla9a8v8hw622n7an-qt-examples-6.4.1-i686-w64-mingw32\\bin\\mainwindow.exe" failed, status c0000135
nix-build -A win32.qt.examples
(qt5) worked though. This is very cool!
I'm glad you like it! The /bin/pwd thing is now fixed in commit 20c54c9. I don't know much about Wine so I'm not sure what's going on there.
Thanks!
The current mirror has only 5.15.x sources, not 5.12.x, so the download fails.
I tried using this patch:
(Notice how the hash changes -- ugh. I don't have the original tarball to compare.)
But then there is a new error:
Is my new tarball URL bad?