Results 1 to 5 of 5

Thread: Error compiling psql plugin

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Error compiling psql plugin

    Do you have libpq-fe.h header somewhere on your system? Maybe you have to install some additional package like postgresql-devel?

  2. #2
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    29
    Thanked 5 Times in 5 Posts

    Default Re: Error compiling psql plugin

    yes: /usr/include/postgresql/libpq-fe.h
    libpq-dev is installed, I also tried to compile with
    make -I /usr/include/postgresql/
    Last edited by vieraci; 6th October 2007 at 01:58.

  3. #3
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2
    Thanked 14 Times in 12 Posts

    Default Re: Error compiling psql plugin

    You have to pass the include path to qmake already. Can you show us the qmake line you tried using to compile the postgres plugin?
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

  4. The following user says thank you to Methedrine for this useful post:

    vieraci (7th October 2007)

  5. #4
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    29
    Thanked 5 Times in 5 Posts

    Default Re: Error compiling psql plugin

    OK, I see where I went wrong,
    qmake -o Makefile "INCLUDEPATH+=/usr/include/pgsql" "LIBS+=-L/usr/lib -lpq" psql.pro
    My INCLUDEPATH was invalid.
    Thanks,

Similar Threads

  1. Need help making plugin
    By vieraci in forum Qt Programming
    Replies: 10
    Last Post: 24th September 2007, 13:20
  2. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13
  3. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05
  4. Qt4 win opensource + mysql plugin
    By vr in forum Installation and Deployment
    Replies: 3
    Last Post: 25th May 2007, 09:01

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.