Bug 395763 - file:/// as cmake toolchain file on android build
Summary: file:/// as cmake toolchain file on android build
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: 5.2.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-22 18:48 UTC by Valeri
Modified: 2019-12-05 00:30 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valeri 2018-06-22 18:48:44 UTC
I try to use "Runtime: android" with my cmake project. It generates the following string:

/home/v/compile/2048_NG/abuild> /usr/bin/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug /home/v/compile/2048_NG -DCMAKE_TOOLCHAIN_FILE=file:///usr/share/ECM/toolchain/Android.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NDK=file:/home/v/compile/android-ndk-r17/ -DANDROID_TOOLCHAIN=arm-linux-androideabi -DANDROID_API_LEVEL=14 -DANDROID_ARCHITECTURE=arm -DANDROID_SDK_BUILD_TOOLS_REVISION=21.1.1

CMake don't understand file:/// notation and crash.
Comment 1 Aleix Pol 2019-12-05 00:30:54 UTC
Git commit 815a84a7a59c1b0c47d92d348606d0184f25f39f by Aleix Pol, on behalf of Björn Stresing.
Committed on 05/12/2019 at 00:30.
Pushed by apol into branch 'master'.

Pass the android toolchain file path to CMake as a local file path not as a URI

Summary: BUG: 395763

Reviewers: apol

Reviewed By: apol

Subscribers: kdevelop-devel

Tags: #kdevelop

Differential Revision: https://phabricator.kde.org/D21936

M  +15   -3    plugins/android/androidpreferences.ui
M  +5    -5    plugins/android/androidruntime.cpp

https://invent.kde.org/kde/kdevelop/commit/815a84a7a59c1b0c47d92d348606d0184f25f39f