[mythtv-users] qt 3.1.1 compile issue - /usr/bin/ld: cannot find -lmysqlclient

Daniel Walton dwalton at cisco.com
Tue Mar 30 11:28:36 EST 2004

I'm trying to compile the latest myth CVS to pick up some pcHDTV fixes but I'm
having problems getting QT compiled.  I download qt-x11-free-3.1.1 and uzipped
it to /usr/local/qt3, I have set my QTDIR env variable accordingly, and I have
installed mysql.  From the /usr/local/qt3 directory I do the following:

./configure -qt-gif -system-zlib -qt-sql-mysql -thread -system-libpng
-system-libjpeg -system-libmng -I/usr/include/mysql -L/usr/lib/mysql

and then I issue a gmake per the output of the ./configure but gmake isn't able
to locate -lmysqlclient:

sqlclient -lmysqlclient -lpng -lz -lGL -lXmu -lXrender
-lXinerama -lXft -lfreetype -lXext -lX11 -lm -lSM
-lICE -ldl -lpthread
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
gmake[2]: *** [../lib/libqt-mt.so.3.1.1] Error 1
gmake[2]: Leaving directory `/usr/local/qt3/src'
gmake[1]: *** [sub-src] Error 2
gmake[1]: Leaving directory `/usr/local/qt3'
gmake: *** [init] Error 2

/etc/ld.so.conf contains /usr/lib/mysql and I've rerun ldconfig.  As far as I
can tell I have the mysqlclient library installed correctly:

[root@/usr/local/qt3]# locate mysqlclient

Any ideas on what to look at next?


More information about the mythtv-users mailing list