[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-frameworks-devel
Subject: Re: Android integration in KConfig framework
From: JAZEIX Johnny <jazeix () gmail ! com>
Date: 2014-04-27 17:27:51
Message-ID: 535D3E17.2070909 () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi again,
I downloaded cmake 3.0.0-rc4 but when I use cmake with
set(CMAKE_SYSTEM_NAME Android) I've got the output in attachment.
Where I installed cmake (/usr/local/share/cmake-3.0/Modules/Platform/),
I don't have any Android.cmake that could match.
I googled the problem but did not find a solution... Did you meet this ?
We use the following cmake toolchain
https://git-next.kde.org/kde/gcompris/blob/cmake/platforms/android.cmake .
Johnny
On 04/24/14 23:59, Aleix Pol wrote:
> On Thu, Apr 24, 2014 at 10:55 PM, Aleix Pol <aleixpol@kde.org
> <mailto:aleixpol@kde.org>> wrote:
>
> On Thu, Apr 24, 2014 at 9:11 PM, JAZEIX Johnny <jazeix@gmail.com
> <mailto:jazeix@gmail.com>> wrote:
>
> Hi,
>
> I'm currently working on GCompris port (passing from Gtk to
> Qt5 qml/js) and for storing persistent data, i'm using KConfig
> (from
> https://projects.kde.org/projects/frameworks/kconfig/repository).
>
> It works fine on Desktop (tested on linux) and with a slight
> modification (I attached a potential patch which fix my
> problem) it works also on Android.
>
> I have a problem when compiling KConfig libraries because it
> appends the soname at the end of library (meaning
> libGCompris.so will look for a libKF5ConfigCore.so.5) and I
> deploy only libKF5ConfigCore.so (it looks like Android does
> not support soname).
>
> About the patch, in the toolchain I specifiy to compile with,
> ANDROID is defined. This way, It only creates a
> libKF5ConfigCore.so.
>
> If it is good for you, is it possible to integrate it on
> KConfig ?Or if you have an other way to not have the soname, I
> take it :)
>
> Regards,
>
> Johnny
>
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel@kde.org <mailto:Kde-frameworks-devel@kde.org>
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
>
>
> You need to set the system name to Android (set(CMAKE_SYSTEM_NAME
> Android)), note you will need cmake 3.0 for that to work, this
> sets the cmake project to drop the soname for libraries.
>
> FWIW, I've been working on improving the cmake situation on
> Android [1], maybe that can help you, although it's far from a
> usable state.
>
> Aleix
>
> [1]
> http://quickgit.kde.org/?p=scratch%2Fapol%2Fkalgebraandroid.git&a=blob&h=9bd96cc3463 \
> a0675fd67aeca6cb1a47460f1dd8d&hb=e75f946e87690db2c4b509baac9c1ff4e51bc130&f=AndroidToolchain.cmake
>
>
> Adding JAZEIX, in case he's not subscribed.
>
> Aleix
[Attachment #5 (text/html)]
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi again,<br>
<br>
I downloaded cmake 3.0.0-rc4 but when I use cmake with
set(CMAKE_SYSTEM_NAME Android) I've got the output in attachment.<br>
Where I installed cmake
(/usr/local/share/cmake-3.0/Modules/Platform/), I don't have any
Android.cmake that could match.<br>
I googled the problem but did not find a solution... Did you meet
this ?<br>
<br>
We use the following cmake toolchain
<a class="moz-txt-link-freetext" \
href="https://git-next.kde.org/kde/gcompris/blob/cmake/platforms/android.cmake">https://git-next.kde.org/kde/gcompris/blob/cmake/platforms/android.cmake</a>
.<br>
<br>
Johnny<br>
<br>
On 04/24/14 23:59, Aleix Pol wrote:<br>
</div>
<blockquote
cite="mid:CACcA1RqxOtvq8oM5RGLt6QAuKJRMswuKDc6u7HCFp-HEn-wtMA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Thu, Apr 24, 2014 at 10:55 PM,
Aleix Pol <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:aleixpol@kde.org" \
target="_blank">aleixpol@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>
<div class="h5">On Thu, Apr 24, 2014 at 9:11 PM,
JAZEIX Johnny <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:jazeix@gmail.com"
target="_blank">jazeix@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px
0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
<div class="h5">Hi,<br>
<br>
I'm currently working on GCompris port
(passing from Gtk to Qt5 qml/js) and for
storing persistent data, i'm using KConfig
(from <a moz-do-not-send="true"
\
href="https://projects.kde.org/projects/frameworks/kconfig/repository"
\
target="_blank">https://projects.kde.org/projects/frameworks/kconfig/repository</a>).<br>
<br>
It works fine on Desktop (tested on linux) and
with a slight modification (I attached a
potential patch which fix my problem) it works
also on Android.<br>
<br>
I have a problem when compiling KConfig
libraries because it appends the soname at the
end of library (meaning libGCompris.so will
look for a libKF5ConfigCore.so.5) and I deploy
only libKF5ConfigCore.so (it looks like
Android does not support soname).<br>
<br>
About the patch, in the toolchain I specifiy
to compile with, ANDROID is defined. This way,
It only creates a libKF5ConfigCore.so.<br>
<br>
If it is good for you, is it possible to
integrate it on KConfig ?Or if you have an
other way to not have the soname, I take it :)<br>
<br>
Regards,<br>
<br>
Johnny<br>
<br>
</div>
</div>
_______________________________________________<br>
Kde-frameworks-devel mailing list<br>
<a moz-do-not-send="true"
href="mailto:Kde-frameworks-devel@kde.org"
target="_blank">Kde-frameworks-devel@kde.org</a><br>
<a moz-do-not-send="true"
\
href="https://mail.kde.org/mailman/listinfo/kde-frameworks-devel"
\
target="_blank">https://mail.kde.org/mailman/listinfo/kde-frameworks-devel</a><br> \
<br> </blockquote>
</div>
<br>
</div>
<div class="gmail_extra">You need to set the system name
to Android (set(CMAKE_SYSTEM_NAME Android)), note you
will need cmake 3.0 for that to work, this sets the
cmake project to drop the soname for libraries.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">FWIW, I've been working on
improving the cmake situation on Android [1], maybe
that can help you, although it's far from a usable
state.</div>
<div class="gmail_extra">
<br>
</div>
<div class="gmail_extra">Aleix</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">[1] <a moz-do-not-send="true"
href="http://quickgit.kde.org/?p=scratch%2Fapol%2Fkalgebraandroid.git&a=blob&h \
=9bd96cc3463a0675fd67aeca6cb1a47460f1dd8d&hb=e75f946e87690db2c4b509baac9c1ff4e51bc130&f=AndroidToolchain.cmake"
target="_blank">http://quickgit.kde.org/?p=scratch%2Fapol%2Fkalgebraandroid.git& \
a=blob&h=9bd96cc3463a0675fd67aeca6cb1a47460f1dd8d&hb=e75f946e87690db2c4b509baac9c1ff4e51bc130&f=AndroidToolchain.cmake</a></div>
</div>
</blockquote>
</div>
<br>
</div>
<div class="gmail_extra">Adding JAZEIX, in case he's not
subscribed.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Aleix</div>
</div>
</blockquote>
<br>
</body>
</html>
["output.txt" (text/plain)]
System is unknown to cmake, create:
Platform/Android to use this system, please send your config file to
cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that
file to cmake@www.cmake.org.
CMake Error at
/opt/Qt5.2.1_android/5.2.1/android_armv7/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.c
make:16 (message):
Failed to find "GLESv2" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".
Call Stack (most recent call first):
/opt/Qt5.2.1_android/5.2.1/android_armv7/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.c
make:51 (_qt5gui_find_extra_libs)
/opt/Qt5.2.1_android/5.2.1/android_armv7/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:1
43 (include)
/opt/Qt5.2.1_android/5.2.1/android_armv7/lib/cmake/Qt5/Qt5Config.cmake:26
(find_package)
CMakeLists.txt:10 (find_package)
_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic