You are not logged in.

#1 2020-05-02 14:06:33

SixthSurge
Member
Registered: 2020-05-02
Posts: 2

Can't install qt3.

Hi,

I am trying to install qt3 off the AUR which is a dependency of the profiling tool lprof, however I can't get the PKGBUILD to work.

At first the issue was that it couldn't find <rpc/rpc.h>, so I installed and linked libtirpc to fix that error. However now it fails later. Here is the error log: https://pastebin.com/MTru1PmT

Is this the correct way to install qt3? I've heard about qtchooser but I'm not sure if that's what I need.

Thanks.

Offline

#2 2020-05-02 14:33:10

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: Can't install qt3.

Moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-05-02 14:57:32

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Can't install qt3.

If you do not need postgresql support qt3 will build without it.  Although I would not recommend using such an old project.

git diff
diff --git a/PKGBUILD b/PKGBUILD
index 5e57fa9..d1f614a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,10 +12,9 @@ url="http://qt.io"
 license=('GPL')
 depends=('libpng' 'libxmu' 'libxcursor' 'libxinerama' 'glu' 'libxft'
          'libxrandr' 'libmng' 'libunistring' 'libnsl' 'libtirpc')
-makedepends=('mariadb' 'postgresql' 'unixodbc' 'sqlite' 'mesa')
+makedepends=('mariadb' 'unixodbc' 'sqlite' 'mesa')
 optdepends=('qtchooser: set the default Qt toolkit'
             'libmariadbclient: MariaDB driver'
-            'postgresql-libs: PostgreSQL driver'
             'unixodbc: ODBC driver')
 options=('!docs')
 source=(http://download.qt.io/archive/qt/3/qt-x11-free-${pkgver}.tar.gz
@@ -82,7 +81,7 @@ build() {
     -plugindir /usr/lib/qt3/plugins \
     -datadir /usr/share/qt3 \
     -translationdir /usr/share/qt3/translations \
-    -I/usr/include/mysql -I/usr/include/postgresql/server \
+    -I/usr/include/mysql\
     -I/usr/include/tirpc \
     -platform linux-g++$ARCH \
     -system-zlib \
@@ -95,7 +94,7 @@ build() {
     -stl \
     -system-lib{png,jpeg,mng} \
     -no-g++-exceptions \
-    -plugin-sql-{mysql,psql,sqlite,odbc}
+    -plugin-sql-{mysql,sqlite,odbc}
 
   make
 }

Offline

#4 2020-05-02 14:58:53

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Can't install qt3.

Comments on the aur qt3 page suggest postgresql < 10 is needed, try building against https://aur.archlinux.org/packages/postgresql-9.6/


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2020-05-02 16:34:51

SixthSurge
Member
Registered: 2020-05-02
Posts: 2

Re: Can't install qt3.

Thank you everyone! I got it working.

Offline

Board footer

Powered by FluxBB