- Install homebrew from https://brew.sh/ (follow the instructions there)
- tap the https://invent.kde.org/packaging/homebrew-kde/ repo,
brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git
brew edit okular
, workaround now is to comment out or delete the linedepends_on "chmlib"
(won't compile on macos arm64 for now as of 2021-08-18), then save (if using vim you need to first pressi
to insert/type, when saving then<esc>
then:wq
then<enter>
.brew install okular
, wait for stuff to compile and/or install- It may ask for keychain credentials (to sign the binaries? because of mac arm64 security policy https://eclecticlight.co/2021/01/26/when-you-dont-have-permission-to-run-an-app-on-an-m1-mac/)
$(brew --repo kde-mac/kde)/tools/do-caveats.sh
- Now okular is in your
$HOME/Applications/KDE
folder, and will show up in Launchpad! You can view pdf, djvu, etc documents.
-
-
Save 7468696e6b/ec8fa5d6cdb4e80633b9df95869b70c0 to your computer and use it in GitHub Desktop.
Could you provide more detailed instructions on how I can use it?
I guess that one can introduce QCA before qt6 by the followings:
-
cd /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/q
(It depends on your environment.) -
git log --oneline qca.rb
-
We will use 7b85965596e qca: update 2.3.7 bottle.
-
So, git checkout 7b85965596e qca.rb
-
brew install qca.rb and it's done.
By the way, kf5-kwallet (or kf5-kconfigwidgets, ki18n, kdoctools and so on) cannot be introduced after the update. They urged to use HEAD repository. I don't know what to do with it. The messages are as follows:
Installing in /opt/homebrew/Cellar/kf5-kconfigwidgets/5.111.0. Run /tmp/kf5-kconfigwidgets-20240301-71318-dufw2s/kconfigwidgets-5.111.0/build/prefix.sh to set the environment for KConfigWidgets.
-- Looking for GLIBC
-- Looking for GLIBC - not found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Performing Test BSYMBOLICFUNCTIONS_AVAILABLE
-- Performing Test BSYMBOLICFUNCTIONS_AVAILABLE - Failed
-- Could not set up the appstream test. appstreamcli is missing.
CMake Warning at CMakeLists.txt:54 (find_package):
By not providing "FindKF5DocTools.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"KF5DocTools", but CMake did not find one.
Could not find a package configuration file provided by "KF5DocTools"
(requested version 5.111.0) with any of the following names:
KF5DocToolsConfig.cmake
kf5doctools-config.cmake
Add the installation prefix of "KF5DocTools" to CMAKE_PREFIX_PATH or set
"KF5DocTools_DIR" to a directory containing one of the above files. If
"KF5DocTools" provides a separate development package or SDK, be sure it
has been installed.
CMake Error at CMakeLists.txt:56 (find_package):
By not providing "FindKF5I18n.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "KF5I18n", but
CMake did not find one.
Could not find a package configuration file provided by "KF5I18n"
(requested version 5.111.0) with any of the following names:
KF5I18nConfig.cmake
kf5i18n-config.cmake
Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set
"KF5I18n_DIR" to a directory containing one of the above files. If
"KF5I18n" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
HOMEBREW_VERSION: 4.2.10-75-g99baaf3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 99baaf350d30075480597b901a6c73bad9e56bf4
Last commit: 3 hours ago
Core tap HEAD: b4f3ba0ad644069acb51a7adc02d26fd45e148a7
Core tap last commit: 6 hours ago
Core tap JSON: 01 Mar 08:10 UTC
Core cask tap JSON: 01 Mar 08:11 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.bBk4Fb3U0f/org.xquartz:0
HOMEBREW_EDITOR: /opt/homebrew/bin/gedit
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_BOOTSNAP: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.5-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.2
Rosetta 2: false
I am getting these issues too.
By not providing "FindKF5I18n.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "KF5I18n", but
CMake did not find one.
Could not find a package configuration file provided by "KF5I18n"
(requested version 5.111.0) with any of the following names:
KF5I18nConfig.cmake
kf5i18n-config.cmake
Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set
"KF5I18n_DIR" to a directory containing one of the above files. If
"KF5I18n" provides a separate development package or SDK, be sure it has
been installed.
You guys having trouble tried installing without building? getting the pre built binaries? like in
brew install --cask okular
The cask option didn't work for me.
not working for me either.
I did many things to try and work this through. KF5I18n package seems to not be found when trying to install Okular... Like KF5I18n uses KF5, but the KF5I18n package in homebrew actually installs KF6I18n, which is Version 6.0.0 and I have a feeling that makes it harder to find when looking for the dependency while building with homebrew.
Could not find a package configuration file provided by "KF5I18n"
(requested version 5.111.0) with any of the following names:
KF5I18nConfig.cmake
kf5i18n-config.cmake
Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set
"KF5I18n_DIR" to a directory containing one of the above files. If
"KF5I18n" provides a separate development package or SDK, be sure it has
been installed.
Could not find a package configuration file provided by "KF5I18n" (requested version 5.111.0) with any of the following names:
KF5I18nConfig.cmake kf5i18n-config.cmake
Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set "KF5I18n_DIR" to a directory containing one of the above files. If "KF5I18n" provides a separate development package or SDK, be sure it has been installed.
I'm getting this exact same error, including:
Warning: Unable to query GitHub for recent issues on the tap
Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}]
I have the same error with "KF5I18n". Unable to install at this time.
Exactly the same error:
Could not find a package configuration file provided by "KF5I18n"
(requested version 5.111.0) with any of the following names:
KF5I18nConfig.cmake
kf5i18n-config.cmake
Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set "KF5I18n_DIR" to a directory containing one of the above files. If "KF5I18n" provides a separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
Im having the same issue with KF5I18n, did anyone manage to figure that out?
thanks!
+1 on the same error with KF5I18n.
I think the only real way I’ve been able to install Okular on Mac was from precompiled binary located at this link:
Under “Nightly Installers”
Thank you, I did try searching for the precompiled binary, wasn't easy to find, the link works :)
This method works for me, but here was an error "okular" can’t be opened because Apple cannot check it for malicious software
. Which I had to override.
I’m probably going to make a nix derivation for it sometime.
so I can install on mac too.
I’m probably going to make a nix derivation for it sometime. so I can install on mac too.
installs on macbook and works so far
But I cannot print PDF files...
I downgraded followings.
$ brew doctor
Uncommitted files:
M Formula/k/karchive.rb
M Formula/k/kdoctools.rb
M Formula/k/ki18n.rb
M Formula/q/qca.rb
M Formula/t/threadweaver.rb
karchive 5.111.0
kdoctools 5.111.0
ki18n 5.115.0
qca 2.3.7
threadweaver 5.115.0
kf5-kactivities.rb 5.111.0
kf5-kbookmarks.rb 5.102.0
kf5-kconfigwidgets.rb 5.102.0
kf5-khtml.rb 5.102.0
kf5-kio.rb 5.102.0
kf5-knotifications.rb 5.111.0
kf5-kparts.rb 5.102.0
kf5-kwallet.rb 5.102.0
kf5-kxmlgui.rb 5.102.0
Then, I could install okular 23.08.2. But the print preview is too small and I cannot print PDF files...
Is there someone help me?
Could you provide more detailed instructions on how I can use it?