|
|
Home » Community » Coffee corner » Qt and Android...
|
|
|
|
Re: Qt and Android... [message #28229 is a reply to message #28228] |
Tue, 24 August 2010 11:11 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
a conceptional question:
android development is handled in eclipse, which is a good thing, for java, has android build stuff plugins etc..
the NDK based applications, are still java applications that use a libfoo.so packaged code to be linked in the .apk application file.
so this is the point that we need to produce. but we wont be able to provide a 'full' IDE support for java development (it's U++ after all..).
so the handling is to have a build method for this .so file, which is then coyied to a location in the android project, which is in last step built and pushed to the target using eclipse.
we neither will be able to debug it..thus the code / classes will need to be tested in Ultimate++ using test cases / test projects.
i'm trying to analyze the build process using the 'ndk-build' script, to be able to make own build method in Upp..the plasma example is my base.. maybe soon Core can be compiled..
EDIT: is it possible to define a buildmethod that acually uses the 'ndk-build' script? we would save ourselves a lot of hassle, needing only to define a Ultimate.mk file which declares the sources needed to be compiled also..
[Updated on: Tue, 24 August 2010 11:18] Report message to a moderator
|
|
|
|
|
Re: Qt and Android... [message #28238 is a reply to message #28232] |
Tue, 24 August 2010 22:00 |
Sender Ghost
Messages: 301 Registered: November 2008
|
Senior Member |
|
|
kohait00 wrote on Tue, 24 August 2010 14:46 | i found in the ide a 'SCRIPT' builder. is there some docu around it?
|
Hello, Konstantin.
You can read about SCRIPT builder from source code: uppsrc/ide/Builders/ScriptBuilder.cpp
Basicly, you have following built-in variables:
array INCLUDE
array LIBPATH
and built-in functions:
int Execute(string cmdLine)
void PutConsole(string text)
void PutVerbose(string text)
In the specified script file with bsc extension you need to implement (some of) following functions:
string objectfile(string pathToFile)
int compile(string pathToFile, string objectFile, string options)
string libraryfile(string packageName)
int library(array objlist, string product)
int link(objlist, liblist, target, linkoptions)
int preprocess(string file, string target)
kohait00 wrote on Tue, 24 August 2010 14:46 | any hints?
|
In my previous experience, ESC standard library need to be extended (e.g. with GetFileName, GetFileExt, etc. functions or they need to be implemented in the script file) and SCRIPT builder, as well (e.g. to get output directory).
[Updated on: Tue, 07 September 2010 09:45] Report message to a moderator
|
|
|
|
|
Re: Qt and Android... [message #28263 is a reply to message #28244] |
Wed, 25 August 2010 11:58 |
Sender Ghost
Messages: 301 Registered: November 2008
|
Senior Member |
|
|
Also, you can be interested in lightweight ESC IDE.
It unfinished, but can be used as text editor with syntax highlighting based on uppsrc/CodeEditor.
With it you can test created functions inside main function using Print as output.
Edit:
Updated for newer changes in uppsrc/CodeEditor.
[Updated on: Thu, 10 October 2019 15:32] Report message to a moderator
|
|
|
Re: Qt and Android... [message #28339 is a reply to message #28229] |
Sun, 29 August 2010 21:49 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
kohait00 wrote on Tue, 24 August 2010 05:11 | a conceptional question:
android development is handled in eclipse, which is a good thing, for java, has android build stuff plugins etc..
the NDK based applications, are still java applications that use a libfoo.so packaged code to be linked in the .apk application file.
so this is the point that we need to produce. but we wont be able to provide a 'full' IDE support for java development (it's U++ after all..).
|
Actually, while little known, TheIDE already supports Java...
(Tom needed to develop something in Java).
Anyway, in this context, it is pershaps just interesting note, nothing more. You analysis seems correct..
Quote: |
EDIT: is it possible to define a buildmethod that acually uses the 'ndk-build' script? we would save ourselves a lot of hassle, needing only to define a Ultimate.mk file which declares the sources needed to be compiled also..
|
Definitely. TheIDE should be modified to support Android development. Which perhaps invludes ndk-build. Maybe even some Java support.
|
|
|
|
|
Goto Forum:
Current Time: Wed May 08 04:45:08 CEST 2024
Total time taken to generate the page: 0.01791 seconds
|
|
|