[Owncloud] Build environment for Android client

Bernhard Posselt nukeawhale at gmail.com
Sun Jan 20 15:42:25 UTC 2013


This would be really cool as part of the documentation.

On 01/20/2013 04:39 PM, Aksakal, M. wrote:
> Tnx,
>
> That did the trick for me. To get the code to compile completely in Eclipse
> I also had todo the following:
>
> Copy the contens of "\actionbarsherlock\library\gen\com\actionbarsherlock"
> to "\gen\com\actionbarsherlock", after rebuilding the whole thing it worked.
>
> Keep in mind that if you clean the project you have to manually recopy the
> files again after rebuilding the actionbarsherlock library.
>
> For some reason I am unable to change the output folder and also can't
> specify custom tasks after building, I don't know why this is.
>
> After doing this everything should work as expected and you should be able
> to build on a Windows Machine.
>
>
> On 13 January 2013 08:39, Carsten Ringe <carsten at kopis.de> wrote:
>
>> Am 10.01.2013 20:41, schrieb Aksakal, M.:
>>
>>  I've checked out the code for the Android client on github. Problem
>>> is that I'm not able to get Eclipse to build is because of all kinds
>>> of errors and missing dependencies. I'm looking for some guidance or
>>> an online guide (just like for the dekstop clients) to help me get a
>>> working build environment.
>>>
>> I tried to checkout the HEAD of the android repository and got some errors
>> too. I noticed there is a "setup_env.sh" script but since I'm on windows at
>> the moment I added a batch file to do the same things for windows users.
>> Here it is:
>>
>>
>>>>>  set ECLIPSE_ADT_PATH=
>> git submodule init
>> git submodule update
>> %ECLIPSE_ADT_PATH%\tools\**android.bat update project -p
>> actionbarsherlock\library --target 1
>> %ECLIPSE_ADT_PATH%\tools\**android.bat update project -p . --target 1
>> cp third_party\android-support-**library\android-support-v4.jar
>> actionbarsherlock\library\**libs\android-support-v4.jar
>> cd tests
>> %ECLIPSE_ADT_PATH%\tools\**android.bat update test-project -m .. -p .
>> <<<
>>
>> I don't know what the "--target 1" switch does, but it works and sets up
>> the projects. After that I can import them into my ADT Eclipse.
>>
>> The project "tests" is still missing a project as dependency, maybe
>> because I renamed the checkout folder. I had to open the project build
>> path, remove the project "owncloud-android" and add "FileDisplayActivity"
>> as a dependency.
>>
>> Now my projects are without errors. I think I'll do a pull request for my
>> windows batch file, so others on windows can use it too.
>>
>>
>> Hope that helps.
>>
>> Carsten
>>
>> --
>> www.kopis.de
>> carsten at kopis.de
>>
>> Wenn ihr eure eMails verschlüsseln wollt, findet ihr meinen GPG Schlüssel
>> unter http://blog.kopis.de/contact/
>>
>
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud




More information about the Owncloud mailing list