Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28

Thread: nmake problems while building mysql driver

  1. #21
    Join Date
    Apr 2006
    Location
    Denmark / Norway
    Posts
    67
    Thanks
    3
    Thanked 12 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: nmake problems while building mysql driver

    Hi

    Can you please attach your Makefile? Seems like there is something wrong in it.
    I would recommend moving your SQL libs to somewhere withouth long filenames or at least somewhere without spaces in the filenames or folders.

    the "-" error is likely to be a typo in the makefile.

    When running nmake in a dir without a makefile, you should get:
    Qt Code:
    1. Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
    2. Copyright (C) Microsoft Corporation. All rights reserved.
    3.  
    4. NMAKE : fatal error U1064: MAKEFILE not found and no target specified
    5. Stop.
    To copy to clipboard, switch view to plain text mode 

    If you get something else, make sure you have started the Visual Studio Command Prompt, so that all vars is correct. If this still gives you the other error with the -, try reinstalling visual studio.

    If there is no makefile in the dir, you should get that error instead of the - error.

    Cheers,
    Leif
    Last edited by luf; 26th March 2007 at 13:00.

  2. #22
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: nmake problems while building mysql driver

    Ok, here is makefile:

    Qt Code:
    1. #############################################################################
    2. # Makefile for building: qsqlmysql
    3. # Generated by qmake (2.01a) (Qt 4.2.3) on: pet 23. mar 17:31:15 2007
    4. # Project: mysql.pro
    5. # Template: lib
    6. # Command: qmake -win32 "INCLUDEPATH+=c:\Program Files\MySQL\MySQL Server 5.0\include" "LIBS+=c:\Program Files\MySQL\MySQL Server 5.0\lib\opt\libmysql.lib" -o Makefile mysql.pro
    7. #############################################################################
    8.  
    9. first: all
    10. install: debug-install release-install
    11. uninstall: debug-uninstall release-uninstall
    12. MAKEFILE = Makefile
    13. QMAKE = qmake
    14. DEL_FILE = del
    15. CHK_DIR_EXISTS= if not exist
    16. MKDIR = mkdir
    17. COPY = copy /y
    18. COPY_FILE = $(COPY)
    19. COPY_DIR = xcopy /s /q /y /i
    20. INSTALL_FILE = $(COPY_FILE)
    21. INSTALL_PROGRAM = $(COPY_FILE)
    22. INSTALL_DIR = $(COPY_DIR)
    23. DEL_FILE = del
    24. SYMLINK =
    25. DEL_DIR = rmdir
    26. MOVE = move
    27. CHK_DIR_EXISTS= if not exist
    28. MKDIR = mkdir
    29. SUBTARGETS = \
    30. debug \
    31. release
    32.  
    33. debug: $(MAKEFILE).Debug FORCE
    34. $(MAKE) -f $(MAKEFILE).Debug
    35. debug-make_default: $(MAKEFILE).Debug FORCE
    36. $(MAKE) -f $(MAKEFILE).Debug
    37. debug-make_first: $(MAKEFILE).Debug FORCE
    38. $(MAKE) -f $(MAKEFILE).Debug first
    39. debug-all: $(MAKEFILE).Debug FORCE
    40. $(MAKE) -f $(MAKEFILE).Debug all
    41. debug-clean: $(MAKEFILE).Debug FORCE
    42. $(MAKE) -f $(MAKEFILE).Debug clean
    43. debug-distclean: $(MAKEFILE).Debug FORCE
    44. $(MAKE) -f $(MAKEFILE).Debug distclean
    45. debug-install: $(MAKEFILE).Debug FORCE
    46. $(MAKE) -f $(MAKEFILE).Debug install
    47. debug-uninstall: $(MAKEFILE).Debug FORCE
    48. $(MAKE) -f $(MAKEFILE).Debug uninstall
    49. release: $(MAKEFILE).Release FORCE
    50. $(MAKE) -f $(MAKEFILE).Release
    51. release-make_default: $(MAKEFILE).Release FORCE
    52. $(MAKE) -f $(MAKEFILE).Release
    53. release-make_first: $(MAKEFILE).Release FORCE
    54. $(MAKE) -f $(MAKEFILE).Release first
    55. release-all: $(MAKEFILE).Release FORCE
    56. $(MAKE) -f $(MAKEFILE).Release all
    57. release-clean: $(MAKEFILE).Release FORCE
    58. $(MAKE) -f $(MAKEFILE).Release clean
    59. release-distclean: $(MAKEFILE).Release FORCE
    60. $(MAKE) -f $(MAKEFILE).Release distclean
    61. release-install: $(MAKEFILE).Release FORCE
    62. $(MAKE) -f $(MAKEFILE).Release install
    63. release-uninstall: $(MAKEFILE).Release FORCE
    64. $(MAKE) -f $(MAKEFILE).Release uninstall
    65.  
    66. Makefile: mysql.pro ..\..\..\..\.qmake.cache ..\..\..\..\mkspecs\win32-g++\qmake.conf ..\..\..\..\mkspecs\features\exclusive_builds.prf \
    67. ..\..\..\..\mkspecs\features\default_pre.prf \
    68. ..\..\..\..\mkspecs\features\win32\default_pre.prf \
    69. C:/Qt/4.2.3/.qmake.cache \
    70. C:/Qt/4.2.3/mkspecs/qconfig.pri \
    71. ..\..\..\..\mkspecs\features\qt_functions.prf \
    72. ..\..\..\..\mkspecs\features\qt_config.prf \
    73. ..\..\..\qt_targets.pri \
    74. ..\..\qpluginbase.pri \
    75. ..\qsqldriverbase.pri \
    76. ..\..\..\..\mkspecs\features\debug.prf \
    77. ..\..\..\..\mkspecs\features\debug_and_release.prf \
    78. ..\..\..\..\mkspecs\features\default_post.prf \
    79. ..\..\..\..\mkspecs\features\qt.prf \
    80. ..\..\..\..\mkspecs\features\win32\thread.prf \
    81. ..\..\..\..\mkspecs\features\moc.prf \
    82. ..\..\..\..\mkspecs\features\win32\rtti.prf \
    83. ..\..\..\..\mkspecs\features\win32\exceptions.prf \
    84. ..\..\..\..\mkspecs\features\win32\stl.prf \
    85. ..\..\..\..\mkspecs\features\shared.prf \
    86. ..\..\..\..\mkspecs\features\dll.prf \
    87. ..\..\..\..\mkspecs\features\warn_on.prf \
    88. ..\..\..\..\mkspecs\features\win32\windows.prf \
    89. ..\..\..\..\mkspecs\features\resources.prf \
    90. ..\..\..\..\mkspecs\features\uic.prf
    91. $(QMAKE) -win32 "INCLUDEPATH+=c:\Program Files\MySQL\MySQL Server 5.0\include" "LIBS+=c:\Program Files\MySQL\MySQL Server 5.0\lib\opt\libmysql.lib" -o Makefile mysql.pro
    92. ..\..\..\..\mkspecs\features\exclusive_builds.prf:
    93. ..\..\..\..\mkspecs\features\default_pre.prf:
    94. ..\..\..\..\mkspecs\features\win32\default_pre.prf:
    95. C:/Qt/4.2.3/.qmake.cache:
    96. C:/Qt/4.2.3/mkspecs/qconfig.pri:
    97. ..\..\..\..\mkspecs\features\qt_functions.prf:
    98. ..\..\..\..\mkspecs\features\qt_config.prf:
    99. ..\..\..\qt_targets.pri:
    100. ..\..\qpluginbase.pri:
    101. ..\qsqldriverbase.pri:
    102. ..\..\..\..\mkspecs\features\debug.prf:
    103. ..\..\..\..\mkspecs\features\debug_and_release.prf:
    104. ..\..\..\..\mkspecs\features\default_post.prf:
    105. ..\..\..\..\mkspecs\features\qt.prf:
    106. ..\..\..\..\mkspecs\features\win32\thread.prf:
    107. ..\..\..\..\mkspecs\features\moc.prf:
    108. ..\..\..\..\mkspecs\features\win32\rtti.prf:
    109. ..\..\..\..\mkspecs\features\win32\exceptions.prf:
    110. ..\..\..\..\mkspecs\features\win32\stl.prf:
    111. ..\..\..\..\mkspecs\features\shared.prf:
    112. ..\..\..\..\mkspecs\features\dll.prf:
    113. ..\..\..\..\mkspecs\features\warn_on.prf:
    114. ..\..\..\..\mkspecs\features\win32\windows.prf:
    115. ..\..\..\..\mkspecs\features\resources.prf:
    116. ..\..\..\..\mkspecs\features\uic.prf:
    117. qmake: qmake_all FORCE
    118. @$(QMAKE) -win32 "INCLUDEPATH+=c:\Program Files\MySQL\MySQL Server 5.0\include" "LIBS+=c:\Program Files\MySQL\MySQL Server 5.0\lib\opt\libmysql.lib" -o Makefile mysql.pro
    119.  
    120. qmake_all: FORCE
    121.  
    122. make_default: debug-make_default release-make_default FORCE
    123. make_first: debug-make_first release-make_first FORCE
    124. all: debug-all release-all FORCE
    125. clean: debug-clean release-clean FORCE
    126. -$(DEL_FILE) c:\Qt\4.2.3\plugins\sqldrivers\libqsqlmysql.a
    127. distclean: debug-distclean release-distclean FORCE
    128. -$(DEL_FILE) Makefile
    129.  
    130. debug-mocclean: $(MAKEFILE).Debug
    131. $(MAKE) -f $(MAKEFILE).Debug mocclean
    132. release-mocclean: $(MAKEFILE).Release
    133. $(MAKE) -f $(MAKEFILE).Release mocclean
    134. mocclean: debug-mocclean release-mocclean
    135.  
    136. debug-mocables: $(MAKEFILE).Debug
    137. $(MAKE) -f $(MAKEFILE).Debug mocables
    138. release-mocables: $(MAKEFILE).Release
    139. $(MAKE) -f $(MAKEFILE).Release mocables
    140. mocables: debug-mocables release-mocables
    141. FORCE:
    142.  
    143. $(MAKEFILE).Debug: Makefile
    144. $(MAKEFILE).Release: Makefile
    To copy to clipboard, switch view to plain text mode 

    I've also attached same file
    Attached Files Attached Files
    Qt 5.3 Opensource & Creator 3.1.2

  3. #23
    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: nmake problems while building mysql driver

    Quote Originally Posted by MarkoSan View Post
    If I try to pass to nmake some paramaters, I still get same error, which is very very weird!
    What parameters? The ones I asked you to try?

  4. #24
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: nmake problems while building mysql driver

    Quote Originally Posted by wysota View Post
    What parameters? The ones I asked you to try?
    I tried:
    Qt Code:
    1. nmake /?
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. nmake /help
    To copy to clipboard, switch view to plain text mode 
    and still same error.
    Qt 5.3 Opensource & Creator 3.1.2

  5. #25
    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: nmake problems while building mysql driver

    what about nmake /R?

  6. #26
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: nmake problems while building mysql driver

    Same shit, i am desperate!
    Qt 5.3 Opensource & Creator 3.1.2

  7. #27
    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: nmake problems while building mysql driver

    I second the idea of reinstalling VS then

  8. The following user says thank you to wysota for this useful post:

    MarkoSan (25th May 2007)

  9. #28
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Thumbs up [SOLVED] Re: nmake problems while building mysql driver [SOLVED]

    Well, we solved problem together with Microsoft!

    I had MAKEFLAGS flags pointing to QNX Neutrino makefile settings and after I cleared MAKEFLAGS, compilation of drivers was sucessfull!!!!
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. My Mysql 5 and Qt 4.2.2 Problem (Driver not loaded)
    By fengtian.we in forum Qt Programming
    Replies: 4
    Last Post: 9th February 2007, 09:11
  2. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 14:45
  3. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 16:38
  4. Building of MySQL plugin fails
    By janca in forum Installation and Deployment
    Replies: 2
    Last Post: 21st January 2006, 09:23

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.