libpq in android

Started by Marco Bernasocchiover 14 years ago6 messagesbugs
Jump to latest
#1Marco Bernasocchi
marco@bernawebdesign.ch

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

Attachments:

android_support.patchtext/x-patch; name=android_support.patchDownload+11-2
libpq.patchtext/x-patch; name=libpq.patchDownload+4-1
#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Marco Bernasocchi (#1)
Re: libpq in android

Excerpts from Marco Bernasocchi's message of mié nov 23 08:07:05 -0300 2011:

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.

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

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

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Marco Bernasocchi (#1)
Re: libpq in android

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.

#4Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Peter Eisentraut (#3)
Re: libpq in android

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.

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

#5Marco Bernasocchi
marco@bernawebdesign.ch
In reply to: Alvaro Herrera (#4)
Re: libpq in android

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

#6Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Marco Bernasocchi (#5)
Re: libpq in android

Excerpts from Marco Bernasocchi's message of mar nov 29 11:29:44 -0300 2011:

Hi do you need an input from me? i used ifdef to be less invading to the
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 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.

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