Results 1 to 20 of 28

Thread: nmake problems while building mysql driver

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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

    I've installed qt and if qt weren't configured for my compiler, my application simply would not have compile at all. The problem is, if I run nmake solo, without anything, I get same error as if I run configure or start build process of mysql driver.
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 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
    I've installed qt and if qt weren't configured for my compiler, my application simply would not have compile at all.
    I'm talking about the sources, not the binaries.

    The problem is, if I run nmake solo, without anything, I get same error as if I run configure or start build process of mysql driver.
    So please tell me did you configure the sources for msvc 2005? As far as I remember the "-platform win32-msvc2005" (or something like that) switch may be required if Qt can't determine your configuration on its own. Also please try running "qmake" before running nmake, maybe it just needs to regenerate some Makefile. Did you by any chance modified any of the project files?

  3. #3
    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
    I'm talking about the sources, not the binaries.



    So please tell me did you configure the sources for msvc 2005? As far as I remember the "-platform win32-msvc2005" (or something like that) switch may be required if Qt can't determine your configuration on its own. Also please try running "qmake" before running nmake, maybe it just needs to regenerate some Makefile. Did you by any chance modified any of the project files?
    Listen, if I run nmake in the directory where no makefiles are I still get same error. I cannot recompile sources because configure exists with same error!
    Qt 5.3 Opensource & Creator 3.1.2

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 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 happens if you create a Makefile with the following contents:
    all:
    <tabulator here>echo "blabla"
    <empty line here>
    and run nmake?

  5. #5
    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

    I still 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 U1065: invalid option '-'
    5. Stop.
    To copy to clipboard, switch view to plain text mode 

    I think nmake gets fucked up by applying that KB930859. Becuase there is a problem compiling qt apps with Visual Studio 2005 Service Pack 1. After I applied this KB930859 on Service Pack 1 my nmake got fucked up! I contaced MS but still no answer!!!!
    Qt 5.3 Opensource & Creator 3.1.2

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 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 doubt the patch did anything to your nmake. The problem concerned the compiler, not the make tool.

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

    But make is part of compiler, isn't it?
    Qt 5.3 Opensource & Creator 3.1.2

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 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

    No. It's shipped with it, but not part of it, so I doubt the patch even touched it

  9. #9
    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

    Does anyone have any idea how to check the correctness of nmake?
    Qt 5.3 Opensource & Creator 3.1.2

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 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

    Run nmake in a directory that doesn't have a Makefile. It should complain about it.

  11. #11
    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

    I did, same error reported!!
    Qt 5.3 Opensource & Creator 3.1.2

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 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

    nmake seems fine. The error you get is not unusual.

    http://www.cygwin.com/ml/cygwin/1999-10/msg00311.html

    What is unusual is that nmake manages to find a makefile when it's not there. Could you check if the nmake you call is really a nmake binary and not some script? Because it behaves like it was accessing the same faulty makefile all the time. You might need to adjust your %PATH% to make sure the proper nmake is used.

    Could you also verify that nmake /HELP returns a list of options and not the error you're battling with? Also please try running nmake with the "/R" option - if your tools.ini is broken, using this option should make nmake work by ignoring all configuration from tools.ini.

    See this for referece: http://msdn2.microsoft.com/en-us/lib...50(VS.80).aspx

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, 08:11
  2. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13: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, 15:38
  4. Building of MySQL plugin fails
    By janca in forum Installation and Deployment
    Replies: 2
    Last Post: 21st January 2006, 08: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
  •  
Qt is a trademark of The Qt Company.