Qt-interest Archive, August 2007
(macosX,Qt4.3.1devel+src,mysql)driver mysql not available
Message 1 in thread
Hello,
I have installed mysql from mysql.com, then Qt4.3.1devel, then
Qt4.3.1src configured with the option "./configure -plugin-qt-mysql".
this configuration seems to run well, without errors.
I manage to connect to mysql with navicat, but when I try with Qt
using the same parameters, I have the error message: "driver not
loaded"; the available drivers are QSQLite,ODBC,ODBC3.
Do you know how to make this connection run?
I found a tutorial telling about ldconfig, libmysqlclient.so, and
/etc/ld.so.conf which are all not in my hard disk.
regards,
lolveley.
--
[ signature omitted ]
Message 2 in thread
look for libqsqlmysql.dylib and libqsqlmysql_debug.dylib those are
drivers (debug and release versions). ldconfig and /etc/ld.so.conf
are linux tools and you won't find them in Mac OS X
On Aug 10, 2007, at 5:14 PM, lolveley wrote:
> Hello,
>
> I have installed mysql from mysql.com, then Qt4.3.1devel, then
> Qt4.3.1src configured with the option "./configure -plugin-qt-
> mysql". this configuration seems to run well, without errors.
> I manage to connect to mysql with navicat, but when I try with
> Qt using the same parameters, I have the error message: "driver not
> loaded"; the available drivers are QSQLite,ODBC,ODBC3.
> Do you know how to make this connection run?
> I found a tutorial telling about ldconfig, libmysqlclient.so,
> and /etc/ld.so.conf which are all not in my hard disk.
>
>
> regards,
>
> lolveley.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
--
[ signature omitted ]
Message 3 in thread
Hello,
thank you for your answer.
I found the two files, but in the installation folder (those where I
untar the archive).
Am I obliged to recompile Qt after a "
qmake -o Makefile "INCLUDEPATH+=/usr/local/include/mysql" "LIBS+=-
L/usr/local/lib/mysql -lmysqlclient" mysql.pro && make " ?
Or does Qt&eclipse will see the changes?
regards,
lolveley.
Kamil Klimek a écrit :
> look for libqsqlmysql.dylib and libqsqlmysql_debug.dylib those are
> drivers (debug and release versions). ldconfig and /etc/ld.so.conf are
> linux tools and you won't find them in Mac OS X
>
> On Aug 10, 2007, at 5:14 PM, lolveley wrote:
>
>> Hello,
>>
>> I have installed mysql from mysql.com, then Qt4.3.1devel, then
>> Qt4.3.1src configured with the option "./configure -plugin-qt-mysql".
>> this configuration seems to run well, without errors.
>> I manage to connect to mysql with navicat, but when I try with Qt
>> using the same parameters, I have the error message: "driver not
>> loaded"; the available drivers are QSQLite,ODBC,ODBC3.
>> Do you know how to make this connection run?
>> I found a tutorial telling about ldconfig, libmysqlclient.so, and
>> /etc/ld.so.conf which are all not in my hard disk.
>>
>>
>> regards,
>>
>> lolveley.
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 4 in thread
You will have to put compiled file into plugins directory of your Qt
instalation inside of sqldrivers/
You don't need to recompile whole Qt, since sqldrivers are plugins
On Aug 10, 2007, at 7:10 PM, lolveley wrote:
> Hello,
>
> thank you for your answer.
> I found the two files, but in the installation folder (those where
> I untar the archive).
> Am I obliged to recompile Qt after a "
>
> qmake -o Makefile "INCLUDEPATH+=/usr/local/include/mysql" "LIBS+=-
> L/usr/local/lib/mysql -lmysqlclient" mysql.pro && make " ?
>
> Or does Qt&eclipse will see the changes?
>
> regards,
>
> lolveley.
>
>
>
> Kamil Klimek a écrit :
>> look for libqsqlmysql.dylib and libqsqlmysql_debug.dylib those are
>> drivers (debug and release versions). ldconfig and /etc/ld.so.conf
>> are linux tools and you won't find them in Mac OS X
>>
>> On Aug 10, 2007, at 5:14 PM, lolveley wrote:
>>
>>> Hello,
>>>
>>> I have installed mysql from mysql.com, then Qt4.3.1devel, then
>>> Qt4.3.1src configured with the option "./configure -plugin-qt-
>>> mysql". this configuration seems to run well, without errors.
>>> I manage to connect to mysql with navicat, but when I try
>>> with Qt using the same parameters, I have the error message:
>>> "driver not loaded"; the available drivers are QSQLite,ODBC,ODBC3.
>>> Do you know how to make this connection run?
>>> I found a tutorial telling about ldconfig, libmysqlclient.so,
>>> and /etc/ld.so.conf which are all not in my hard disk.
>>>
>>>
>>> regards,
>>>
>>> lolveley.
>>>
>>> --
>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>> with "unsubscribe" in the subject or the body.
>>> List archive and information: http://lists.trolltech.com/qt-
>>> interest/
>>>
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
--
[ signature omitted ]
Message 5 in thread
well, I am not sure about what to do, however.
Here is the content of the installation directory (the one of untaring):
.../qt-mac/opensource-src-4.3.1/plugin/sqldrivers: contains
libqsql.dylib, libsmysql_debug.dylib and more
and in the folder of destination (where "make install" put them):
/usr/local/trolltech/qt-4.3.1/plugins/sqldrivers: contains ... the two
same files...
are you sure the problem comes from there?
lolveley.
PS: your help is invaluable for me!
Kamil Klimek a écrit :
> You will have to put compiled file into plugins directory of your Qt
> instalation inside of sqldrivers/
> You don't need to recompile whole Qt, since sqldrivers are plugins
>
> On Aug 10, 2007, at 7:10 PM, lolveley wrote:
>
>> Hello,
>>
>> thank you for your answer.
>> I found the two files, but in the installation folder (those where I
>> untar the archive).
>> Am I obliged to recompile Qt after a "
>>
>> qmake -o Makefile "INCLUDEPATH+=/usr/local/include/mysql" "LIBS+=-
>> L/usr/local/lib/mysql -lmysqlclient" mysql.pro && make " ?
>>
>> Or does Qt&eclipse will see the changes?
>>
>> regards,
>>
>> lolveley.
>>
>>
>>
>> Kamil Klimek a écrit :
>>> look for libqsqlmysql.dylib and libqsqlmysql_debug.dylib those are
>>> drivers (debug and release versions). ldconfig and /etc/ld.so.conf
>>> are linux tools and you won't find them in Mac OS X
>>>
>>> On Aug 10, 2007, at 5:14 PM, lolveley wrote:
>>>
>>>> Hello,
>>>>
>>>> I have installed mysql from mysql.com, then Qt4.3.1devel, then
>>>> Qt4.3.1src configured with the option "./configure
>>>> -plugin-qt-mysql". this configuration seems to run well, without
>>>> errors.
>>>> I manage to connect to mysql with navicat, but when I try with
>>>> Qt using the same parameters, I have the error message: "driver not
>>>> loaded"; the available drivers are QSQLite,ODBC,ODBC3.
>>>> Do you know how to make this connection run?
>>>> I found a tutorial telling about ldconfig, libmysqlclient.so,
>>>> and /etc/ld.so.conf which are all not in my hard disk.
>>>>
>>>>
>>>> regards,
>>>>
>>>> lolveley.
>>>>
>>>> --
>>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>>> with "unsubscribe" in the subject or the body.
>>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>>
>>>
>>> --
>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>> with "unsubscribe" in the subject or the body.
>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>
>>>
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 6 in thread
another thing: I have installed mysql from an archive downloaded from
mysql.com; don't ya think there will be a conflict between the server
installation (from mysql.com) and the mysql plugins?
lolveley.
lolveley a écrit :
> well, I am not sure about what to do, however.
> Here is the content of the installation directory (the one of untaring):
> .../qt-mac/opensource-src-4.3.1/plugin/sqldrivers: contains
> libqsql.dylib, libsmysql_debug.dylib and more
> and in the folder of destination (where "make install" put them):
> /usr/local/trolltech/qt-4.3.1/plugins/sqldrivers: contains ... the two
> same files...
>
> are you sure the problem comes from there?
>
> lolveley.
>
> PS: your help is invaluable for me!
>
>
>
>
> Kamil Klimek a écrit :
>> You will have to put compiled file into plugins directory of your Qt
>> instalation inside of sqldrivers/
>> You don't need to recompile whole Qt, since sqldrivers are plugins
>>
>> On Aug 10, 2007, at 7:10 PM, lolveley wrote:
>>
>>> Hello,
>>>
>>> thank you for your answer.
>>> I found the two files, but in the installation folder (those where I
>>> untar the archive).
>>> Am I obliged to recompile Qt after a "
>>>
>>> qmake -o Makefile "INCLUDEPATH+=/usr/local/include/mysql" "LIBS+=-
>>> L/usr/local/lib/mysql -lmysqlclient" mysql.pro && make " ?
>>>
>>> Or does Qt&eclipse will see the changes?
>>>
>>> regards,
>>>
>>> lolveley.
>>>
>>>
>>>
>>> Kamil Klimek a écrit :
>>>> look for libqsqlmysql.dylib and libqsqlmysql_debug.dylib those are
>>>> drivers (debug and release versions). ldconfig and /etc/ld.so.conf
>>>> are linux tools and you won't find them in Mac OS X
>>>>
>>>> On Aug 10, 2007, at 5:14 PM, lolveley wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I have installed mysql from mysql.com, then Qt4.3.1devel, then
>>>>> Qt4.3.1src configured with the option "./configure
>>>>> -plugin-qt-mysql". this configuration seems to run well, without
>>>>> errors.
>>>>> I manage to connect to mysql with navicat, but when I try with
>>>>> Qt using the same parameters, I have the error message: "driver
>>>>> not loaded"; the available drivers are QSQLite,ODBC,ODBC3.
>>>>> Do you know how to make this connection run?
>>>>> I found a tutorial telling about ldconfig, libmysqlclient.so,
>>>>> and /etc/ld.so.conf which are all not in my hard disk.
>>>>>
>>>>>
>>>>> regards,
>>>>>
>>>>> lolveley.
>>>>>
>>>>> --
>>>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>>>> with "unsubscribe" in the subject or the body.
>>>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>>>
>>>>
>>>> --
>>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>>> with "unsubscribe" in the subject or the body.
>>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>>
>>>>
>>>
>>> --
>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>> with "unsubscribe" in the subject or the body.
>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 7 in thread
I have advanced!
I have installed the port "mysql5-devel" with macports, then I used the
instructions:
cd $QTDIR/src/plugins/sqldrivers/mysql
qmake -o Makefile "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro
make
sudo make install
adapted to my own folders, and now, my program (Qt-C++ program) tells
my it recognizes the mysql driver. It's an important step!
BUT, there is a but, there is another error : I have the error message:
can't connect to local MySQL server through socket
'/opt/local/var/run/mysql5-devel/mysqld.sock' (2)
QMYSQL: unable to connect.
I will create a new thread for this error; but I can already say that
there is no mysqld.sock (nor any .sock) on my hard drive...
If you know how to advance, thank you.
lolveley.
lolveley a écrit :
> another thing: I have installed mysql from an archive downloaded from
> mysql.com; don't ya think there will be a conflict between the server
> installation (from mysql.com) and the mysql plugins?
>
> lolveley.
>
> lolveley a écrit :
>> well, I am not sure about what to do, however.
>> Here is the content of the installation directory (the one of untaring):
>> .../qt-mac/opensource-src-4.3.1/plugin/sqldrivers: contains
>> libqsql.dylib, libsmysql_debug.dylib and more
>> and in the folder of destination (where "make install" put them):
>> /usr/local/trolltech/qt-4.3.1/plugins/sqldrivers: contains ... the
>> two same files...
>>
>> are you sure the problem comes from there?
>>
>> lolveley.
>>
>> PS: your help is invaluable for me!
>>
>>
>>
>>
>> Kamil Klimek a écrit :
>>> You will have to put compiled file into plugins directory of your Qt
>>> instalation inside of sqldrivers/
>>> You don't need to recompile whole Qt, since sqldrivers are plugins
>>>
>>> On Aug 10, 2007, at 7:10 PM, lolveley wrote:
>>>
>>>> Hello,
>>>>
>>>> thank you for your answer.
>>>> I found the two files, but in the installation folder (those where
>>>> I untar the archive).
>>>> Am I obliged to recompile Qt after a "
>>>>
>>>> qmake -o Makefile "INCLUDEPATH+=/usr/local/include/mysql" "LIBS+=-
>>>> L/usr/local/lib/mysql -lmysqlclient" mysql.pro && make " ?
>>>>
>>>> Or does Qt&eclipse will see the changes?
>>>>
>>>> regards,
>>>>
>>>> lolveley.
>>>>
>>>>
>>>>
>>>> Kamil Klimek a écrit :
>>>>> look for libqsqlmysql.dylib and libqsqlmysql_debug.dylib those are
>>>>> drivers (debug and release versions). ldconfig and /etc/ld.so.conf
>>>>> are linux tools and you won't find them in Mac OS X
>>>>>
>>>>> On Aug 10, 2007, at 5:14 PM, lolveley wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I have installed mysql from mysql.com, then Qt4.3.1devel, then
>>>>>> Qt4.3.1src configured with the option "./configure
>>>>>> -plugin-qt-mysql". this configuration seems to run well, without
>>>>>> errors.
>>>>>> I manage to connect to mysql with navicat, but when I try
>>>>>> with Qt using the same parameters, I have the error message:
>>>>>> "driver not loaded"; the available drivers are QSQLite,ODBC,ODBC3.
>>>>>> Do you know how to make this connection run?
>>>>>> I found a tutorial telling about ldconfig, libmysqlclient.so,
>>>>>> and /etc/ld.so.conf which are all not in my hard disk.
>>>>>>
>>>>>>
>>>>>> regards,
>>>>>>
>>>>>> lolveley.
>>>>>>
>>>>>> --
>>>>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>>>>> with "unsubscribe" in the subject or the body.
>>>>>> List archive and information:
>>>>>> http://lists.trolltech.com/qt-interest/
>>>>>>
>>>>>
>>>>> --
>>>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>>>> with "unsubscribe" in the subject or the body.
>>>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>>>
>>>>>
>>>>
>>>> --
>>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>>> with "unsubscribe" in the subject or the body.
>>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>>
>>>
>>> --
>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>> with "unsubscribe" in the subject or the body.
>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>
>>>
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>