Skip to content

Commit fe95fd3

Browse files
KorigamiKclaude
andcommitted
Fix Qt component discovery by passing QT_ADDITIONAL_PACKAGES_PREFIX_PATH
Qt6Config.cmake hardcodes NO_DEFAULT_PATH when finding Qt components, so CMAKE_PREFIX_PATH is completely ignored. It only searches its own cmake dir (from qtbase) and QT_ADDITIONAL_PACKAGES_PREFIX_PATH. Pass the same Homebrew prefix list as QT_ADDITIONAL_PACKAGES_PREFIX_PATH so Qt's config machinery can locate qtdeclarative, qtsvg, qtmultimedia, qtspeech, etc. Build verified locally on arm64. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 461d03c commit fe95fd3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build_mac.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ rm -rf "$package_dir" "$build_dir/sioyek.app" "$build_dir/sioyek.dmg"
5757

5858
"$CMAKE" -S . -B "$build_dir" \
5959
-DCMAKE_BUILD_TYPE=Release \
60-
-DCMAKE_PREFIX_PATH="$cmake_prefix_path"
60+
-DCMAKE_PREFIX_PATH="$cmake_prefix_path" \
61+
-DQT_ADDITIONAL_PACKAGES_PREFIX_PATH="$cmake_prefix_path"
6162

6263
"$CMAKE" --build "$build_dir" --parallel "$MAKE_PARALLEL"
6364
"$CMAKE" --install "$build_dir" --prefix "$package_dir"

0 commit comments

Comments
 (0)