Compare commits

..

No commits in common. "1442f09d6b49169d45fe7678da90c6860c704a07" and "3b65ac6f9a61fc7aa85f596ece1a560d37645f0b" have entirely different histories.

View File

@ -9,7 +9,7 @@ my @skipped_modules = qw(
qtpositioning qtremoteobjects qtscxml qtsensors qtserialbus qtserialport
qtsvg qttranslations qtvirtualkeyboard qtwayland qtwebchannel qtwebengine
qtwebsockets qtwebview qtquickeffectmaker qtquicktimeline qtquick3d
qtquick3dphysics qtgraphs qtmultimedia qtdeclarative qtlanguageserver qtshadertools qttools
qtquick3dphysics qtgraphs
);
# Subroutine to check if a command exists in PATH
@ -58,16 +58,11 @@ if (!command_exists('cmake')) {
}
my $build_dir = "qt6-build";
my $install_dir = "/usr/local/Qt-6.8.1";
if (-d $build_dir) {
die "Error: $build_dir already exists from the previous build\n";
}
if (-d $install_dir) {
die "Error: $install_dir already exists from the previous build\n";
}
mkdir $build_dir or die "Error: Unable to create directory '$build_dir'.\n";
chdir $build_dir or die "Error: Unable to change directory to '$build_dir'.\n";
@ -76,13 +71,7 @@ my $skip_modules_string = join(' ', map { "-skip $_" } @skipped_modules);
# Configure the build
print "Configuring the build...\n";
my $build_archs = "-DCMAKE_OSX_ARCHITECTURES=\"x86_64;arm64\"";
# NOTE: if $build_archs is empty, Qt is defaults to x86_64 on an arm64 machine, which is not what described in the docs:
# https://doc.qt.io/qt-6/macos-building.html
my $build_etc = "-DBUILD_TESTING=OFF";
run_command("../configure $skip_modules_string -no-framework -- $build_archs $build_etc");
run_command("../configure $skip_modules_string -- -DCMAKE_OSX_ARCHITECTURES=\"x86_64;arm64\"");
# Build Qt6
print "Building Qt6...\n";