updating rkward craft script

meik michalke meik.michalke at uni-duesseldorf.de
Mon May 22 19:37:21 UTC 2017


hi,

Am Samstag, 20. Mai 2017, 22:31:04 CEST schrieb Thomas Friedrichsmeier:
> Craft works for Windows, now, and the most obvious bugs are fixed.

i still have no luck on mac, because kdewebkit won't build:

<build>
*** Handling package: kdewebkit, action: all ***
*** Action: fetch for frameworks/tier3/kdewebkit ***
Cloning into '.'...
remote: Counting objects: 548, done.
remote: Compressing objects: 100% (284/284), done.
remote: Total 548 (delta 308), reused 462 (delta 261)
Receiving objects: 100% (548/548), 110.23 KiB | 0 bytes/s, done.
Resolving deltas: 100% (308/308), done.
Already on 'master'
Your branch is up-to-date with 'origin/master'.
*** Action: unpack for frameworks/tier3/kdewebkit ***
*** Action: compile for frameworks/tier3/kdewebkit ***
*** cmake -G "Ninja"  -DCMAKE_INSTALL_PREFIX="/Users/rkward/software/kf5" -
DCMAKE_PREFIX_PATH="/Users/rkward/software/kf5" -
DCMAKE_BUILD_TYPE=RelWithDebInfo -DKDE_INSTALL_BUNDLEDIR="/Users/rkward/
software/kf5/Applications/KDE" -DAPPLE_SUPPRESS_X11_WARNING=ON "/Users/rkward/
software/kf5/download/git/kdewebkit" ***
-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/
Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/
Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/
Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/
Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--

CMake Error at /Users/rkward/Qt5.6/5.6/clang_64/lib/cmake/Qt5/Qt5Config.cmake:
26 (find_package):
  Could not find a package configuration file provided by "Qt5WebKitWidgets"
  with any of the following names:

    Qt5WebKitWidgetsConfig.cmake
    qt5webkitwidgets-config.cmake

  Add the installation prefix of "Qt5WebKitWidgets" to CMAKE_PREFIX_PATH or
  set "Qt5WebKitWidgets_DIR" to a directory containing one of the above
  files.  If "Qt5WebKitWidgets" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/rkward/software/kf5/build/frameworks/kdewebkit/work/mingw-
w64-RelWithDebInfo-master/CMakeFiles/CMakeOutput.log".
Craft encountered an error: configure cmd: cmake -G "Ninja"  -
DCMAKE_INSTALL_PREFIX="/Users/rkward/software/kf5" -DCMAKE_PREFIX_PATH="/
Users/rkward/software/kf5" -DCMAKE_BUILD_TYPE=RelWithDebInfo -
DKDE_INSTALL_BUNDLEDIR="/Users/rkward/software/kf5/Applications/KDE" -
DAPPLE_SUPPRESS_X11_WARNING=ON "/Users/rkward/software/kf5/download/git/
kdewebkit"
Action: compile for frameworks/tier3/kdewebkit FAILED
*** Craft all failed: all of frameworks/kdewebkit failed after 0:00:03 ***
fatal error: package frameworks/kdewebkit all failed
</build>

if you want to toy around with it, i've added the full build instructions for 
macOS below -- they're also much shorter now.

> I hope to be able to provide an installer for testing, soon. At
> either rate, building on Windows has become _much_ easier than last
> time around. Once you've set up Craft
> (https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows),
> craft rkward
> should be all you need, and - importantly - can be expected to "just
> work" as it seems. (Try building MinGW-64bit, and thanks to cached
> binaries for most libraries, the whole installation may complete within
> an hour or so).

i hope i can say that for mac as well soon ;-)

> BTW, I also improved on the backend shutdown routine, this morning. Let
> me know whether this fixes the crashes on close you've been seeing.

looks good so far!


viele grüße :: m.eik


<mac>
# install Xcode (>= 7.3)
# install Qt (5.6)
# 
# install homebrew & dependencies
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/
install/master/install)"
# turn off analytics...
brew analytics off
brew install cmake wget coreutils p7zip gettext ninja python3 cmake ninja 
p7zip bison boost shared-mime-info

mkdir -p ~/software/kf5
cd ~/software/kf5

# adjust git hosts
echo "[url \"https://anongit.kde.org/\"]
insteadOf = kde:    
[url \"git at git.kde.org:\"]
pushInsteadOf = kde:
" >> ~/.gitconfig

# get craft
git clone git://anongit.kde.org/craft.git
mkdir etc
cp craft/kdesettings.mac etc/kdesettings.ini

# some extra environment variables
echo "
export CMAKE_LIBRARY_PATH=/usr/local/Cellar/gettext/0.19.8.1/lib
export CMAKE_INCLUDE_PATH=/usr/local/Cellar/gettext/0.19.8.1/include
PATH=\"/Users/rkward/Qt5.6/5.6/clang_64/bin:/usr/local/Cellar/gettext/
0.19.8.1/bin:/usr/local/Cellar/bison/3.0.4/bin:\${PATH}\"
export PATH" >> ~/.bash_profile
. ~/.bash_profile

. craft/kdeenv.sh

craft --target 17.04.0 kate
</mac>
-- 
  dipl. psych. meik michalke
  institut f"ur experimentelle psychologie
  abt. f"ur diagnostik und differentielle psychologie
  heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20170522/33d8b84b/attachment.sig>


More information about the rkward-devel mailing list