Results 1 to 20 of 29

Thread: Access to PostgreSQL DB on a linux server

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Access to PostgreSQL DB on a linux server

    Thank you,

    I tried what you suggested but I get the same answer when I run the application..

    Is there another step to do?

    Could it be somthing like it is not finding the lib??

    Thank you

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Access to PostgreSQL DB on a linux server

    Just to assure, you did the "make install" step too, right? What's the contents of /path/to/qt/plugins/sqldrivers?
    J-P Nurmi

  3. #3
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Access to PostgreSQL DB on a linux server

    No, I did not "make install", because on that machine I had not root privileges..
    anyway I did ./configure -prefix-install..

    Here is the list of files in that folder:

    libqsqlite.so
    libqsqlite.so.debug
    libqsqlmysql.so
    libqsqlmysql.so.debug
    libqsqlpsql.so
    libqsqlpsql.so.debug


    Thanks

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Access to PostgreSQL DB on a linux server

    Hmm, what does
    qmake -query QT_INSTALL_PLUGINS
    output? Those plugins are in <output>/sqldrivers right? And what does
    ldd libqsqlpsql.so
    output?
    J-P Nurmi

  5. #5
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Access to PostgreSQL DB on a linux server

    IN: qmake -query QT_INSTALL_PLUGINS
    OUT:
    /usr/local/Trolltech/Qt-4.3.3/plugins

    mmhh strange ..that's not correct!!! it is a wrong path..



    IN: ldd libqsqlpsql.so
    OUT:
    libpq.so.4 => /usr/lib/libpq.so.4 (0x004f9000)
    libQtSql.so.4 => /home/fmas/qt-x11-opensource-src-4.3.3/lib/libQtSql.so.4 (0x00ad9000)
    libQtCore.so.4 => /home/fmas/qt-x11-opensource-src-4.3.3/lib/libQtCore.so.4 (0x00d1e000)
    libz.so.1 => /usr/lib/libz.so.1 (0x002c5000)
    librt.so.1 => /lib/tls/librt.so.1 (0x00381000)
    libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00323000)
    libdl.so.2 => /lib/libdl.so.2 (0x00f7c000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x008d2000)
    libm.so.6 => /lib/tls/libm.so.6 (0x00c09000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x003cf000)
    libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
    libssl.so.4 => /lib/libssl.so.4 (0x0023c000)
    libcrypto.so.4 => /lib/libcrypto.so.4 (0x003d7000)
    libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00515000)
    libcrypt.so.1 => /lib/libcrypt.so.1 (0x002d5000)
    libresolv.so.2 => /lib/libresolv.so.2 (0x00729000)
    libnsl.so.1 => /lib/libnsl.so.1 (0x00813000)
    /lib/ld-linux.so.2 (0x005f9000)
    libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00777000)
    libcom_err.so.2 => /lib/libcom_err.so.2 (0x00270000)
    libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00b6d000)

    How do you justify this??

    Thank you for your reply

  6. #6
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Access to PostgreSQL DB on a linux server

    The Path /usr/local/Trolltech/Qt-4.3.3/plugins

    does not exist..

    How do make sure It will be find the righ path?

Similar Threads

  1. Replies: 0
    Last Post: 16th April 2007, 13:18
  2. Replies: 1
    Last Post: 4th October 2006, 17:05
  3. Access MS .mdb file on Linux
    By iGoo in forum Qt Programming
    Replies: 3
    Last Post: 15th June 2006, 10:42

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
  •  
Qt is a trademark of The Qt Company.