Bug 419024 - Breeze Icons fails to build on Android cross-compile
Summary: Breeze Icons fails to build on Android cross-compile
Status: REPORTED
Alias: None
Product: Breeze
Classification: Plasma
Component: Icons (show other bugs)
Version: 5.18.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: visual-design
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-19 16:41 UTC by mtmcp
Modified: 2020-03-19 16:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Error log of build (3.04 KB, text/plain)
2020-03-19 16:41 UTC, mtmcp
Details
CMake Output of build (60.08 KB, text/plain)
2020-03-19 16:42 UTC, mtmcp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mtmcp 2020-03-19 16:41:36 UTC
Created attachment 126894 [details]
Error log of build

SUMMARY
When cross-compiling breeze-icons to Android on Windows host the build fails. It succeeded in version 5.67.0.

STEPS TO REPRODUCE
git clone https://anongit.kde.org/extra-cmake-modules.git
git -C extra-cmake-modules checkout tags/v5.68.0 -b v5.68.0
mkdir build\extra-cmake-modules
pushd build\extra-cmake-modules
cmake -DCMAKE_INSTALL_PREFIX=C:/Users/mtmcp/Temp -DCMAKE_PREFIX_PATH=D:/Qt/5.12.6/android_x86;C:/Users/mtmcp/Temp -DCMAKE_TOOLCHAIN_FILE=D:/Android/android-ndk-r19c/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=D:/Qt/5.12.6/android_x86;C:/Users/mtmcp/Temp -DANDROID_ABI=x86 -DANDROID_PLATFORM=android-16 -DBUILD_SHARED_LIBS=OFF -G Ninja C:/Users/mtmcp/Temp/extra-cmake-modules
cmake --build . --target install
popd

git clone https://anongit.kde.org/breeze-icons.git
git -C breeze-icons checkout tags/v5.68.0 -b v5.68.0
mkdir build\breeze-icons
pushd build\breeze-icons
cmake -DCMAKE_INSTALL_PREFIX=C:/Users/mtmcp/Temp -DCMAKE_PREFIX_PATH=D:/Qt/5.12.6/android_x86;C:/Users/mtmcp/Temp -DCMAKE_TOOLCHAIN_FILE=D:/Android/android-ndk-r19c/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=D:/Qt/5.12.6/android_x86;C:/Users/mtmcp/Temp -DANDROID_ABI=x86 -DANDROID_PLATFORM=android-16 -DBUILD_SHARED_LIBS=OFF -G Ninja C:/Users/mtmcp/Temp/breeze-icons

OBSERVED RESULT
-- Check for working C compiler: D:/Android/android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
-- Check for working C compiler: D:/Android/android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- 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: D:/Android/android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
-- Check for working CXX compiler: D:/Android/android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--

Installing in C:/Users/mtmcp/Temp. Run C:/Users/mtmcp/Temp/build/breeze-icons/prefix.sh to set the environment for BreezeIcons.
-- Could not set up the appstream test. appstreamcli is missing.
-- Setting build type to 'Debug' as none was specified.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Failed
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
CMake Error at icons/CMakeLists.txt:20 (add_dependencies):
  Cannot add target-level dependencies to non-existent target
  "breeze-validate-svg".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.


CMake Error at icons-dark/CMakeLists.txt:20 (add_dependencies):
  Cannot add target-level dependencies to non-existent target
  "breeze-validate-svg".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.


-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.68.0), Extra CMake Modules., <https://commits.kde.org/extra-cmake-modules>
 * Qt5Core
 * Qt5Test
 * Qt5 (required version >= 5.12.0)

-- The following features have been disabled:

 * 24x24 generation, 'bash' is required to generate 24x24 variants

-- Configuring incomplete, errors occurred!
See also "C:/Users/mtmcp/Temp/build/breeze-icons/CMakeFiles/CMakeOutput.log".
See also "C:/Users/mtmcp/Temp/build/breeze-icons/CMakeFiles/CMakeError.log".

EXPECTED RESULT
Expected build should succeed like version 5.67.0

SOFTWARE/OS VERSIONS
Windows: 10
Android: android-ndk-r19c
Qt Version: 5.12.6

ADDITIONAL INFORMATION
Comment 1 mtmcp 2020-03-19 16:42:30 UTC
Created attachment 126895 [details]
CMake Output of build