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

Daniel Walton dwalton at cisco.com
Tue Mar 30 13:32:56 EST 2004


yeh I think Chris nailed it, I needed to use
-L/usr/local/mysql-3.23.58-pc-linux-i686/lib instead of -L/usr/lib/mysql

It's been compiling for about 45 minutes which is a lot longer than it was going
before so it looked like that was the problem.

Daniel

On Tue, 30 Mar 2004, Claus M. Christiansen wrote:

>
> I've had the same problem, but I solved it with:
> ./configure -I/usr/local/mysql/include -L/usr/local/mysql/lib //Plus the
> options you had...
>
> Claus
>
> 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
> >
> >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
> >
> >
>
>
> _______________________________________________
> 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