Page 3 of 4 FirstFirst 1234 LastLast
Results 41 to 60 of 61

Thread: QPSQL problem

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

    Default Re: QPSQL problem

    Quote Originally Posted by LoneWolf View Post
    I installed MinGW 3.4.2 through qt installer. is it a problem?
    No, that's the recommended way while working with Qt. That's the version guaranteed to work flawlessly together with Qt.

    Dont you have cc1.exe in c:\mingw\bin?
    Nope.

    Dont I have to copy some .dlls to somewhere?
    Sorry, to do what? On Windows, DLLs are not needed for building. They are loaded at runtime. The corresponding .lib or .a is needed at compile time.

    Just remering...I have Windows Vista.
    That must be it...

    Anyway, could you show the output of "./configure --without-zlib"?
    J-P Nurmi

  2. #42
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I had copied cc1.exe to mingw/bin...

    Deleted cc1.exe from mingw/bin and tried './configure --without-zlib' in MSYS:

    Qt Code:
    1. checking for C compiler default output file name... configure: error: C compiler cannot create executables
    To copy to clipboard, switch view to plain text mode 

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

    Default Re: QPSQL problem

    Just curious, what if you try to install MinGW somewhere else than C root?
    J-P Nurmi

  4. #44
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I gonna try...

    Now output with cc1.exe copied to mingw/bin

    Qt Code:
    1. checking build system type... i686-pc-mingw32
    2. checking host system type... i686-pc-mingw32
    3. checking which template to use... win32
    4. checking whether to build with 64-bit integer date/time support... no
    5. checking whether NLS is wanted... no
    6. checking for default port number... 5432
    7. checking for gcc... gcc
    8. checking for C compiler default output file name... a.exe
    9. checking whether the C compiler works... yes
    10. checking whether we are cross compiling... no
    11. checking for suffix of executables... .exe
    12. checking for suffix of object files... o
    13. checking whether we are using the GNU C compiler... yes
    14. checking whether gcc accepts -g... yes
    15. checking for gcc option to accept ANSI C... none needed
    16. checking if gcc supports -Wdeclaration-after-statement... yes
    17. checking if gcc supports -Wendif-labels... yes
    18. checking if gcc supports -fno-strict-aliasing... yes
    19. checking if gcc supports -fwrapv... yes
    20. configure: using CFLAGS=-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
    21. checking whether the C compiler still works... yes
    22. checking how to run the C preprocessor... gcc -E
    23. checking allow thread-safe client libraries... yes
    24. checking whether to build with Tcl... no
    25. checking whether to build Perl modules... no
    26. checking whether to build Python modules... no
    27. checking whether to build with GSSAPI support... no
    28. checking whether to build with Kerberos 5 support... no
    29. checking whether to build with PAM support... no
    30. checking whether to build with LDAP support... no
    31. checking whether to build with Bonjour support... no
    32. checking whether to build with OpenSSL support... no
    33. configure: WARNING: *** Readline does not work on MinGW --- disabling
    34. checking for egrep... grep -E
    35. configure: using CPPFLAGS= -I./src/include/port/win32 -DEXEC_BACKEND
    36. configure: using LDFLAGS=-Wl,--allow-multiple-definition
    37. checking for ld used by GCC... /mingw/bin/ld
    38. checking if the linker (/mingw/bin/ld) is GNU ld... yes
    39. checking for ranlib... ranlib
    40. checking for strip... strip
    41. checking whether it is possible to strip libraries... yes
    42. checking for tar... /bin/tar
    43. checking whether ln -s works... yes
    44. checking for gawk... gawk
    45. checking for bison... no
    46. configure: WARNING:
    47. *** Without Bison you will not be able to build PostgreSQL from CVS nor
    48. *** change any of the parser definition files. You can obtain Bison from
    49. *** a GNU mirror site. (If you are using the official distribution of
    50. *** PostgreSQL then you do not need to worry about this, because the Bison
    51. *** output is pre-generated.) To use a different yacc program (possible,
    52. *** but not recommended), set the environment variable YACC before running
    53. *** 'configure'.
    54. checking for flex... no
    55. configure: WARNING:
    56. *** Without Flex you will not be able to build PostgreSQL from CVS or
    57. *** change any of the scanner definition files. You can obtain Flex from
    58. *** a GNU mirror site. (If you are using the official distribution of
    59. *** PostgreSQL then you do not need to worry about this because the Flex
    60. *** output is pre-generated.)
    61. checking for perl... /c/Perl/bin/perl
    62. checking for main in -lm... yes
    63. checking for library containing setproctitle... no
    64. checking for library containing dlopen... no
    65. checking for library containing socket... no
    66. checking for library containing shl_load... no
    67. checking for library containing getopt_long... none required
    68. checking for library containing crypt... no
    69. checking for library containing fdatasync... no
    70. checking for library containing shmget... no
    71. checking for ANSI C header files... yes
    72. checking for sys/types.h... yes
    73. checking for sys/stat.h... yes
    74. checking for stdlib.h... yes
    75. checking for string.h... yes
    76. checking for memory.h... yes
    77. checking for strings.h... yes
    78. checking for inttypes.h... yes
    79. checking for stdint.h... yes
    80. checking for unistd.h... yes
    81. checking crypt.h usability... no
    82. checking crypt.h presence... no
    83. checking for crypt.h... no
    84. checking dld.h usability... no
    85. checking dld.h presence... no
    86. checking for dld.h... no
    87. checking fp_class.h usability... no
    88. checking fp_class.h presence... no
    89. checking for fp_class.h... no
    90. checking getopt.h usability... yes
    91. checking getopt.h presence... yes
    92. checking for getopt.h... yes
    93. checking ieeefp.h usability... no
    94. checking ieeefp.h presence... no
    95. checking for ieeefp.h... no
    96. checking langinfo.h usability... no
    97. checking langinfo.h presence... no
    98. checking for langinfo.h... no
    99. checking poll.h usability... no
    100. checking poll.h presence... no
    101. checking for poll.h... no
    102. checking pwd.h usability... yes
    103. checking pwd.h presence... yes
    104. checking for pwd.h... yes
    105. checking sys/ipc.h usability... no
    106. checking sys/ipc.h presence... no
    107. checking for sys/ipc.h... no
    108. checking sys/poll.h usability... no
    109. checking sys/poll.h presence... no
    110. checking for sys/poll.h... no
    111. checking sys/pstat.h usability... no
    112. checking sys/pstat.h presence... no
    113. checking for sys/pstat.h... no
    114. checking sys/resource.h usability... no
    115. checking sys/resource.h presence... no
    116. checking for sys/resource.h... no
    117. checking sys/select.h usability... no
    118. checking sys/select.h presence... no
    119. checking for sys/select.h... no
    120. checking sys/sem.h usability... no
    121. checking sys/sem.h presence... no
    122. checking for sys/sem.h... no
    123. checking sys/socket.h usability... yes
    124. checking sys/socket.h presence... yes
    125. checking for sys/socket.h... yes
    126. checking sys/shm.h usability... no
    127. checking sys/shm.h presence... no
    128. checking for sys/shm.h... no
    129. checking sys/tas.h usability... no
    130. checking sys/tas.h presence... no
    131. checking for sys/tas.h... no
    132. checking sys/time.h usability... yes
    133. checking sys/time.h presence... yes
    134. checking for sys/time.h... yes
    135. checking sys/un.h usability... no
    136. checking sys/un.h presence... no
    137. checking for sys/un.h... no
    138. checking termios.h usability... no
    139. checking termios.h presence... no
    140. checking for termios.h... no
    141. checking utime.h usability... yes
    142. checking utime.h presence... yes
    143. checking for utime.h... yes
    144. checking wchar.h usability... yes
    145. checking wchar.h presence... yes
    146. checking for wchar.h... yes
    147. checking wctype.h usability... yes
    148. checking wctype.h presence... yes
    149. checking for wctype.h... yes
    150. checking kernel/OS.h usability... no
    151. checking kernel/OS.h presence... no
    152. checking for kernel/OS.h... no
    153. checking kernel/image.h usability... no
    154. checking kernel/image.h presence... no
    155. checking for kernel/image.h... no
    156. checking SupportDefs.h usability... no
    157. checking SupportDefs.h presence... no
    158. checking for SupportDefs.h... no
    159. checking netinet/in.h usability... yes
    160. checking netinet/in.h presence... yes
    161. checking for netinet/in.h... yes
    162. checking for netinet/tcp.h... no
    163. checking whether byte ordering is bigendian... no
    164. checking for an ANSI C-conforming const... yes
    165. checking for inline... inline
    166. checking for preprocessor stringizing operator... yes
    167. checking for signed types... yes
    168. checking for working volatile... yes
    169. checking for __func__... yes
    170. checking whether struct tm is in sys/time.h or time.h... time.h
    171. checking for struct tm.tm_zone... no
    172. checking for tzname... no
    173. checking for union semun... no
    174. checking for struct sockaddr_un... no
    175. checking for struct sockaddr_storage... yes
    176. checking for struct sockaddr_storage.ss_family... yes
    177. checking for struct sockaddr_storage.__ss_family... no
    178. checking for struct sockaddr_storage.ss_len... no
    179. checking for struct sockaddr_storage.__ss_len... no
    180. checking for struct sockaddr.sa_len... no
    181. checking for struct addrinfo... yes
    182. checking for struct cmsgcred... no
    183. checking for struct fcred... no
    184. checking for struct sockcred... no
    185. checking for struct option... yes
    186. checking for int timezone... yes
    187. checking types of arguments for accept()... unsigned int PASCAL, unsigned int, s truct sockaddr *, int *
    188. checking whether gettimeofday takes only one argument... no
    189. checking for cbrt... yes
    190. checking for dlopen... no
    191. checking for fcvt... yes
    192. checking for fdatasync... no
    193. checking for getpeereid... no
    194. checking for getrlimit... no
    195. checking for memmove... yes
    196. checking for poll... no
    197. checking for pstat... no
    198. checking for readlink... no
    199. checking for setproctitle... no
    200. checking for setsid... no
    201. checking for sigprocmask... no
    202. checking for symlink... no
    203. checking for sysconf... no
    To copy to clipboard, switch view to plain text mode 

  5. #45
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    ...

    Qt Code:
    1. checking for towlower... yes
    2. checking for utime... yes
    3. checking for utimes... no
    4. checking for waitpid... no
    5. checking for wcstombs... yes
    6. checking whether fdatasync is declared... no
    7. checking whether posix_fadvise is declared... no
    8. checking whether strlcat is declared... no
    9. checking whether strlcpy is declared... no
    10. checking whether F_FULLFSYNC is declared... no
    11. checking for struct sockaddr_in6... yes
    12. checking for PS_STRINGS... no
    13. checking whether snprintf is declared... yes
    14. checking whether vsnprintf is declared... yes
    15. checking for isinf... yes
    16. checking for crypt... no
    17. checking for fseeko... no
    18. checking for getopt... yes
    19. checking for getrusage... no
    20. checking for inet_aton... no
    21. checking for random... no
    22. checking for rint... yes
    23. checking for srandom... no
    24. checking for strdup... yes
    25. checking for strerror... yes
    26. checking for strlcat... no
    27. checking for strlcpy... no
    28. checking for strtol... yes
    29. checking for strtoul... yes
    30. checking for unsetenv... no
    31. checking for getaddrinfo... no
    32. checking for getopt_long... yes
    33. checking for gettimeofday... no
    34. checking for sigsetjmp... no
    35. checking whether sys_siglist is declared... no
    36. checking for syslog... no
    37. checking for optreset... yes
    38. checking for strtoll... yes
    39. checking for strtoull... yes
    40. checking for atexit... yes
    41. checking for _LARGEFILE_SOURCE value needed for large files... no
    42. checking for fseeko... (cached) no
    43. checking test program... ok
    44. checking whether long int is 64 bits... no
    45. checking whether long long int is 64 bits... yes
    46. checking for unsigned long... yes
    47. checking size of unsigned long... 4
    48. checking for size_t... yes
    49. checking size of size_t... 4
    50. checking for short... yes
    51. checking alignment of short... 2
    52. checking for int... yes
    53. checking alignment of int... 4
    54. checking for long... yes
    55. checking alignment of long... 4
    56. checking for long long int... yes
    57. checking alignment of long long int... 8
    58. checking for double... yes
    59. checking alignment of double... 8
    60. checking for int8... no
    61. checking for uint8... no
    62. checking for int64... no
    63. checking for uint64... no
    64. checking for sig_atomic_t... yes
    65. checking for working memcmp... yes
    66. checking for onsgmls... no
    67. checking for nsgmls... no
    68. checking for openjade... no
    69. checking for jade... no
    70. checking for DocBook V4.2... no
    71. checking for DocBook stylesheets... no
    72. checking for collateindex.pl... no
    73. checking for sgmlspl... no
    74. configure: WARNING: *** skipping thread test on Win32
    75. configure: creating ./config.status
    76. config.status: creating GNUmakefile
    77. config.status: creating src/Makefile.global
    78. config.status: creating src/include/pg_config.h
    79. config.status: src/include/pg_config.h is unchanged
    80. config.status: creating src/interfaces/ecpg/include/ecpg_config.h
    81. config.status: src/interfaces/ecpg/include/ecpg_config.h is unchanged
    82. config.status: linking ./src/backend/port/tas/dummy.s to src/backend/port/tas.s
    83. config.status: linking ./src/backend/port/dynloader/win32.c to src/backend/port/dynloader.c
    84. config.status: linking ./src/backend/port/win32_sema.c to src/backend/port/pg_sema.c
    85. config.status: linking ./src/backend/port/win32_shmem.c to src/backend/port/pg_shmem.c
    86. config.status: linking ./src/backend/port/dynloader/win32.h to src/include/dynloader.h
    87. config.status: linking ./src/include/port/win32.h to src/include/pg_config_os.h
    88. config.status: linking ./src/makefiles/Makefile.win32 to src/Makefile.port
    89. config.status: executing check_win32_symlinks commands
    To copy to clipboard, switch view to plain text mode 

  6. #46
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I changed mingw dir and tried....

    gcc: installation problem, cannot exec `cc1': No such file or directory
    mingw32-make[2]: *** [tmp/obj/release_shared/adler32.o] Error 1
    mingw32-make[2]: Leaving directory `C:/Qt/4.3.4/src/tools/rcc'
    mingw32-make[1]: *** [release] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/tools/rcc'
    mingw32-make: *** [sub-rcc-make_default-ordered] Error 2

    cc1.exe is only in mingw/libexec/gcc/3.4.2


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

    Default Re: QPSQL problem

    Quote Originally Posted by LoneWolf View Post
    cc1.exe is only in mingw/libexec/gcc/3.4.2
    Yeah, so do I. And it does work perfectly for me (on WinXP, though). This is what suggested to me in the first place that there might be something wrong with your toolchain installation... I have seen some Vista users on this forum but I never heard about such MinGW problem on Vista before.
    J-P Nurmi

  8. #48
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    No more suggestions?

    Does qt work with devc++? Would it easier?
    I have Microsoft Visual C++ too....
    Last edited by LoneWolf; 25th March 2008 at 21:44.

  9. #49
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I added the following line in the Qt\bin\qtvars.bat :

    SET PATH=%PATH%;C:\gcc\mingw\libexec\gcc\mingw32\3.4.2

    And tried again....
    'configure' is ok...
    'make'...

    ERROR:

    Qt Code:
    1. In file included from ..\..\3rdparty\zlib\crc32.c:29:
    2. ..\..\3rdparty\zlib\/zutil.h:21:24: stddef.h: No such file or directory
    3. ..\..\3rdparty\zlib\/zutil.h:23:22: string.h: No such file or directory
    4. ..\..\3rdparty\zlib\/zutil.h:24:22: stdlib.h: No such file or directory
    5. ..\..\3rdparty\zlib\/zutil.h:38:23: errno.h: No such file or directory
    6. ..\..\3rdparty\zlib\crc32.c:36:24: limits.h: No such file or directory
    7. mingw32-make[2]: *** [tmp/obj/release_shared/crc32.o] Error 1
    8. mingw32-make[2]: Leaving directory `C:/Qt/4.3.4/src/tools/rcc'
    9. mingw32-make[1]: *** [release] Error 2
    10. mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/tools/rcc'
    11. mingw32-make: *** [debug-C__Qt_4_3_4_src_tools_rcc] Error 2
    To copy to clipboard, switch view to plain text mode 

    ???

  10. #50
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I did somethings...
    After mingw and qt installation:

    Qt Code:
    1. C:\Qt\4.3.4\src\plugins\sqldrivers\psql>qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\libpq.lib" psql.pro
    2. C:\Qt\4.3.4\src\plugins\sqldrivers\psql>make
    To copy to clipboard, switch view to plain text mode 

    Output:
    Qt Code:
    1. mingw32-make -f Makefile.Release
    2. mingw32-make[1]: Entering directory `C:/Qt/4.3.4/src/plugins/sqldrivers/psql'
    3. g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN
    4. -DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -
    5. I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"c:\psql\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\release_shared\main.o main.cpp
    6. g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
    7. -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN
    8. -DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -
    9. I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"c:\psql\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\release_shared\qsql_psql.o ..\..\..\sql\drivers\psql\qsql_psql.cpp
    10. C:/Qt/4.3.4/bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -
    11. DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE
    12. _LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..\..\..\.
    13. .\include" -I"c:\psql\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\..\..\sql\drivers\psql\qsql_psql.h -o tmp\moc\release_shared\moc_qsql_psql.cpp
    14. g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
    15. -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN
    16. -DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -
    17. I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"c:\psql\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o tmp
    18. \obj\release_shared\moc_qsql_psql.o tmp\moc\release_shared\moc_qsql_psql.cpp
    19. windres -i qsqlpsql_resource.rc -o tmp\obj\release_shared\qsqlpsql_resource_res.o --include-dir=.
    20. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.3.4\plugins\sqldrivers\
    21. libqsqlpsql4.a -o ..\..\..\..\plugins\sqldrivers\qsqlpsql4.dll tmp/obj/release_shared/main.o tmp/obj/release_shared/qsql_psql.o tmp/obj/release_shared/moc_qsql_psql.o -L"c:\Qt\4.3.4\lib" -L"c:\Qt\4.3.4\lib" tmp\obj\release_shared\qsqlpsql_resource_res.o C:\psql\lib\libpq.lib -lQtSql4 -lQtCore4
    22. Creating library file: c:\Qt\4.3.4\plugins\sqldrivers\libqsqlpsql4.a
    23. mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/plugins/sqldrivers/psql'
    To copy to clipboard, switch view to plain text mode 

    Is everything right?

    Do I need to do something more? Because it continues: "Driver not loaded Driver not loaded" when I try to run 'release\database.exe'.

    Thanks.

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

    Default Re: QPSQL problem

    I wonder how on the earth did you manage to link it against libpq.lib because it's still an MSVC library (.lib), not a MinGW library (.a). Anyway, is there anything missing when you open qsqlpsql4.dll to Dependency Walker? Do you have the PSQL DLL (not Qt plugin, but the PSQL library) in PATH?
    J-P Nurmi

  12. #52
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I copied all asked dlls to qtdir\plugins\sqldrivers...
    Now dependency walker says: "Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module."

    is it ok?
    "Driver not loaded Driver not loaded" continues and qt\demo\sqlbrowser it doesnt show psql.
    What do you have to do now?

    What PATH? QTvars?

    Thanks.
    Hugs.
    Last edited by LoneWolf; 27th March 2008 at 14:23.

  13. #53
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Somebody help me, please.

  14. #54
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Somebody there???

  15. #55
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: QPSQL problem

    when i was building the plugin manually on windows i had to copy libpq.a to H:\PostgreSQL\8.2\lib\ms. I dont know if this helps you. But you got the same building error (in your previous post) that i got.

  16. #56
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Hi,

    I dont have \ms in C:\psql\lib.
    libpq.a is in C:\psql\lib.

  17. #57
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: QPSQL problem

    Quote Originally Posted by LoneWolf View Post
    Hi,

    I dont have \ms in C:\psql\lib.
    libpq.a is in C:\psql\lib.
    But you installed the Postgres developer library as well?

    Look at this thread.
    http://www.qtcentre.org/forum/f-inst...post60433.html

    Maybe you have to create a folder and copy the file there.

  18. #58
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    \ms is to msvc, isnt it?

    I have mingw.

  19. #59
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Does somebody have qt(+ mingw + psql) installed in Windows Vista here? If yes, it could make a step by step tutorial how install and integrate with psql using mingw in Vista.

  20. #60
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I got it!!!

    I had to edit qtvars.bat. Put C:\psql\bin and C:\psql\lib.

    Thanks everyone!!!

Similar Threads

  1. problem with opengl, zooming, drawpixels, and origin
    By ntp in forum General Programming
    Replies: 0
    Last Post: 22nd February 2008, 21:48
  2. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  3. QPSQL plugin problem
    By tuxi in forum Qt Programming
    Replies: 0
    Last Post: 12th March 2007, 20:44
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.