[Lazarus] Android and network
Benito van der Zander
benito at benibela.de
Sun May 26 23:50:48 CEST 2013
>
> Anyway, something is broken on (my?) lazarus/fpc... when I compile for
> Android it builds, but app crashes at start
> (Well, on Galaxy Note it crashes at start, on Nexus 10 the app goes on
> loop flashing all time until I kill it)
Always or just with the internettools?
Did you check the logcat?
On 05/24/2013 11:53 PM, Kjow wrote:
> Now it works, I misunderstood the requirements... I meant "LCL" in
> project requirements, not package!
>
> Anyway, something is broken on (my?) lazarus/fpc... when I compile for
> Android it builds, but app crashes at start
> (Well, on Galaxy Note it crashes at start, on Nexus 10 the app goes on
> loop flashing all time until I kill it)
>
> So I can't test on real device.
>
> Thank you!
> Kjow
>
>
>
>
>
> 2013/5/24 Benito van der Zander <benito at benibela.de
> <mailto:benito at benibela.de>>
>
> Did you include the internettools package as requirement in your
> project?
>
> Because then, it does not compile for Android, because I did not
> want to add a requirement on LCL
> for the package, when it works without LCL everywhere except Android.
> And sadly you cannot set different package requirements, for
> Android and non-Android.
>
> You can click on "Add / New Requirement" and add LCL in the
> package inspector then it will probably work this way.
>
> Or, I use it in my project, by not including the internettools
> package as requirement, and having all paths in fpc.cfg.
> Then it works also fine. The packages are really pointless
>
>
> Benito
>
>
> On 05/24/2013 03:03 PM, Kjow wrote:
>> I'm sorry for delay, I have few free time.
>>
>> I can't compile for arm-android:
>>
>> Hint: Start of reading config file
>> C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg
>> Hint: End of reading config file
>> C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg
>> Free Pascal Compiler version 2.7.1 [2013/05/21] for arm
>> Copyright (c) 1993-2013 by Florian Klaempfl and others
>> Target OS: Android for ARMEL
>> Compiling internettools.pas
>> Compiling .\internet\simpleinternet.pas
>> Compiling .\internet\androidinternetaccess.pas
>> internet\androidinternetaccess.pas(35,8) Fatal: Can't find unit
>> LCLProc used by androidinternetaccess
>>
>> I have both lcl and lclbase in package requirements.
>>
>> Thanks,
>> Kjow
>>
>>
>>
>> 2013/5/23 Benito van der Zander <benito at benibela.de
>> <mailto:benito at benibela.de>>
>>
>> You do not really need to install anything.
>> Just add the paths with the units to the search paths.
>>
>> But if you want to install it, you can open the
>> internettools.lpk and click Use/Install
>>
>>
>> On 05/23/2013 10:51 AM, Kjow wrote:
>>> 2013/5/22 Benito van der Zander <benito at benibela.de
>>> <mailto:benito at benibela.de>>
>>>
>>> Hi,
>>> last week I ported my Internet Tools
>>> (http://benibela.de/sources_en.html#internettools) to
>>> Android
>>> e.g.:
>>>
>>> uses simpleinternet;
>>> Memo2.Lines.text := retrieve(edit1.text);
>>>
>>> or if you need the headers:
>>>
>>> uses androidinternetaccess;
>>> var internet: TAndroidInternetAccess;
>>> begin
>>> internet:=TAndroidInternetAccess.create;
>>> Memo2.Lines.text := internet.get(edit1.text);
>>> Memo1.Lines.Assign(internet.GetLastHTTPHeaders);
>>> internet.free;
>>> end;
>>>
>>>
>>> Thank you, but I can't get it working... neither x64-win64
>>> nor Android.
>>> I can't find an installation guide, so I don't understand
>>> what is needed and how to set it.
>>>
>>> Can you help me?
>>>
>>>
>>> --
>>> _______________________________________________
>>> Lazarus mailing list
>>> Lazarus at lists.lazarus.freepascal.org <mailto:Lazarus at lists.lazarus.freepascal.org>
>>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> <mailto:Lazarus at lists.lazarus.freepascal.org>
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>>
>>
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org <mailto:Lazarus at lists.lazarus.freepascal.org>
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> <mailto:Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130526/776729ea/attachment-0003.html>
More information about the Lazarus
mailing list