oyranos-cms / oyranos

Colour Management System
https://gitlab.com/oyranos/oyranos
Other
19 stars 6 forks source link

Unable to build on Arch #65

Open arifzeeshan opened 2 years ago

arifzeeshan commented 2 years ago

I'm unable to build on Arch Linux. Using the Aur version

` -- Generating done -- Build files have been written to: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6 Consolidate compiler generated dependencies of target openicc-static [ 2%] Built target openicc-static [ 2%] Extract translatable messages to /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/po/oyranos.pot [ 3%] Generating cs.gmo ............................................................................................................... done. 576 translated messages, 209 fuzzy translations, 158 untranslated messages. [ 3%] Generating de.gmo ......................................................................................................... done. 888 translated messages, 3 fuzzy translations, 52 untranslated messages. [ 3%] Generating eo.gmo ........................................................................................................ done. 32 translated messages, 86 fuzzy translations, 825 untranslated messages. [ 3%] Generating eu.gmo ...................................................................................................... done. 146 translated messages, 323 fuzzy translations, 474 untranslated messages. [ 4%] Generating fr.gmo ............................................................................................................... done. 71 translated messages, 285 fuzzy translations, 587 untranslated messages. [ 4%] Generating ru.gmo ................................................................................................................ done. 12 translated messages, 3 fuzzy translations, 928 untranslated messages. [ 4%] Built target translations_1 Consolidate compiler generated dependencies of target OyranosCore [ 6%] Built target OyranosCore Consolidate compiler generated dependencies of target oyranos_core-static [ 8%] Built target oyranos_core-static Consolidate compiler generated dependencies of target OyranosObject [ 15%] Built target OyranosObject Consolidate compiler generated dependencies of target oyranos_object-static [ 21%] Built target oyranos_object-static Consolidate compiler generated dependencies of target OyranosModules [ 34%] Built target OyranosModules Consolidate compiler generated dependencies of target oyranos_modules-static [ 46%] Built target oyranos_modules-static Consolidate compiler generated dependencies of target OyranosConfig [ 52%] Built target OyranosConfig Consolidate compiler generated dependencies of target oyranos_config-static [ 58%] Built target oyranos_config-static Consolidate compiler generated dependencies of target Oyranos [ 62%] Built target Oyranos Consolidate compiler generated dependencies of target oyranos-static [ 67%] Built target oyranos-static Consolidate compiler generated dependencies of target oyranos_lcms_cmm_module [ 67%] Built target oyranos_lcms_cmm_module Consolidate compiler generated dependencies of target oyranos_lcm2_cmm_module [ 68%] Built target oyranos_lcm2_cmm_module Consolidate compiler generated dependencies of target oyranos_lraw_cmm_module [ 69%] Built target oyranos_lraw_cmm_module Consolidate compiler generated dependencies of target oyranos_oicc_cmm_module [ 69%] Built target oyranos_oicc_cmm_module Consolidate compiler generated dependencies of target oyranos_oPNG_cmm_module [ 70%] Built target oyranos_oPNG_cmm_module Consolidate compiler generated dependencies of target oyranos_oJPG_cmm_module [ 70%] Built target oyranos_oJPG_cmm_module Consolidate compiler generated dependencies of target oyranos_oydi_cmm_module [ 70%] Built target oyranos_oydi_cmm_module Consolidate compiler generated dependencies of target oyranos_oyra_cmm_module [ 72%] Built target oyranos_oyra_cmm_module Consolidate compiler generated dependencies of target oyranos_trds_cmm_module [ 73%] Built target oyranos_trds_cmm_module Consolidate compiler generated dependencies of target oyranos_oiDB_cmm_module [ 74%] Built target oyranos_oiDB_cmm_module Consolidate compiler generated dependencies of target oyranos_elDB_cmm_module [ 74%] Building C object src/modules/color/modules/CMakeFiles/oyranos_elDB_cmm_module.dir/oyranos_cmm_elDB.c.o /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function ���oyGetByName���: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:133:3: warning: not enough variable arguments to fit a sentinel [-Wformat=] 133 Key * error_key = keyNew(KEY_END); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:134:30: warning: passing argument 1 of ���kdbOpen��� from incompatible pointer type [-Wincompatible-pointer-types] 134 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }
In file included from /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:31: note: expected ���const KeySet ��� {aka ���const struct _KeySet ���} but argument is of type ���Key ��� {aka ���struct _Key ���} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:134:22: error: too few arguments to function ���kdbOpen��� 134 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~ /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function ���oyGetKey���: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:172:3: error: too few arguments to function ���keyCopy��� 172 keyCopy( key, result ); ^~~ /usr/include/elektra/kdb.h:147:7: note: declared here 147 Key keyCopy (Key dest, const Key *source, elektraCopyFlags flags); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function ���oySetKey���: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:183:3: warning: not enough variable arguments to fit a sentinel [-Wformat=] 183 Key * error_key = keyNew(KEY_END); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:184:30: warning: passing argument 1 of ���kdbOpen��� from incompatible pointer type [-Wincompatible-pointer-types] 184 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }
/usr/include/elektra/kdb.h:128:31: note: expected ���const KeySet ��� {aka ���const struct _KeySet ���} but argument is of type ���Key ��� {aka ���struct _Key ���} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:184:22: error: too few arguments to function ���kdbOpen��� 184 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~ /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:194:17: error: too few arguments to function ���keyDup��� 194 Key * dup = keyDup (key); ^~ /usr/include/elektra/kdb.h:215:20: note: declared here 215 static inline Key keyDup (const Key source, elektraCopyFlags flags) ^~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function ���elDB_newFrom���: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:361:5: warning: not enough variable arguments to fit a sentinel [-Wformat=] 361 db->error = keyNew(KEY_END); ^~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:362:23: warning: passing argument 1 of ���kdbOpen��� from incompatible pointer type [-Wincompatible-pointer-types] 362 db->h = kdbOpen(db->error); ^~~~~
Key {aka struct _Key }
/usr/include/elektra/kdb.h:128:31: note: expected ���const KeySet ��� {aka ���const struct _KeySet ���} but argument is of type ���Key ��� {aka ���struct _Key ���} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:362:13: error: too few arguments to function ���kdbOpen��� 362 db->h = kdbOpen(db->error); ^~~ /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function ���elDBSetString���: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:600:3: warning: not enough variable arguments to fit a sentinel [-Wformat=] 600 Key * error_key = keyNew(KEY_END); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:601:30: warning: passing argument 1 of ���kdbOpen��� from incompatible pointer type [-Wincompatible-pointer-types] 601 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }
/usr/include/elektra/kdb.h:128:31: note: expected ���const KeySet ��� {aka ���const struct _KeySet ���} but argument is of type ���Key ��� {aka ���struct _Key ���} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:601:22: error: too few arguments to function ���kdbOpen��� 601 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~ /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:637:3: warning: not enough variable arguments to fit a sentinel [-Wformat=] 637 key = keyNew( KEY_END ); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function ���elDBSearchEmptyKeyname���: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:691:3: warning: not enough variable arguments to fit a sentinel [-Wformat=] 691 Key * error_key = keyNew(KEY_END); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:692:30: warning: passing argument 1 of ���kdbOpen��� from incompatible pointer type [-Wincompatible-pointer-types] 692 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }
/usr/include/elektra/kdb.h:128:31: note: expected ���const KeySet ��� {aka ���const struct _KeySet ���} but argument is of type ���Key ��� {aka ���struct _Key ���} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:692:22: error: too few arguments to function ���kdbOpen��� 692 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~ /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function ���elDBEraseKey���: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:744:3: warning: not enough variable arguments to fit a sentinel [-Wformat=] 744 Key * error_key = keyNew(KEY_END); ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:745:30: warning: passing argument 1 of ���kdbOpen��� from incompatible pointer type [-Wincompatible-pointer-types] 745 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }

/usr/include/elektra/kdb.h:128:31: note: expected ���const KeySet ��� {aka ���const struct _KeySet ���} but argument is of type ���Key ��� {aka ���struct _Key ���} 128 | KDB kdbOpen (const KeySet contract, Key parentKey); | ~~~^~~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:745:22: error: too few arguments to function ���kdbOpen��� 745 | KDB oyhandle = kdbOpen(error_key); oyERRopen(error_key) | ^~~ /usr/include/elektra/kdb.h:128:7: note: declared here 128 | KDB kdbOpen (const KeySet contract, Key parentKey); | ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:746:3: warning: not enough variable arguments to fit a sentinel [-Wformat=] 746 | Key top = keyNew(KEY_END); | ^~~ /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: At top level: /home/arif/.config/trizen/sources/oyranos/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:801:42: error: ���KDB_VERSION_MICRO��� undeclared here (not in a function); did you mean ���KDB_VERSION_MINOR���? 801 | {KDB_VERSION_MAJOR, KDB_VERSION_MINOR, KDB_VERSION_MICRO}, /< lib_version / | ^~~~~ | KDB_VERSION_MINOR make[2]: [src/modules/color/modules/CMakeFiles/oyranos_elDB_cmm_module.dir/build.make:76: src/modules/color/modules/CMakeFiles/oyranos_elDB_cmm_module.dir/oyranos_cmm_elDB.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:1475: src/modules/color/modules/CMakeFiles/oyranos_elDB_cmm_module.dir/all] Error 2 make: [Makefile:136: all] Error 2 ==> ERROR: A failure occurred in build().`

stumbles commented 1 year ago

Looks like you have the same issue as I; https://github.com/oyranos-cms/oyranos/issues/64

Perhaps it has something to do with https://bugs.gentoo.org/780057 and differences between kwin4/kwin5.

beku commented 1 year ago

Can you compile the 0.9.7 git development code?

Eignar17 commented 11 months ago

git code

Oyranos configuration helper 230723.023559
Linux system detected 64-bit host X86_64 detected deb_arch=amd64 "" "" "" "" "" ""

prefix = /usr exec_prefix = /usr bindir = /usr/bin xdgsysdir = /etc/xdg libdir = /usr/lib cmmdir = /usr/lib/color/modules cmmsubpath = color/modules includedir = /usr/include (install: += /oyranos) datadir = /usr/share mandir = /usr/share/man syscolordir = /usr/share/color usercolordir = ~/.config/color usercolordata = ~/.local/share/color iccdirname = icc settingsdirname = settings targetdirname = target pixmapdir = /usr/share/pixmaps icondir = /usr/share/icons desktopdir = /usr/share/applications ################################################################

cmake -DCMAKE_INSTALL_PREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg -DCMAKE_INSTALL_FULL_LIBDIR=/usr/lib /home/eignar/oyranos CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Found CMAKE_SYSTEM_NAME: Linux -- Checking for module 'elektra' -- Package 'elektra', required by 'virtual:world', not found -- Could NOT find ELEKTRA (missing: ELEKTRA_LIBRARIES) -- Elektra was NOT found. CMake Warning at CMakeLists.txt:135 (FIND_PACKAGE): By not providing "FindOpenIcc.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenIcc", but CMake did not find one.

Could not find a package configuration file provided by "OpenIcc" with any of the following names:

OpenIccConfig.cmake
openicc-config.cmake

Add the installation prefix of "OpenIcc" to CMAKE_PREFIX_PATH or set "OpenIcc_DIR" to a directory containing one of the above files. If "OpenIcc" provides a separate development package or SDK, be sure it has been installed.

-- Use internal: libOpenIcc CMake Deprecation Warning at openicc/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Oyjl: compile as subproject - skip install (ENABLE_INSTALL_OPENICC=OFF) -- ENABLE_STATIC_LIBS_OPENICC: ON -- ENABLE_SHARED_LIBS_OPENICC: OFF -- ENABLE_TESTS_OPENICC: OFF -- ENABLE_TOOLS_OPENICC: OFF -- ENABLE_DOCU_OPENICC: OFF -- Found PLATFORM: Linux -- CMAKE_BUILD_TYPE: "RelWithDebInfo" CMake Warning at openicc/CMakeLists.txt:103 (FIND_PACKAGE): By not providing "FindOyjl.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Oyjl", but CMake did not find one.

Could not find a package configuration file provided by "Oyjl" with any of the following names:

OyjlConfig.cmake
oyjl-config.cmake

Add the installation prefix of "Oyjl" to CMAKE_PREFIX_PATH or set "Oyjl_DIR" to a directory containing one of the above files. If "Oyjl" provides a separate development package or SDK, be sure it has been installed.

CMake Deprecation Warning at openicc/oyjl/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Oyjl: compile as subproject - skip install (ENABLE_INSTALL_OYJL=OFF) -- ENABLE_STATIC_LIBS_OYJL: ON -- ENABLE_SHARED_LIBS_OYJL: ON -- ENABLE_TESTS_OYJL: OFF -- ENABLE_TOOLS_OYJL: ON -- ENABLE_DOCU_OYJL: OFF -- yajl: 2.1.0 /usr/include -- CMAKE_INSTALL_PREFIX/CMAKE_INSTALL_INCLUDEDIR: /usr/include -- microhttpd.h: -- microhttpd: microhttpd not found: -- yaml: /usr/include : /usr/lib/libyaml.so -- xml: /usr/include/libxml2 : /usr/lib/libxml2.so -- m: /usr/lib/libm.so -- ENABLE_QT_OYJL -- Could NOT find Qt5LinguistTools (missing: Qt5LinguistTools_DIR) CMake Warning at openicc/oyjl/CMakeLists.txt:243 (FIND_PACKAGE): Found package configuration file:

/usr/lib/cmake/Qt5/Qt5Config.cmake

but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT FOUND. Reason given by package:

Failed to find Qt5 component "LinguistTools" config file at "/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake"

-- ENABLE_STATIC_LIBS_OYJL -- Qt5Qml: /usr/lib/cmake/Qt5Qml -- ENABLE_SHARED_LIBS_OYJL -- GetText: TRUE libintl: 1 -- EXTRA_CORE_LIBS: /usr/lib/libm.so;dl;ltdl -- EXTRA_LIBS: /usr/lib/libyajl.so;/usr/lib/libxml2.so;/usr/lib/libyaml.so;/usr/lib/libm.so;dl;ltdl -- Could NOT find Oyjl (missing: OYJL_LIBRARIES) oyjlargs: /home/eignar/oyranos/doc/md/oyjlargs.md add "oyjl-args": "de" from de_DE.UTF8 / "de_DE.UTF8" oyjl: /home/eignar/oyranos/doc/md/oyjl.md add "oyjl": "de" from de_DE.UTF8 / "de_DE.UTF8" oyjltranslate: /home/eignar/oyranos/doc/md/oyjltranslate.md add "oyjl-translate": "de" from de_DE.UTF8 / "de_DE.UTF8" -- Could NOT find Qt5LinguistTools (missing: Qt5LinguistTools_DIR) CMake Warning at openicc/oyjl/oyjl-args-qml/CMakeLists.txt:6 (FIND_PACKAGE): Found package configuration file:

/usr/lib/cmake/Qt5/Qt5Config.cmake

but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT FOUND. Reason given by package:

Failed to find Qt5 component "LinguistTools" config file at "/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake"

CMake Warning at openicc/oyjl/oyjl-args-qml/CMakeLists.txt:27 (FIND_PACKAGE): By not providing "FindOpenIcc.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenIcc", but CMake did not find one.

Could not find a package configuration file provided by "OpenIcc" with any of the following names:

OpenIccConfig.cmake
openicc-config.cmake

Add the installation prefix of "OpenIcc" to CMAKE_PREFIX_PATH or set "OpenIcc_DIR" to a directory containing one of the above files. If "OpenIcc" provides a separate development package or SDK, be sure it has been installed.

-- OPENICC_LIBRARIES: openicc-static CMake Error at openicc/oyjl/oyjl-args-qml/CMakeLists.txt:99 (QT5_CREATE_TRANSLATION): Unknown CMake command "QT5_CREATE_TRANSLATION".

-- Configuring incomplete, errors occurred! @beku