[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: Postgresql 15 client arm64 and Qt 5.15
From:       Piergiorgio Valli <piervalli () gmail ! com>
Date:       2023-12-18 16:36:25
Message-ID: CALJ6nyz5ipyEETjvoC2UM-Q8YvA-O-nTnKv9TDYZfPnxLj7k2Q () mail ! gmail ! com
[Download RAW message or body]

Hi,
I have a SO 64bit (not arm 64)  so I have downloaded the package manually
to collect all libraries for cross compilation,it is true there are missing
dependencies because there are many packages (on Windows all dll are under
folder libs).
Now I am searching where  libpgcommon and libpgport where are installed.  I
will install a SO arm64 to search library alternative I thinks should build
Postgresql for Arm.
Thanks
Pier
Il giorno lun 18 dic 2023 alle ore 01:03 Ron Johnson <
ronljohnsonjr@gmail.com> ha scritto:

> On Sun, Dec 17, 2023 at 5:14 PM Piergiorgio Valli <piervalli@gmail.com>
> wrote:
> 
> > Hi all,
> > 
> > I should use the client of Postgresql on Arm64, Host where i build is
> > Ubuntu 20.04 64bit
> > 
> > I have downloaded the library from Ubuntu repository
> > http://ftp.de.debian.org/debian/pool/main/p/postgresql-15/libpq-dev_15.5-0+deb12u1_arm64.deb
> >  
> > When I am building the library with libpq.a it shows following error,
> > probably there are missings libraries. Do you know the additional library
> > that I need to link?
> > 
> > /home/pier/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ \
> > -c -target aarch64-linux-android21 -fno-limit-debug-info -fPIC \
> > -fstack-protector-strong -DANDROID -O2 -fPIC  -I. \
> > -I/home/pier/data/build/libpq-dev_15.5-0+deb12u1_arm64/data/usr/include \
> > -I/home/pier/data/build/libpq-dev_15.5-0+deb12u1_arm64/data/usr/include \
> > -I/home/pier/data/build/qt-everywhere-src-5.15.10/qtbase/mkspecs/android-clang -o \
> > main.o main.cpp
> > > /home/pier/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ \
> > > -target aarch64-linux-android21 -fno-limit-debug-info -Wl,--build-id=sha1 \
> > > -Wl,--no-undefined -Wl,-z,noexecstack -shared -o psql main.o   \
> > > -Llibpq-dev_12.2-4_arm64/data/usr/lib/aarch64-linux-gnu/lib \
> > > -L/home/pier/data/build/libpq-dev_15.5-0+deb12u1_arm64/data/usr/lib -lpq   \
> > > -llog -lz -lm -ldl -lc
> > d: error: undefined symbol: pg_encoding_mblen
> > > > > > referenced by fe-exec.o:(PQescapeStringInternal) in archive \
> > > > > > /home/pier/data/build/libpq-
> > 
> > Did you directly download that one package, or install it via apt?
> Because I wonder why it did not pull in the required dependencies.
> 


[Attachment #3 (text/html)]

<div dir="ltr"><div><br></div>Hi,  <div>I have a SO 64bit (not arm 64)   so I have  \
downloaded the package manually to  collect all libraries for cross compilation,it is \
true there are missing dependencies because there are many packages (on Windows all \
dll are under folder libs).</div><div>Now I am searching  where   libpgcommon and \
libpgport where are installed.   I will install a SO arm64 to search library \
alternative  I thinks should build Postgresql for \
Arm.</div><div>Thanks</div><div>Pier<br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">Il giorno lun 18 dic 2023 alle ore 01:03 Ron Johnson &lt;<a \
href="mailto:ronljohnsonjr@gmail.com">ronljohnsonjr@gmail.com</a>&gt; ha \
scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
dir="ltr">On Sun, Dec 17, 2023 at 5:14 PM Piergiorgio Valli &lt;<a \
href="mailto:piervalli@gmail.com" target="_blank">piervalli@gmail.com</a>&gt; \
wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi \
all,</div><div><br></div><div>I should use the client of Postgresql on Arm64, Host \
where i build is Ubuntu 20.04 64bit<br></div><div><br></div><div>I have downloaded \
the library from Ubuntu repository <a \
href="http://ftp.de.debian.org/debian/pool/main/p/postgresql-15/libpq-dev_15.5-0+deb12u1_arm64.deb" \
target="_blank">http://ftp.de.debian.org/debian/pool/main/p/postgresql-15/libpq-dev_15.5-0+deb12u1_arm64.deb</a></div><div><br></div><div>When \
I am building the library with libpq.a it shows following error,   probably there are \
missings libraries. Do you know the additional library that I need to \
link?<br></div><div><pre \
id="m_-1555090022249647070m_407392207873665191gmail-out">/home/pier/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ \
-c -target aarch64-linux-android21 -fno-limit-debug-info -fPIC \
-fstack-protector-strong -DANDROID -O2 -fPIC  -I. \
-I/home/pier/data/build/libpq-dev_15.5-0+deb12u1_arm64/data/usr/include \
-I/home/pier/data/build/libpq-dev_15.5-0+deb12u1_arm64/data/usr/include \
-I/home/pier/data/build/qt-everywhere-src-5.15.10/qtbase/mkspecs/android-clang -o \
main.o main.cpp &gt; \
/home/pier/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ \
-target aarch64-linux-android21 -fno-limit-debug-info -Wl,--build-id=sha1 \
-Wl,--no-undefined -Wl,-z,noexecstack -shared -o psql main.o   \
-Llibpq-dev_12.2-4_arm64/data/usr/lib/aarch64-linux-gnu/lib \
-L/home/pier/data/build/libpq-dev_15.5-0+deb12u1_arm64/data/usr/lib -lpq   -llog -lz \
-lm -ldl -lc <br>d: error: undefined symbol: pg_encoding_mblen
&gt; &gt;&gt;&gt; referenced by fe-exec.o:(PQescapeStringInternal) in archive \
/home/pier/data/build/libpq-</pre></div></div></blockquote><div>Did you directly \
download that one package, or install it via apt?   Because I wonder why it did not \
pull in the required dependencies.  </div></div></div> \
</blockquote></div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic