Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Nmake problems
QtWS25 Last Chance

Nmake problems

Scheduled Pinned Locked Moved Installation and Deployment
14 Posts 2 Posters 7.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #2

    welcome to devnet

    You need to post the makefile. Otherwise it may be hard to know what went wrong.

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • E Offline
      E Offline
      edward
      wrote on last edited by
      #3

      It was created by typing the command qmake qt.pro(hello.pro was in a tutorial); i didn't created myself
      Here is the part were the problem appears(at {.}.cpp{debug}.obj::):
      @
      COPY = copy /y
      COPY_FILE = $(COPY)
      COPY_DIR = xcopy /s /q /y /i
      DEL_FILE = del
      DEL_DIR = rmdir
      MOVE = move
      CHK_DIR_EXISTS= if not exist
      MKDIR = mkdir--
      INSTALL_FILE = $(COPY_FILE)
      INSTALL_PROGRAM = $(COPY_FILE)
      INSTALL_DIR = $(COPY_DIR)

      ####### Output directory

      OBJECTS_DIR = debug

      ####### Files

      SOURCES = qt1.cpp
      OBJECTS = debug\qt1.obj
      DIST =
      QMAKE_TARGET = qt
      DESTDIR = debug\ #avoid trailing-slash linebreak
      TARGET = qt.exe
      DESTDIR_TARGET = debug\qt.exe

      ####### Implicit rules

      .SUFFIXES: .c .cpp .cc .cxx

      {.}.cpp{debug}.obj::
      $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
      $<
      @
      There are tabs at those rules, if in the ost you don't see it.

      [Edit] Code wrappings added, koahnig

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #4

        I have added "code wrappings":http://developer.qt.nokia.com/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 This should make it easier to read.
        Please check, if it reflects what you see.

        Since you are using nmake, do you have a complete visual studio (non-express version) installed ?

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • E Offline
          E Offline
          edward
          wrote on last edited by
          #5

          Yes I have. Visual studio 2010 professional

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #6

            You can install "vsaddin":http://qt.nokia.com/downloads/visual-studio-add-in then
            You can import the pro directly to visual studio and run it from there.
            I have done it with msvc 2005 and had no problems running the demo stuff.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • E Offline
              E Offline
              edward
              wrote on last edited by
              #7

              When i try to create or open a qt project with visual studio i get this error:
              Cannot find qmake. Make sure you have specified a Qt version.
              I've installed the program that you said @koahnig

              1 Reply Last reply
              0
              • K Offline
                K Offline
                koahnig
                wrote on last edited by
                #8

                How did you install Qt on your machine?
                Do you have an environment variable QTDIR somewhere?

                Vote the answer(s) that helped you to solve your issue(s)

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  edward
                  wrote on last edited by
                  #9

                  I have installed that addon on drive C, but i have installed Qt in drive E. Visual Studio is installed in drive C. I don't know what environment variable QTDIR is, but i have added to PATH the path to the bin directory of Qt(E:\QT\Desktop\Qt\4.8.0\msvc2010\bin)

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #10

                    Did you installed the Qt binaries from "here":http://qt.nokia.com/downloads/downloads#qt-lib ?
                    I would assume that this installer is setting up also the QTDIR environment variable.

                    You may want to check in a cmd-box with
                    @set qt@
                    This will show you all your environment variables starting with qt.

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      edward
                      wrote on last edited by
                      #11

                      I have installed minGW but it still doesn't work. When i installed it said to me that the g++ compiler doesn't exist in the folder i was installing.

                      C:\Users\Alex>set qt
                      Environment variable qt not defined

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        koahnig
                        wrote on last edited by
                        #12

                        AFAIK mingw does not set this variable.

                        You have installed mingw only?
                        IMHO you should not use nmake for building.

                        I think we have mixed up things a bit. Since you were using nmake, I thought that you are trying to use visual studio.

                        Certain mixing is possible, but we should not start with mixing everything.

                        What is the command you have used to install Qt?
                        Did you also install qt creator?

                        Vote the answer(s) that helped you to solve your issue(s)

                        1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          edward
                          wrote on last edited by
                          #13

                          I had an installer, i didn't use any command. Yes, I have installed qt creator. I saw in a tutorial that for
                          creating and running a project i have to use qmake and for windows nmake. I don't really care if I use Visual studio or command line, but i want to build my projects. So far it doesn't work, either with Visual studio or command line. I just need one way to build my programs.

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            koahnig
                            wrote on last edited by
                            #14

                            Well if you have installed also qt creator you can open any .pro file as a project file. From inside the creator you can edit, build and run/debug all applications in the same environment.

                            I have very, very minimal experience with creator and mingw on windows, but to my understanding there is a make shipped with mingw as well. i would suggest using nmake with visual studio and mingw with its make. Staying within the same tool chain shall help.

                            [edit] Or you may want to install the whole stuff for visual studio, if you want to stay there.

                            Vote the answer(s) that helped you to solve your issue(s)

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved