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

Chris Delis cedelis at uillinois.edu
Tue Mar 30 12:23:51 EST 2004


On Tue, Mar 30, 2004 at 11:28:36AM -0500, Daniel Walton wrote:
> 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
> -lmysqlclient


have you tried:

-L/usr/local/mysql-3.23.58-pc-linux-i686/lib

?

Just a thought... It's been a while since I built QT.


> 
> 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
> [root@/usr/local/qt3]#
> 
> /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
> /usr/lib/mysql/libmysqlclient.so.10.0.0
> /usr/lib/mysql/libmysqlclient.so.10
> /usr/lib/mysql/libmysqlclient_r.so.10.0.0
> /usr/lib/mysql/libmysqlclient_r.so.10
> /usr/local/mysql-3.23.58-pc-linux-i686/lib/libmysqlclient.a
> /usr/local/mysql-3.23.58-pc-linux-i686/lib/libmysqlclient_r.a
> /home/mythtv/mysql-3.23.58-pc-linux-i686/lib/libmysqlclient.a
> /home/mythtv/mysql-3.23.58-pc-linux-i686/lib/libmysqlclient_r.a
> [root@/usr/local/qt3]#
> 
> Any ideas on what to look at next?
> 
> thx
> Daniel
> 
> 

> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list