Results 1 to 2 of 2

Thread: SQL in Centos and Ubuntu

  1. #1
    Join Date
    Dec 2009
    Location
    Mexico
    Posts
    26
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question SQL in Centos and Ubuntu

    help me with this problem user that has the following problem.

    Hello, install the same version of QT 4.5.3.
    In Centos compile a program that uses postgres and it works. But in ubuntu, no. He says the drivers available but does not throw any. I go to the folder where are the sources of the drivers and compile and install, but the problem remains. They know they can be happening?

    Technically, in the compilation of the drivers, none. I generates a

    cd /opt/qtsdk/qt/src/plugins/sqldrivers/psql/
    /opt/qtsdk/qt/bin/qmake
    make
    make install

    This last command strip these messages:

    install -m 755 -p "libqsqlpsql.so" "/opt/qtsdk/qt/plugins/sqldrivers/libqsqlpsql.so"
    strip --strip-unneeded "/opt/qtsdk/qt/plugins/sqldrivers/libqsqlpsql.so"

    Then when I run my program, I pull these lines:

    [root@spool_cabildo mcacontrol]# ./mcacontrol
    QSqlDatabase: QPSQL driver not loaded
    QSqlDatabase: available drivers:
    QSqlQuery::exec: database not open
    Segmentation violation

    Install it on another Centos 5.3 and I spend the same as Ubuntu. I can not remember that I made for it from going in the first Centos. (Look at the history ... and the qtcreator)
    Thank you very much.

    qt en espanol

  2. #2
    Join Date
    Dec 2009
    Location
    Mexico
    Posts
    26
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Thumbs up Re: SQL in Centos and Ubuntu

    I leave the solution here. only had to add the following:

    Qt Code:
    1. export QT_PLUGIN_PATH=/opt/qtsdk/qt/plugins
    To copy to clipboard, switch view to plain text mode 

    Here is the source

Similar Threads

  1. Replies: 7
    Last Post: 26th November 2009, 13:00
  2. Qt 3 on CentOS 5: page size incorrect
    By agajania in forum Installation and Deployment
    Replies: 0
    Last Post: 30th April 2009, 23:04
  3. Using QT in CentOS
    By vishakvkurup in forum Qt Programming
    Replies: 7
    Last Post: 15th January 2008, 22:01
  4. Qt4 on Centos 64 m/c
    By a_m_mukul in forum Qt Programming
    Replies: 2
    Last Post: 22nd November 2007, 15:22
  5. Qt 4.2.3 centos 5.0 - cannot find -lXext
    By jcr in forum Installation and Deployment
    Replies: 2
    Last Post: 16th May 2007, 18:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.