seanhoughton wrote: I'm finally back in action on macos and I've got the official mainline kstars building - but the resources aren't copied into the data folder as part of the build so they don't get copied to the Application Support folder on application start. Is this expected to run without a packaging or install build?
Also, are you guys keeping a forked git repo or branch with all of the OSX work you've done? It's getting difficult to keep track of the progress in this gigantic thread
seanhoughton wrote: I'm finally back in action on macos and I've got the official mainline kstars building - but the resources aren't copied into the data folder as part of the build so they don't get copied to the Application Support folder on application start. Is this expected to run without a packaging or install build?
Also, are you guys keeping a forked git repo or branch with all of the OSX work you've done? It's getting difficult to keep track of the progress in this gigantic thread
rlancaste wrote: If I am not mistaken, this is all that I needed to do:
(note, I did run into 3 problems, I had to first change my prefix path because I am not Stephane Lucas, I had to get rid of my old extra cmake modules and link the extra cmake modules because I had installed them from source. My fault. And then I also had to change the order of the installs because of kf5-auth and notifications, which I attempted to correct below.)
brew tap haraldf/kf5
cd /usr/local/Homebrew/Library/Taps/haraldf/homebrew-kf5
sed -i '.bak' 's/*args/"-DCMAKE_PREFIX_PATH=\/Users\/rlancaste\/Qt\/5.7\/clang_64\/", *args/g' *.rb
sed -i '.bak' '/depends_on "qt5"/,/^/d' *.rb
brew link --force gettext
brew install haraldf/kf5/kf5-kauth
brew install haraldf/kf5/kf5-knotifications
brew install haraldf/kf5/kf5-kplotting
brew install haraldf/kf5/kf5-kxmlgui
brew install haraldf/kf5/kf5-knewstuff
brew install haraldf/kf5/kf5-kdoctools
brew install haraldf/kf5/kf5-kcrash
cd ~/projects/kstars-on-osx
git pull
./build-kstars.sh -3aci
brew install haraldf/kf5/kf5-kauth
==> Installing kf5-kauth from haraldf/kf5
==> Downloading http://download.kde.org/stable/frameworks/5.25/kauth-5.25.0.tar.xz
Already downloaded: /Users/jamie/Library/Caches/Homebrew/kf5-kauth-5.25.0.tar.xz
==> cmake . -DCMAKE_PREFIX_PATH=/Users/jamie/Qt5.7.0/5.7/clang_64/ -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL
Last 15 lines from /Users/jamie/Library/Logs/Homebrew/kf5-kauth/01.cmake:
Could not find a package configuration file provided by "KF5CoreAddons"
(requested version 5.25.0) with any of the following names:
KF5CoreAddonsConfig.cmake
kf5coreaddons-config.cmake
Add the installation prefix of "KF5CoreAddons" to CMAKE_PREFIX_PATH or set
"KF5CoreAddons_DIR" to a directory containing one of the above files. If
"KF5CoreAddons" provides a separate development package or SDK, be sure it
has been installed.
-- Configuring incomplete, errors occurred!
See also "/tmp/kf5-kauth-20161121-1328-cdgkfx/kauth-5.25.0/CMakeFiles/CMakeOutput.log".
See also "/tmp/kf5-kauth-20161121-1328-cdgkfx/kauth-5.25.0/CMakeFiles/CMakeError.log".
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/haraldf/homebrew-kf5/issues
These open issues may also help:
failed to build kf5-kconfigwidgets, missing /usr/local/lib/libexec/kauth/kauth-policy-gen.app/Contents/MacOS/kauth-policy-gen https://github.com/haraldF/homebrew-kf5/issues/34
jamiesmithnc wrote:
rlancaste wrote: If I am not mistaken, this is all that I needed to do:
(note, I did run into 3 problems, I had to first change my prefix path because I am not Stephane Lucas, I had to get rid of my old extra cmake modules and link the extra cmake modules because I had installed them from source. My fault. And then I also had to change the order of the installs because of kf5-auth and notifications, which I attempted to correct below.)
brew tap haraldf/kf5
cd /usr/local/Homebrew/Library/Taps/haraldf/homebrew-kf5
sed -i '.bak' 's/*args/"-DCMAKE_PREFIX_PATH=\/Users\/rlancaste\/Qt\/5.7\/clang_64\/", *args/g' *.rb
sed -i '.bak' '/depends_on "qt5"/,/^/d' *.rb
brew link --force gettext
brew install haraldf/kf5/kf5-kauth
brew install haraldf/kf5/kf5-knotifications
brew install haraldf/kf5/kf5-kplotting
brew install haraldf/kf5/kf5-kxmlgui
brew install haraldf/kf5/kf5-knewstuff
brew install haraldf/kf5/kf5-kdoctools
brew install haraldf/kf5/kf5-kcrash
cd ~/projects/kstars-on-osx
git pull
./build-kstars.sh -3aci
I did the equivalent of the above sed commands, but something didn't work for me -brew install haraldf/kf5/kf5-kauth ==> Installing kf5-kauth from haraldf/kf5 ==> Downloading http://download.kde.org/stable/frameworks/5.25/kauth-5.25.0.tar.xz Already downloaded: /Users/jamie/Library/Caches/Homebrew/kf5-kauth-5.25.0.tar.xz ==> cmake . -DCMAKE_PREFIX_PATH=/Users/jamie/Qt5.7.0/5.7/clang_64/ -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL Last 15 lines from /Users/jamie/Library/Logs/Homebrew/kf5-kauth/01.cmake: Could not find a package configuration file provided by "KF5CoreAddons" (requested version 5.25.0) with any of the following names: KF5CoreAddonsConfig.cmake kf5coreaddons-config.cmake Add the installation prefix of "KF5CoreAddons" to CMAKE_PREFIX_PATH or set "KF5CoreAddons_DIR" to a directory containing one of the above files. If "KF5CoreAddons" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/tmp/kf5-kauth-20161121-1328-cdgkfx/kauth-5.25.0/CMakeFiles/CMakeOutput.log". See also "/tmp/kf5-kauth-20161121-1328-cdgkfx/kauth-5.25.0/CMakeFiles/CMakeError.log". If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/haraldf/homebrew-kf5/issues These open issues may also help: failed to build kf5-kconfigwidgets, missing /usr/local/lib/libexec/kauth/kauth-policy-gen.app/Contents/MacOS/kauth-policy-gen https://github.com/haraldF/homebrew-kf5/issues/34
How did you get past that? Did you see that?
EDIT- I think I got it -
brew install haraldf/kf5/kf5-kcoreaddons
brew link --overwrite kf5-kcoreaddons
Last 15 lines from /Users/jamie/Library/Logs/Homebrew/kf5-kconfigwidgets/01.cmake:
CMake Error at CMakeLists.txt:13 (find_package):
Could not find a package configuration file provided by "Qt5" (requested
version 5.5.0) with any of the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
See also "/tmp/kf5-kconfigwidgets-20161121-51114-wfcr4e/kconfigwidgets-5.25.0/CMakeFiles/CMakeOutput.log".
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/haraldf/homebrew-kf5/issues
These open issues may also help:
failed to build kf5-kconfigwidgets, missing /usr/local/lib/libexec/kauth/kauth-policy-gen.app/Contents/MacOS/kauth-policy-gen https://github.com/haraldF/homebrew-kf5/issues/34
jamiesmithnc wrote: Well, the install of the kf5 stuff simply didn't work for me. pretty much all of the installs failed.
I keep getting things like this:Last 15 lines from /Users/jamie/Library/Logs/Homebrew/kf5-kconfigwidgets/01.cmake: CMake Error at CMakeLists.txt:13 (find_package): Could not find a package configuration file provided by "Qt5" (requested version 5.5.0) with any of the following names: Qt5Config.cmake qt5-config.cmake Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR" to a directory containing one of the above files. If "Qt5" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/tmp/kf5-kconfigwidgets-20161121-51114-wfcr4e/kconfigwidgets-5.25.0/CMakeFiles/CMakeOutput.log". If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/haraldf/homebrew-kf5/issues These open issues may also help: failed to build kf5-kconfigwidgets, missing /usr/local/lib/libexec/kauth/kauth-policy-gen.app/Contents/MacOS/kauth-policy-gen https://github.com/haraldF/homebrew-kf5/issues/34
When you both installed qt did you use the online or offline installer? I am wondering if they are actually doing something different.
Gonzothegreat wrote: Have you done the following too?
brew tap haraldf/kf5
cd /usr/local/Homebrew/Library/Taps/haraldf/homebrew-kf5
sed -i '.bak' 's/*args/"-DCMAKE_PREFIX_PATH=\/Users\/rlancaste\/Qt\/5.7\/clang_64\/", *args/g' *.rb
sed -i '.bak' '/depends_on "qt5"/,/^/d' *.rb
brew link --force gettext
change rlancaste with your username, and the right path to Qt5
substitute=$Qt5_DIR/
echo $substitute
count=$(cat *.rb | grep -c CMAKE_PREFIX_PATH)
if [ $count -le 1 ]
then
echo "Hacking kf5 Files"
sed -i '' "s@*args@\"-DCMAKE_PREFIX_PATH=${substitute}\", *args@g" *.rb
sed -i '' '/depends_on "qt5"/,/^/d' *.rb
else
echo "kf5 Files already hacked, skipping"
fi
require "formula"
class Kf5Kauth < Formula
url "http://download.kde.org/stable/frameworks/5.25/kauth-5.25.0.tar.xz"
sha256 "1d62b32d88ba6c1e71e7b3ef67366710b9ce4488bcf82280fbe70d79b52f963a"
homepage "http://www.kde.org/"
head 'git://anongit.kde.org/kauth.git'
depends_on "cmake" => :build
depends_on "haraldf/kf5/kf5-extra-cmake-modules" => :build
def install
args = std_cmake_args
system "cmake", ".", "-DCMAKE_PREFIX_PATH=/Users/jamie/Qt5.7.0/5.7/clang_64/bin/", *args
system "make", "install"
prefix.install "install_manifest.txt"
mkdir_p "#{HOMEBREW_PREFIX}/lib/kde5/libexec"
ln_sf "#{lib}/kde5/libexec/kauth-policy-gen.app", "#{HOMEBREW_PREFIX}/lib/kde5/libexec/"
end
end
==> Installing kf5-kauth from haraldf/kf5
==> Installing dependencies for haraldf/kf5/kf5-kauth: haraldf/kf5/kf5-extra-cmake-modules
==> Installing haraldf/kf5/kf5-kauth dependency: haraldf/kf5/kf5-extra-cmake-modules
==> Downloading http://download.kde.org/stable/frameworks/5.25/extra-cmake-modules-5.25.0.tar.xz
==> Downloading from http://ftp.ussg.iu.edu/kde/stable/frameworks/5.25/extra-cmake-modules-5.25.0.tar.xz
######################################################################## 100.0%
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/kf5-extra-cmake-modules/5.25.
==> make install
? /usr/local/Cellar/kf5-extra-cmake-modules/5.25.0: 52 files, 271K, built in 6 seconds
==> Installing haraldf/kf5/kf5-kauth
==> Downloading http://download.kde.org/stable/frameworks/5.25/kauth-5.25.0.tar.xz
==> Downloading from http://mirror.cc.columbia.edu/pub/software/kde/stable/frameworks/5.25/kauth-5.25.0.tar.xz
######################################################################## 100.0%
==> cmake . -DCMAKE_PREFIX_PATH=/Users/jamie/Qt5.7.0/5.7/clang_64/bin/ -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INS
Last 15 lines from /Users/jamie/Library/Logs/Homebrew/kf5-kauth/01.cmake:
CMake Error at CMakeLists.txt:13 (find_package):
Could not find a package configuration file provided by "Qt5" (requested
version 5.5.0) with any of the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
See also "/tmp/kf5-kauth-20161121-5664-mk5229/kauth-5.25.0/CMakeFiles/CMakeOutput.log".
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/haraldf/homebrew-kf5/issues
These open issues may also help:
failed to build kf5-kconfigwidgets, missing /usr/local/lib/libexec/kauth/kauth-policy-gen.app/Contents/MacOS/kauth-policy-gen https://github.com/haraldF/homebrew-kf5/issues/34
ls -1 /Users/jamie/Qt5.7.0/5.7/clang_64/bin
Assistant.app
Designer.app
Linguist.app
canbusutil
fixqt4headers.pl
lconvert
licheck_mac
lrelease
lupdate
macchangeqt
macdeployqt
moc
pixeltool.app
qcollectiongenerator
qdbus
qdbuscpp2xml
qdbusviewer.app
qdbusxml2cpp
qdoc
qgltf
qhelpconverter
qhelpgenerator
qlalr
qmake
qml.app
qmleasing
qmlimportscanner
qmllint
qmlmin
qmlplugindump
qmlprofiler
qmlscene
qmltestrunner
qscxmlc
qt.conf
qtdiag
qtpaths
qtplugininfo
rcc
syncqt.pl
uic
xmlpatterns
xmlpatternsvalidator
find ~/Qt* -name Qt5Config.cmake