Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTcpServer - Fortune example problem
QtWS25 Last Chance

QTcpServer - Fortune example problem

Scheduled Pinned Locked Moved General and Desktop
27 Posts 4 Posters 10.6k 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.
  • N Offline
    N Offline
    nnn123
    wrote on last edited by
    #12

    qmake works. nmake doesn't work.

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

      Assuming that you have started the command prompt through vs2005 it should work, when all settings are ok.
      Therefore make sure that you did go in vs2005 to "tools" and there is an entry starting the command prompt with the vs environment. This is often forgotten, but it is essential. Otherwise nmake will fail.

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

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nnn123
        wrote on last edited by
        #14

        I think that I have this problem because I work with visual 2005.
        Maybe I need to use something else instead of QTCPSertver.
        Thank you very much for your help :-)

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on last edited by
          #15

          There should not be a problem!!! I have been able to compiles Qt and all tools and example with every MSVC version since version .NET (2003). Therefore, again make sure you use the VS2005 command promt not just cmd.

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

            I can also only reiterate it is working fine with visual studio 2005. I have tested the other day the recompilation of the fortune server/client with it.

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

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nnn123
              wrote on last edited by
              #17

              So I really don't know what can it be (and I really want to find it out).
              I am sure I use the VS2005 command.
              The nmake didn't work. When I look in the internet I saw that the files which are missing are VS2008 files. When I tried to create the vcproj from pro file I got an error relating to the Visual studio version. Because of those two reasons I thought that the problem is VS version.
              Is there another way to convert pro file to vcproj?

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

                You should provide the error messages you got.

                However, it looks that we are mixing up things.

                Here you wrote:
                [quote author="nnn123" date="1312177600"]qmake works. nmake doesn't work.[/quote]

                This is before any .vproj file. That was your reply on recompilation of the fortune example. This should be a trial with the command prompt started through visual studio. If nmake does not work in the command window opened through visual studio, there is a problem with your visual studio setup.

                What is happening when you open the command prompt through visual studio and you simply type nmake?
                Please post the messages obtained.

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

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  nnn123
                  wrote on last edited by
                  #19

                  can not open include file stddef.h. no such file or diretory
                  fatal error U1077 cl return code 0x2
                  fatal error U1077 make return code 0x2

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

                    It is missing a standard header file. So there is something with your environment wrong.
                    In your command prompt you can run "set include". There you should find the directory where this file is located. This entry is probably missing.

                    However, in general I would suggest that you repair or reinstall your visual studio including all service packs. Then you should install Qt and vsaddin again.

                    The problems you have are not Qt related. It just happened to show up with your trials with the fortune server/client example.

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

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      nnn123
                      wrote on last edited by
                      #21

                      I didn't reinstall yet.
                      I found out that there was an environment variable belong to VS with " at the end
                      I removed it and now nmake works!
                      I compiled the server and client with nmake and run the applications. It worked.
                      I tried to compile it with VS but it is still didn't work.
                      Do you still think I should reinstall or do you have other idea?

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

                        Without knowing where and how you have chanegd the setting, it is not possible to give you a decent advise in that regard.

                        However, if you like to know my personal opinion, I would reinstall. As long as you do not know how the change happened, you cannot know what else could have been changed. Changing forth and back with all the trials is sometimes more time consuming than starting from scratch with a fresh setup.

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

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          nnn123
                          wrote on last edited by
                          #23

                          Problem Solved!!
                          I removed from the additional dependencies in the link tab libraries (gui and designer) and it worked.
                          Thanks again :-)

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            nnn123
                            wrote on last edited by
                            #24

                            (gui and designer - Qt libraries)

                            1 Reply Last reply
                            0
                            • N Offline
                              N Offline
                              nnn123
                              wrote on last edited by
                              #25

                              I see now that it didn't work with those libraries because it was a realese and not debug

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

                                Good to know that you have solved your issue.
                                However, if problem are persistingh, you might want to consider to change to a newer version of Qt.

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

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mlong
                                  wrote on last edited by
                                  #27

                                  If your problems solved, please be sure and add [Solved] to the beginning of the title of the thread. Thanks!

                                  Software Engineer
                                  My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                                  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