[KDE/Mac] Compile & App Bundle Creation
Christoph Cullmann
cullmann at absint.com
Fri Jun 24 16:49:30 UTC 2016
Hi,
> hi,
>
> Am Dienstag, 14. Juni 2016, 21:33:56 schrieb Christoph Cullmann:
>> https://community.kde.org/Mac#Building_KDE_Frameworks_based_software_on_Mac_
>> OS_X
>
> this was moved here, right?
> https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Mac
yes, to be more uniform with win/linux guides.
>
>> Perhaps somebody could try that out if it is really working or just for me
>> on my Mac (which might have by accident more stuff installed).
>
> i gave it a try in a rather pristine mavericks VM. it almost worked, but the
> build eventually fails at an early stage. here's some first comments and
> questions:
>
> you should add something like
>
> echo "[url \"git://anongit.kde.org/\"]
> insteadOf = kde:
> [url \"git at git.kde.org:\"]
> pushInsteadOf = kde:
> " >> ~/.gitconfig
>
> to get git to work (or replace the "kde:" shortcuts in the instructions with
> the actual URLs).
Thats true, we can add that hint.
>
> i was a bit suprised to be presented with "Python = C:\ProgramFiles\Python"
> when i ran emerge/kdeenv.sh, this is obviously a windows path. i then diffed
> emerge/kdesettings.ini and emerge/kdesettings.mac and there's only a handful
> of changes between the both. if that is still ok and the python path is
> effectively irrelevant, a note on that would be helpful.
I think that will be fixed later in emerge.
>
> with "emerge kate", i ran into the following warnings and errors after a
> while:
>
> <log>
> [36/196] Building CXX object
> src/lib/CMakeFiles/KF5CoreAddons.dir/caching/kshareddatacache.cpp.o
> FAILED: src/lib/CMakeFiles/KF5CoreAddons.dir/caching/kshareddatacache.cpp.o
> /Library/Developer/CommandLineTools/usr/bin/c++ -DKF5CoreAddons_EXPORTS -
> DQT_CORE_LIB -DQT_MAC_USE_COCOA -DQT_NO_CAST_FROM_ASCII -
> DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -
> DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -
> DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -D_DARWIN_C_SOURCE -
> D_LARGEFILE64_SOURCE -Isrc/lib -
> I/Users/rkward/software/kf5/download/git/kcoreaddons/src/lib -Isrc/lib/../.. -
> I/Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching -
> Isrc/lib/io -I/Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/io -
> I/Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/jobs -
> I/Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/plugin -
> I/Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/randomness -
> I/Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/text -
> I/Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/util -iframework
> /Users/rkward/Qt5.7.0/5.7/clang_64/lib -isystem
> /Users/rkward/Qt5.7.0/5.7/clang_64/lib/QtCore.framework/Headers -isystem
> /Users/rkward/Qt5.7.0/5.7/clang_64/./mkspecs/macx-clang -std=c++0x -Wall -
> Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -
> Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-
> type -pedantic -Wno-gnu-zero-variadic-macro-arguments -fexceptions -O2 -g -
> DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -
> std=gnu++11 -fexceptions -MMD -MT
> src/lib/CMakeFiles/KF5CoreAddons.dir/caching/kshareddatacache.cpp.o -MF
> src/lib/CMakeFiles/KF5CoreAddons.dir/caching/kshareddatacache.cpp.o.d -o
> src/lib/CMakeFiles/KF5CoreAddons.dir/caching/kshareddatacache.cpp.o -c
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache.cpp
> In file included from
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache.cpp:25:
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:44:2:
> warning: #warning is a language extension [-Wpedantic]
> #warning "No support for POSIX timeouts -- application hangs are possible if
> the cache is corrupt"
> ^
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:44:2:
> warning: "No support for POSIX timeouts -- application hangs are possible if
> the cache is corrupt" [-W#warnings]
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:58:2:
> warning: #warning is a language extension [-Wpedantic]
> #warning "No system support claimed for process-shared synchronization,
> KSharedDataCache will be mostly useless."
> ^
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:58:2:
> warning: "No system support claimed for process-shared synchronization,
> KSharedDataCache will be mostly useless." [-W#warnings]
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:163:47:
> warning: unknown attribute 'artificial' ignored [-Wattributes]
> __attribute__((always_inline, gnu_inline, artificial))
> ^
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:477:2:
> warning: #warning is a language extension [-Wpedantic]
> #warning "This system does not seem to support posix_fallocate, which is
> needed to ensure KSharedDataCache's underlying files are fully committed to
> disk to avoid crashes with low disk space."
> ^
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:477:2:
> warning: "This system does not seem to support posix_fallocate, which is
> needed to ensure KSharedDataCache's underlying files are fully committed to
> disk to avoid crashes with low disk space." [-W#warnings]
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:479:15:
> error: use of undeclared identifier 'KCOREADDONS_DEBUG'
> qCWarning(KCOREADDONS_DEBUG) << "This system misses support for
> posix_fallocate()"
> ^
> /Users/rkward/software/kf5/download/git/kcoreaddons/src/lib/caching/kshareddatacache_p.h:457:37:
> warning: unused parameter 'fd' [-Wunused-parameter]
> static bool ensureFileAllocated(int fd, size_t fileSize)
> ^
> 8 warnings and 1 error generated.
> [38/196] Building CXX object
> src/lib/CMakeFiles/KF5CoreAddons.dir/util/kuser_unix.cpp.o
> ninja: build stopped: subcommand failed.
> emerge warning: while running make cmd: ninja
> emerge warning: Action: compile for frameworks/tier1/kcoreaddons FAILED
> *** Emerge all failed: all of frameworks/kcoreaddons failed after 0:00:27 ***
> emerge error: fatal error: package frameworks/kcoreaddons all failed
> </log>
>
>
> during configuration i get this warning:
>
> <log>
> CMake Warning (dev):
> Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
> --help-policy CMP0042" for policy details. Use the cmake_policy command to
> set the policy and suppress this warning.
>
> MACOSX_RPATH is not specified for the following targets:
>
> KF5CoreAddons
>
> This warning is for project developers. Use -Wno-dev to suppress it.
> </log>
>
> is this related? is there something i could try to fix this?
Hmm, the RPATH warning should not kill the build, but the fatal in kcoreaddons is strange,
given it compiles here :/
Will try to reproduce this!
Thanks for the report and try of the howto!
If you have any additional comments, feel free to enhance the wiki page!
>
>
> viele grüße :: m.eik
>
> --
> dipl. psych. meik michalke
> institut f"ur experimentelle psychologie
> abt. f"ur diagnostik und differentielle psychologie
> heinrich-heine-universit"at d-40204 d"usseldorf
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://community.kde.org/Mac
--
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH Email: cullmann at AbsInt.com
Science Park 1 Tel: +49-681-38360-22
66123 Saarbrücken Fax: +49-681-38360-20
GERMANY WWW: http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
More information about the kde-mac
mailing list