Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 61

Thread: QPSQL problem

  1. #21
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Hey,

    ran 'make distcle' and later I tried:

    Qt Code:
    1. configure -release -qt-sql-psql -I C:\psql\include -L C:\psql\lib
    To copy to clipboard, switch view to plain text mode 

    After a long time...

    ERROR:
    Qt Code:
    1. C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpq
    2. collect2: ld returned 1 exit status
    3. mingw32-make[2]: *** [..\..\lib\QtSql4.dll] Error 1
    4. mingw32-make[2]: Leaving directory `C:/Qt/4.3.3/src/sql'
    5. mingw32-make[1]: *** [release] Error 2
    6. mingw32-make[1]: Leaving directory `C:/Qt/4.3.3/src/sql'
    7. mingw32-make: *** [sub-sql-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    Am I closer or...?

    Hugs.

  2. #22
    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

    It's looking for libpq.a in C:\psql\lib\.
    J-P Nurmi

  3. #23
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Strange error:

    Qt Code:
    1. g++: OBJECTS_DIR: No such file or directory
    2. g++: =: No such file or directory
    3. mingw32-make[2]: *** [..\..\..\bin\rcc.exe] Error 1
    4. mingw32-make[2]: Leaving directory `C:/Qt/4.3.3/src/tools/rcc'
    5. mingw32-make[1]: *** [release] Error 2
    6. mingw32-make[1]: Leaving directory `C:/Qt/4.3.3/src/tools/rcc'
    7. mingw32-make: *** [sub-rcc-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

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

    Default Re: QPSQL problem

    Somebody help me?

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

    Default Re: QPSQL problem

    I uninstalled and installed qt and try:

    Qt Code:
    1. C:\Qt\4.3.3>configure -release
    2. C:\Qt\4.3.3>make
    To copy to clipboard, switch view to plain text mode 

    ...

    Qt Code:
    1. gcc: installation problem, cannot exec `cc1': No such file or directory
    2. mingw32-make[2]: *** [tmp/obj/release_shared/adler32.o] Error 1
    3. mingw32-make[2]: Leaving directory `C:/Qt/4.3.3/src/tools/rcc'
    4. mingw32-make[1]: *** [release] Error 2
    5. mingw32-make[1]: Leaving directory `C:/Qt/4.3.3/src/tools/rcc'
    6. mingw32-make: *** [sub-rcc-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    What is that?

  6. #26
    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

    Don't just blindly run configure script and expect it to do something. You must always examine the configure output. The configure script detected MSVC in your environment. You would have noticed that if you took a look at configure output.

    Either make sure there are no MSVC tools in PATH or explicitly pass "-platform win32-g++" to configure to make it use MinGW. Again, verify this by examining the configure output.
    J-P Nurmi

  7. #27
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I uninstalled qt 4.3.3, mingw and installed qt 4.3.4, mingw.

    I ran:
    Qt Code:
    1. C:\Qt\4.3.4>configure -release -platform win32-g++ -qt-sql-psql -I C:\psql\include -L C:\psql\lib
    To copy to clipboard, switch view to plain text mode 
    and 'make'...

    Qt Code:
    1. cc: installation problem, cannot exec `cc1': No such file or directory
    2. ingw32-make[2]: *** [tmp/obj/release_shared/adler32.o] Error 1
    3. ingw32-make[2]: Leaving directory `C:/Qt/4.3.4/src/tools/rcc'
    4. ingw32-make[1]: *** [release] Error 2
    5. ingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/tools/rcc'
    6. ingw32-make: *** [sub-rcc-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    And sorry, but I don't understand consoles's output, for that I post here...

    I really need that...

    Thanks.

  8. #28
    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 uninstalled qt 4.3.3, mingw and installed qt 4.3.4, mingw.
    What did you install, exactly? What are the file names of these packages you installed?

    Quote Originally Posted by LoneWolf View Post
    I ran:
    Qt Code:
    1. C:\Qt\4.3.4>configure -release -platform win32-g++ -qt-sql-psql -I C:\psql\include -L C:\psql\lib
    To copy to clipboard, switch view to plain text mode 
    Post the configure script summary which is shown before it starts reading .pro files.
    J-P Nurmi

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

    Default Re: QPSQL problem

    I downloaded and installed qt-win-opensource-4.3.4-mingw.exe.

    Before it starts reading .pro files:
    Qt Code:
    1. Environment:
    2. INCLUDE=
    3. Unset
    4. LIB=
    5. Unset
    6. PATH=
    7. C:\Qt\4.3.4\bin
    8. C:\MinGW\bin
    9. C:\Windows\System32
    10. You are licensed to use this software under the terms of the GNU GPL version 2 o
    11. r 3.
    12. See C:/Qt/4.3.4/LICENSE.GPL2
    13. or C:/Qt/4.3.4/LICENSE.GPL3
    14.  
    15. Configuration:
    16. minimal-config
    17. small-config
    18. medium-config
    19. large-config
    20. full-config
    21. release
    22. Qt Configuration:
    23. release
    24. zlib
    25. png
    26. accessibility
    27. qt3support
    28. opengl
    29. ipv6
    30. minimal-config
    31. small-config
    32. medium-config
    33. large-config
    34. full-config
    35.  
    36. QMAKESPEC...................win32-g++ (commandline)
    37. Architecture................windows
    38. Maketool....................mingw32-make
    39. Debug symbols...............no
    40. Accessibility support.......yes
    41. STL support.................yes
    42. Exception support...........yes
    43. RTTI support................yes
    44. MMX support.................no
    45. 3DNOW support...............no
    46. SSE support.................no
    47. SSE2 support................no
    48. OpenGL support..............yes
    49. Direct3D support............no
    50. OpenSSL support.............no
    51. QDBus support...............no
    52. Qt3 compatibility...........yes
    53.  
    54. Third Party Libraries:
    55. ZLIB support............qt
    56. GIF support.............plugin
    57. TIFF support............plugin
    58. JPEG support............plugin
    59. PNG support.............qt
    60. MNG support.............plugin
    61.  
    62. Styles:
    63. Windows.................yes
    64. Windows XP..............yes
    65. Windows Vista...........yes
    66. Plastique...............yes
    67. Cleanlooks..............yes
    68. Motif...................yes
    69. CDE.....................yes
    70.  
    71. Sql Drivers:
    72. ODBC....................no
    73. MySQL...................no
    74. OCI.....................no
    75. PostgreSQL..............yes
    76. TDS.....................no
    77. DB2.....................no
    78. SQLite..................plugin (qt)
    79. SQLite2.................no
    80. InterBase...............no
    81. Sources are in..............C:\Qt\4.3.4
    82. Build is done in............C:\Qt\4.3.4
    83. Install prefix..............C:\Qt\4.3.4
    84. Headers installed to........C:/Qt/4.3.4/include
    85. Libraries installed to......C:/Qt/4.3.4/lib
    86. Plugins installed to........C:/Qt/4.3.4/plugins
    87. Binaries installed to.......C:/Qt/4.3.4/bin
    88. Docs installed to...........C:/Qt/4.3.4/doc
    89. Data installed to...........C:/Qt/4.3.4
    90. Translations installed to...C:/Qt/4.3.4/translations
    91. Examples installed to.......C:/Qt/4.3.4/examples
    92. Demos installed to..........C:/Qt/4.3.4/demos
    93.  
    94. Include paths...............C:\psql\include
    95. Additional libraries........-LC:\psql\lib
    96. Creating qmake...
    97. g++ -c -oqconfig.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
    98. nerators/mac -IC:\Qt\4.3.4/src/corelib/arch/generic -IC:\Qt\4.3.4/include -IC:\Q
    99. t\4.3.4/include/QtCore -IC:\Qt\4.3.4/include -IC:\Qt\4.3.4/include/QtCore -IC:\Q
    100. t\4.3.4/src/corelib/global -IC:\Qt\4.3.4/include/QtScript -IC:\Qt\4.3.4/mkspecs/
    101. win32-g++ -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PC
    102. RE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUI
    103. LD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM
    104. -DQMAKE_OPENSOURCE_EDITION C:\Qt\4.3.4/src/corelib/global/qconfig.cpp
    105. g++ -o qmake.exe project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.
    106. o option.o winmakefile.o projectgenerator.o property.o meta.o makefiledeps.o met
    107. amakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_nmake.o msvc_dsp.o m
    108. svc_vcproj.o msvc_objectmodel.o qbitarray.o qbuffer.o qbytearray.o qcryptographi
    109. chash.o qvsnprintf.o qbytearraymatcher.o qconfig.o qdatetime.o qdir.o qdiriterat
    110. or.o qfile.o qtemporaryfile.o qfileinfo.o qabstractfileengine.o qfsfileengine.o
    111. qfsfileengine_iterator.o qfsfileengine_win.o qfsfileengine_iterator_win.o qgloba
    112. l.o qhash.o qiodevice.o qlibraryinfo.o qlistdata.o qlinkedlist.o qlocale.o qmap.
    113. o qregexp.o qstring.o qstringlist.o qtextstream.o quuid.o qvector.o qurl.o qsett
    114. ings.o qsettings_win.o qvariant.o qmetatype.o qnumeric.o qscriptasm.o qscriptast
    115. .o qscriptastvisitor.o qscriptcompiler.o qscriptecmaarray.o qscriptecmaboolean.o
    116. qscriptecmacore.o qscriptecmadate.o qscriptecmafunction.o qscriptecmaglobal.o q
    117. scriptecmamath.o qscriptecmanumber.o qscriptecmaobject.o qscriptecmaregexp.o qsc
    118. riptecmastring.o qscriptecmaerror.o qscriptcontext_p.o qscriptengine.o qscripten
    119. gine_p.o qscriptextenumeration.o qscriptextvariant.o qscriptcontext.o qscriptfun
    120. ction.o qscriptgrammar.o qscriptlexer.o qscriptclassdata.o qscriptparser.o qscri
    121. ptprettypretty.o qscriptsyntaxchecker.o qscriptvalue.o qscriptvalueimpl.o qscrip
    122. tvalueiterator.o -lole32 -luuid
    123. copy qmake.exe C:\Qt\4.3.4\bin\qmake.exe
    124. 1 file(s) copied.
    To copy to clipboard, switch view to plain text mode 

  10. #30
    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

    qt-win-opensource-4.3.4-mingw.exe is so called "binary installer". It gives you a pre-built, fully functional Qt installation. Why do you want to rebuild whole Qt? As for the original problem, you just need to get the PSQL plugin built in a way or another.
    J-P Nurmi

  11. #31
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Ok.

    So, I follow:
    http://wiki.qtcentre.org/index.php?t...ws_using_MinGW

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

    And 'make'.
    Qt Code:
    1. gcc: installation problem, cannot exec `cc1': No such file or directory
    2. windres: no resources
    3. mingw32-make[1]: *** [tmp/obj/release_shared/qsqlpsql_resource_res.o] Error 1
    4. mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/plugins/sqldrivers/psql'
    5. mingw32-make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 

    Did I do something wrong?

    Thanks.

  12. #32
    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

    Are you using Qt Command Prompt?
    J-P Nurmi

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

    Default Re: QPSQL problem

    Yes, I do.

    'cc1' is in C:\MinGW\libexec\gcc\mingw32\3.4.2\

    Hugs.
    Last edited by LoneWolf; 20th March 2008 at 13:54.

  14. #34
    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

    But not in C:\MinGW\bin? And there were no problems/nags/anything suspicious during MinGW installation?
    J-P Nurmi

  15. #35
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    No, 'cc1' is not in C:\MinGW\bin\
    I installed mingw through qt installer....anything suspicious for me.

    I copied cc1 and put in C:\MinGW\bin\

    Ran same commands above...

    Qt Code:
    1. tmp/obj/release_shared/qsql_psql.o(.text+0x54):qsql_psql.cpp: undefined reference to `PQerrorMessage'
    2. tmp/obj/release_shared/qsql_psql.o(.text+0x32b):qsql_psql.cpp: undefined reference to `PQresultStatus'
    3. tmp/obj/release_shared/qsql_psql.o(.text+0x4f0):qsql_psql.cpp: undefined reference to `PQntuples'
    4. tmp/obj/release_shared/qsql_psql.o(.text+0x834):qsql_psql.cpp: undefined reference to `PQclear'
    5. tmp/obj/release_shared/qsql_psql.o(.text+0xb34):qsql_psql.cpp: undefined reference to `PQntuples'
    6. tmp/obj/release_shared/qsql_psql.o(.text+0xbac):qsql_psql.cpp: undefined reference to `PQnfields'
    7. tmp/obj/release_shared/qsql_psql.o(.text+0xc22):qsql_psql.cpp: undefined reference to `PQftype'
    8. tmp/obj/release_shared/qsql_psql.o(.text+0xc61):qsql_psql.cpp: undefined reference to `PQgetvalue'
    9. tmp/obj/release_shared/qsql_psql.o(.text+0xc95):qsql_psql.cpp: undefined reference to `PQgetisnull'
    10. tmp/obj/release_shared/qsql_psql.o(.text+0xe2c):qsql_psql.cpp: undefined reference to `PQunescapeBytea'
    11. tmp/obj/release_shared/qsql_psql.o(.text+0xe6b):qsql_psql.cpp: undefined reference to `PQfreemem'
    12. tmp/obj/release_shared/qsql_psql.o(.text+0x15d9):qsql_psql.cpp: undefined reference to `PQgetvalue'
    13. tmp/obj/release_shared/qsql_psql.o(.text+0x15f8):qsql_psql.cpp: undefined reference to `PQgetisnull'
    14. tmp/obj/release_shared/qsql_psql.o(.text+0x1765):qsql_psql.cpp: undefined reference to `PQexec'
    15. tmp/obj/release_shared/qsql_psql.o(.text+0x1936):qsql_psql.cpp: undefined reference to `PQcmdTuples'
    16. tmp/obj/release_shared/qsql_psql.o(.text+0x1a6f):qsql_psql.cpp: undefined reference to `PQoidValue'
    17. tmp/obj/release_shared/qsql_psql.o(.text+0x1c1a):qsql_psql.cpp: undefined reference to `PQnfields'
    18. tmp/obj/release_shared/qsql_psql.o(.text+0x1cc2):qsql_psql.cpp: undefined reference to `PQfname'
    19. tmp/obj/release_shared/qsql_psql.o(.text+0x1d3a):qsql_psql.cpp: undefined reference to `PQftype'
    20. tmp/obj/release_shared/qsql_psql.o(.text+0x1d6a):qsql_psql.cpp: undefined reference to `PQfsize'
    21. tmp/obj/release_shared/qsql_psql.o(.text+0x1d8b):qsql_psql.cpp: undefined reference to `PQfmod'
    22. tmp/obj/release_shared/qsql_psql.o(.text+0x1e0d):qsql_psql.cpp: undefined reference to `PQftype'
    23. tmp/obj/release_shared/qsql_psql.o(.text+0x1e83):qsql_psql.cpp: undefined reference to `PQfname'
    24. tmp/obj/release_shared/qsql_psql.o(.text+0x1f45):qsql_psql.cpp: undefined reference to `PQexec'
    25. tmp/obj/release_shared/qsql_psql.o(.text+0x1f53):qsql_psql.cpp: undefined reference to `PQresultStatus'
    26. tmp/obj/release_shared/qsql_psql.o(.text+0x1f7c):qsql_psql.cpp: undefined reference to `PQgetvalue'
    27. tmp/obj/release_shared/qsql_psql.o(.text+0x1fa8):qsql_psql.cpp: undefined reference to `PQclear'
    28. tmp/obj/release_shared/qsql_psql.o(.text+0x27cb):qsql_psql.cpp: undefined reference to `PQfinish'
    29. tmp/obj/release_shared/qsql_psql.o(.text+0x289b):qsql_psql.cpp: undefined reference to `PQfinish'
    30. tmp/obj/release_shared/qsql_psql.o(.text+0x296b):qsql_psql.cpp: undefined reference to `PQfinish'
    31. tmp/obj/release_shared/qsql_psql.o(.text+0x2eab):qsql_psql.cpp: undefined reference to `PQconnectdb'
    32. tmp/obj/release_shared/qsql_psql.o(.text+0x2efc):qsql_psql.cpp: undefined reference to `PQstatus'
    33. tmp/obj/release_shared/qsql_psql.o(.text+0x2f4f):qsql_psql.cpp: undefined reference to `PQexec'
    34. tmp/obj/release_shared/qsql_psql.o(.text+0x2f5d):qsql_psql.cpp: undefined reference to `PQresultStatus'
    35. tmp/obj/release_shared/qsql_psql.o(.text+0x2f71):qsql_psql.cpp: undefined reference to `PQclear'
    36. tmp/obj/release_shared/qsql_psql.o(.text+0x2fa4):qsql_psql.cpp: undefined reference to `PQexec'
    37. tmp/obj/release_shared/qsql_psql.o(.text+0x2fb2):qsql_psql.cpp: undefined reference to `PQresultStatus'
    38. tmp/obj/release_shared/qsql_psql.o(.text+0x2fc3):qsql_psql.cpp: undefined reference to `PQerrorMessage'
    39. tmp/obj/release_shared/qsql_psql.o(.text+0x2fed):qsql_psql.cpp: undefined reference to `PQclear'
    40. tmp/obj/release_shared/qsql_psql.o(.text+0x35c8):qsql_psql.cpp: undefined reference to `PQfinish'
    41. tmp/obj/release_shared/qsql_psql.o(.text+0x373b):qsql_psql.cpp: undefined reference to `PQfinish'
    42. tmp/obj/release_shared/qsql_psql.o(.text+0x38cc):qsql_psql.cpp: undefined reference to `PQexec'
    43. tmp/obj/release_shared/qsql_psql.o(.text+0x38db):qsql_psql.cpp: undefined reference to `PQresultStatus'
    44. tmp/obj/release_shared/qsql_psql.o(.text+0x3900):qsql_psql.cpp: undefined reference to `PQclear'
    45. tmp/obj/release_shared/qsql_psql.o(.text+0x3a0d):qsql_psql.cpp: undefined reference to `PQclear'
    46. tmp/obj/release_shared/qsql_psql.o(.text+0x3abc):qsql_psql.cpp: undefined reference to `PQexec'
    47. tmp/obj/release_shared/qsql_psql.o(.text+0x3acb):qsql_psql.cpp: undefined reference to `PQresultStatus'
    48. tmp/obj/release_shared/qsql_psql.o(.text+0x3ae4):qsql_psql.cpp: undefined reference to `PQclear'
    49. tmp/obj/release_shared/qsql_psql.o(.text+0x3bfd):qsql_psql.cpp: undefined reference to `PQclear'
    50. tmp/obj/release_shared/qsql_psql.o(.text+0x3cac):qsql_psql.cpp: undefined reference to `PQexec'
    51. tmp/obj/release_shared/qsql_psql.o(.text+0x3cbb):qsql_psql.cpp: undefined reference to `PQresultStatus'
    52. tmp/obj/release_shared/qsql_psql.o(.text+0x3d74):qsql_psql.cpp: undefined reference to `PQclear'
    53. tmp/obj/release_shared/qsql_psql.o(.text+0x3dec):qsql_psql.cpp: undefined reference to `PQclear'
    54. tmp/obj/release_shared/qsql_psql.o(.text+0x8048):qsql_psql.cpp: undefined reference to `PQescapeBytea'
    55. tmp/obj/release_shared/qsql_psql.o(.text+0x80a4):qsql_psql.cpp: undefined reference to `PQfreemem'
    56. tmp/obj/release_shared/qsql_psql.o(.text+0x8612):qsql_psql.cpp: undefined reference to `PQstatus'
    57. collect2: ld returned 1 exit status
    58. mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlpsql4.dll] Error 1
    59. mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/plugins/sqldrivers/psql'
    60. mingw32-make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 

    Oh god!!

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

    Default Re: QPSQL problem

    Nobody knows about this problem?
    I am desperate.

  17. #37
    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

    Well, looks like the conversion from .lib to .a doesn't succeed or is insufficient for some reason. So the option left is to build PSQL libs directly with MinGW/MSYS.



    For example:
    Qt Code:
    1. qmake -o Makefile "INCLUDEPATH+=C:\MSYS\local\pgsql\include" "LIBS+=C:\MSYS\local\pgsql\lib\libpq.a" psql.pro
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

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

    Default Re: QPSQL problem

    After make install:
    Qt Code:
    1. make[3]: *** No rule to make target `utf8_and_shift_jis_2004.o', needed by `libutf8_and_shift_jis_2004.dll'. Stop.
    2. make[3]: Leaving directory `/c/teste/psql/src/backend/utils/mb/conversion_procs/utf8_and_shift_jis_2004'
    3. make[2]: *** [install] Error 2
    4. make[2]: Leaving directory `/c/teste/psql/src/backend/utils/mb/conversion_procs'
    5. make[1]: *** [install] Error 2
    6. make[1]: Leaving directory `/c/teste/psql/src'
    7. make: *** [install] Error 2
    To copy to clipboard, switch view to plain text mode 

    I gonna try one thing here....see you...
    Last edited by LoneWolf; 24th March 2008 at 14:50.

  19. #39
    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

    Well, maybe there is something wrong with your MinGW installation after all because for me it compiled just fine. I mean both, PostgreSQL compiled fine in MSYS environment and QPSQL plugin compiled just fine in Qt Command Prompt after passing it include paths and libs like I have shown above. I have MinGW 3.4.2 installed by the Qt binary installer without any additional tricks (oh and btw, seems that I have cc1.exe only in C:\MinGW\libexec\gcc\mingw32\3.4.2).
    J-P Nurmi

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

    Default Re: QPSQL problem

    I think God doesnt like me!

    I installed MinGW 3.4.2 through qt installer. is it a problem?

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

    Dont I have to copy some .dlls to somewhere? Just remering...I have Windows Vista.

    thanks.
    Last edited by LoneWolf; 24th March 2008 at 16:07.

Similar Threads

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