Thread: libpq in android

libpq in android

From
Marco Bernasocchi
Date:
Hi all, porting QGIS to android I ported libpq as well, I had to modify
two files to successfully compile it without-readline. I attach the two
needed minor patches. further informations can be found at android.qgis.org.

Thanks for considering the patches.
Marco Bernasocchi

www.opengis.ch

Attachment

Re: libpq in android

From
Alvaro Herrera
Date:
Excerpts from Marco Bernasocchi's message of mi=C3=A9 nov 23 08:07:05 -0300=
 2011:
> Hi all, porting QGIS to android I ported libpq as well, I had to modify=
=20
> two files to successfully compile it without-readline. I attach the two=
=20
> needed minor patches. further informations can be found at android.qgis.o=
rg.

I have added this to the open commitfest:
https://commitfest.postgresql.org/action/commitfest_view?id=3D13

--=20
=C3=81lvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Re: libpq in android

From
Peter Eisentraut
Date:
On ons, 2011-11-23 at 12:07 +0100, Marco Bernasocchi wrote:
> Hi all, porting QGIS to android I ported libpq as well, I had to modify
> two files to successfully compile it without-readline. I attach the two
> needed minor patches. further informations can be found at android.qgis.org.

The PostgreSQL source tree does not contain any file m4/libtool.m4.

For the second patch, please try to find a feature-detection method of
addressing this problem (e.g., configure check), instead of
harding-coding #ifdef MYPLATFORM.

Re: libpq in android

From
Alvaro Herrera
Date:
Excerpts from Peter Eisentraut's message of jue nov 24 19:01:04 -0300 2011:
> On ons, 2011-11-23 at 12:07 +0100, Marco Bernasocchi wrote:
> > Hi all, porting QGIS to android I ported libpq as well, I had to modify=
=20
> > two files to successfully compile it without-readline. I attach the two=
=20
> > needed minor patches. further informations can be found at android.qgis=
.org.
>=20
> The PostgreSQL source tree does not contain any file m4/libtool.m4.
>=20
> For the second patch, please try to find a feature-detection method of
> addressing this problem (e.g., configure check), instead of
> harding-coding #ifdef MYPLATFORM.

FWIW I think this can be done simply by replacing the B64 struct member
with int64.

--=20
=C3=81lvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Re: libpq in android

From
Alvaro Herrera
Date:
Excerpts from Marco Bernasocchi's message of mar nov 29 11:29:44 -0300 2011:
>=20
> Hi do you need an input from me? i used ifdef to be less invading to the=
=20
> code.

Please try what I suggest and see if it works on your platform.


> On 11/25/2011 01:43 AM, Alvaro Herrera wrote:
> >
> > Excerpts from Peter Eisentraut's message of jue nov 24 19:01:04 -0300 2=
011:
> >> On ons, 2011-11-23 at 12:07 +0100, Marco Bernasocchi wrote:
> >>> Hi all, porting QGIS to android I ported libpq as well, I had to modi=
fy
> >>> two files to successfully compile it without-readline. I attach the t=
wo
> >>> needed minor patches. further informations can be found at android.qg=
is.org.
> >>
> >> The PostgreSQL source tree does not contain any file m4/libtool.m4.
> >>
> >> For the second patch, please try to find a feature-detection method of
> >> addressing this problem (e.g., configure check), instead of
> >> harding-coding #ifdef MYPLATFORM.
> >
> > FWIW I think this can be done simply by replacing the B64 struct member
> > with int64.
> >
>=20

--=20
=C3=81lvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Re: libpq in android

From
Marco Bernasocchi
Date:
Hi do you need an input from me? i used ifdef to be less invading to the
code.


On 11/25/2011 01:43 AM, Alvaro Herrera wrote:
>
> Excerpts from Peter Eisentraut's message of jue nov 24 19:01:04 -0300 2011:
>> On ons, 2011-11-23 at 12:07 +0100, Marco Bernasocchi wrote:
>>> Hi all, porting QGIS to android I ported libpq as well, I had to modify
>>> two files to successfully compile it without-readline. I attach the two
>>> needed minor patches. further informations can be found at android.qgis.org.
>>
>> The PostgreSQL source tree does not contain any file m4/libtool.m4.
>>
>> For the second patch, please try to find a feature-detection method of
>> addressing this problem (e.g., configure check), instead of
>> harding-coding #ifdef MYPLATFORM.
>
> FWIW I think this can be done simply by replacing the B64 struct member
> with int64.
>


--
Marco Bernasocchi
www.opengis.ch