Results 1 to 3 of 3

Thread: Postgre driver mistic in windows

  1. #1
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Postgre driver mistic in windows

    He he..I thinked all problems with it leaved in Qt3, but i see that its wrong
    So i'll try explain...I did all steps from QAssistant for compiled postgre driver under windows...In first case qmake was fine, but nmake sad something like that : "can't include file libpq-fe.h"..But i give it path in qmake ! I didn't want corect path in qt driver source, than i just saved path to include and libs into windows sytem vars and reboot machine..
    After that i try do qmake again and ....em...expalin me what is it ?

    c:\Qt\4.2.2\src\plugins\sqldrivers\psql\psql.pro:9 : Parse Error ('first: all')
    Error processing project file: psql.pro
    Why my pro file is damage ?
    First lines of pro file...
    ################################################## ###########################
    # Makefile for building: qsqlpsql
    # Generated by qmake (2.01a) (Qt 4.2.2) on: ?? 13. ??? 20:38:20 2007
    # Project: psql.pro
    # Template: lib
    # Command: qmake -win32 -o psql.pro psql.pro
    ################################################## ###########################

    first: all
    install: debug-install release-install
    uninstall: debug-uninstall release-uninstall
    a life without programming is like an empty bottle

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Postgre driver mistic in windows

    What exactly did you pass to configure.exe in the first place?

  3. #3
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Postgre driver mistic in windows

    configure.exe.....i use it only when i install Qt4 lib. I really dont remember what i passed to it...But after installing library i have qt postgre driver sources and pro file
    Now i use qmake and nmake that i read in documentation
    qmake -o Makefile "INCLUDEPATH+=C:\Program Files\PostgreSQL\8.2\include" "LIBS+=C:\Program Files\PostgreSQL\8.2\lib\ms\l
    ibpq.lib" psql.pro
    and then
    nmake
    a life without programming is like an empty bottle

Similar Threads

  1. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 01:00
  2. OCI Driver in Qt4 for Windows
    By DoNaLd in forum Installation and Deployment
    Replies: 2
    Last Post: 14th July 2006, 14:43
  3. Qt and windows vista
    By munna in forum General Discussion
    Replies: 8
    Last Post: 11th January 2006, 22:33

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.