[arch-general] Help need with pkgbuild failure
I used to be on this list till my last email address, died, so re-joined. I posted this with a file attachment yesterday and it didn't reach the list, so here it is again, without the file. I've been programming gambas3 for some months, and use a modified PKGBUILD from an old one I obtained ages ago. I've compiled daily updates of Gambas3 svn for the last 9 months, never failed, but now won't work complaining it can't find: -lqt-mt These files seem to be there: /opt/qt/lib/libqt-mt.prl /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt-mt.so.3 /opt/qt/lib/libqt-mt.so.3.3 /opt/qt/lib/libqt-mt.so.3.3.8 I sent this to the gambas list and got Benoi't reply below:
/usr/bin/ld: cannot find -lqt-mt collect2: ld returned 1 exit status make[5]: *** [gb.qt.kde.html.la] Error 1 make[5]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt.kde/src/html' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt.kde/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt.kde' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt.kde' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk' make: *** [all] Error 2 ==> ERROR: Build Failed. Aborting...
Any idea's
Regards
Richard
First, do a "./reconf && ./configure -C". Then check that the qt 3 library is
installed on your system.
As I didn't know how to apply his comment above to PKGBUILD"s as I don't
understand them at all, I couldn't proceed. I've emailed Toni who seems to
maintain a version of this in AUR for gambas2
Any help appreciated
=======================
Contributor: Toni Foerster
On Friday 02 January 2009 09:22:10 pm richard terry wrote:
I used to be on this list till my last email address, died, so re-joined. I posted this with a file attachment yesterday and it didn't reach the list, so here it is again, without the file.
I've been programming gambas3 for some months, and use a modified PKGBUILD from an old one I obtained ages ago. I've compiled daily updates of Gambas3 svn for the last 9 months, never failed, but now won't work complaining it can't find: -lqt-mt
These files seem to be there: /opt/qt/lib/libqt-mt.prl /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt-mt.so.3 /opt/qt/lib/libqt-mt.so.3.3 /opt/qt/lib/libqt-mt.so.3.3.8
I believe your missing the static library libqt-mt.a So recompile your version of qt to have both shared and static libraries by adding -static to the qt PKGBUILD (qt-x11-free-3.3.8) ./configure -prefix /opt/qt -platform linux-g++$ARCH \ -system-zlib -qt-gif -release -shared -static -sm -nis -thread -stl \ -{system-lib,plugin-imgfmt-}{png,jpeg,mng} \ -no-g++-exceptions -plugin-sql-{mysql,psql,sqlite,odbc} OR try adding -shared to your configure line in your Gambas3 PKGBUILD file ./configure --disable-qte \ --prefix=/usr \ -shared [putolin]
On Fri, 2009-01-02 at 21:42 -0500, Baho Utot wrote:
On Friday 02 January 2009 09:22:10 pm richard terry wrote:
I used to be on this list till my last email address, died, so re-joined. I posted this with a file attachment yesterday and it didn't reach the list, so here it is again, without the file.
I've been programming gambas3 for some months, and use a modified PKGBUILD from an old one I obtained ages ago. I've compiled daily updates of Gambas3 svn for the last 9 months, never failed, but now won't work complaining it can't find: -lqt-mt
These files seem to be there: /opt/qt/lib/libqt-mt.prl /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt-mt.so.3 /opt/qt/lib/libqt-mt.so.3.3 /opt/qt/lib/libqt-mt.so.3.3.8
I believe your missing the static library libqt-mt.a
So
recompile your version of qt to have both shared and static libraries by adding -static to the qt PKGBUILD (qt-x11-free-3.3.8)
./configure -prefix /opt/qt -platform linux-g++$ARCH \ -system-zlib -qt-gif -release -shared -static -sm -nis -thread -stl \ -{system-lib,plugin-imgfmt-}{png,jpeg,mng} \ -no-g++-exceptions -plugin-sql-{mysql,psql,sqlite,odbc}
OR
try adding -shared to your configure line in your Gambas3 PKGBUILD file
./configure --disable-qte \ --prefix=/usr \ -shared
[putolin]
Recompiling qt to include static libs won't help a lot I think. Note that you need to source /etc/profile.d/qt3.sh when building qt3 packages.
On Sun, 4 Jan 2009 03:38:50 am Jan de Groot wrote:
On Fri, 2009-01-02 at 21:42 -0500, Baho Utot wrote:
On Friday 02 January 2009 09:22:10 pm richard terry wrote:
I used to be on this list till my last email address, died, so re-joined. I posted this with a file attachment yesterday and it didn't reach the list, so here it is again, without the file.
I've been programming gambas3 for some months, and use a modified PKGBUILD from an old one I obtained ages ago. I've compiled daily updates of Gambas3 svn for the last 9 months, never failed, but now won't work complaining it can't find: -lqt-mt
These files seem to be there: /opt/qt/lib/libqt-mt.prl /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt-mt.so.3 /opt/qt/lib/libqt-mt.so.3.3 /opt/qt/lib/libqt-mt.so.3.3.8
I believe your missing the static library libqt-mt.a
So
recompile your version of qt to have both shared and static libraries by adding -static to the qt PKGBUILD (qt-x11-free-3.3.8)
./configure -prefix /opt/qt -platform linux-g++$ARCH \ -system-zlib -qt-gif -release -shared -static -sm -nis -thread -stl \ -{system-lib,plugin-imgfmt-}{png,jpeg,mng} \ -no-g++-exceptions -plugin-sql-{mysql,psql,sqlite,odbc}
OR
try adding -shared to your configure line in your Gambas3 PKGBUILD file
./configure --disable-qte \ --prefix=/usr \ -shared
[putolin]
Recompiling qt to include static libs won't help a lot I think. Note that you need to source /etc/profile.d/qt3.sh when building qt3 packages. This seems to be the qt3.sh file, do I need to add anything else, as this dosn't obviously help:
export QTDIR=/opt/qt export QT_XFT=true export PATH=$PATH:$QTDIR/bin export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt/lib/pkgconfig
On Sat, 3 Jan 2009 01:42:19 pm you wrote:
On Friday 02 January 2009 09:22:10 pm richard terry wrote:
I used to be on this list till my last email address, died, so re-joined. I posted this with a file attachment yesterday and it didn't reach the list, so here it is again, without the file.
I've been programming gambas3 for some months, and use a modified PKGBUILD from an old one I obtained ages ago. I've compiled daily updates of Gambas3 svn for the last 9 months, never failed, but now won't work complaining it can't find: -lqt-mt
These files seem to be there: /opt/qt/lib/libqt-mt.prl /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt-mt.so.3 /opt/qt/lib/libqt-mt.so.3.3 /opt/qt/lib/libqt-mt.so.3.3.8
I believe your missing the static library libqt-mt.a
So
recompile your version of qt to have both shared and static libraries by adding -static to the qt PKGBUILD (qt-x11-free-3.3.8)
./configure -prefix /opt/qt -platform linux-g++$ARCH \ -system-zlib -qt-gif -release -shared -static -sm -nis -thread -stl \ -{system-lib,plugin-imgfmt-}{png,jpeg,mng} \ -no-g++-exceptions -plugin-sql-{mysql,psql,sqlite,odbc}
OR
try adding -shared to your configure line in your Gambas3 PKGBUILD file
./configure --disable-qte \ --prefix=/usr \ -shared
[putolin] Ok, after hours of searching and trying everything, I found this in the forum and manually did this to test it.
./configure -C make LDFLAGS+="-L/opt/qt/lib" make install which seemed to work, so I added it to the PKGBUILD and it worked. Always a pity when one dosn't understand what one is doing. Why would this be suddenly needed after many many months of it working without it. Regards Richard
participants (3)
-
Baho Utot
-
Jan de Groot
-
richard terry