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. Cross Platform Client Server application
Forum Update on Monday, May 27th 2025

Cross Platform Client Server application

Scheduled Pinned Locked Moved General and Desktop
24 Posts 4 Posters 9.1k 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
    kashifiqb
    wrote on last edited by
    #1

    Hello,

    My requirement is to develop a server-client application (not UDP based) that will be able to run on both windows and Mac. The applications won't have any Dialog visible and only there icons will be displayed in the tray near Clock. I have done this work in windows using VC++ 6 very easily, but now the requirement is to develop same applciation for MAC. I haven't used Mac before, and don't know where to start. Googling for cross-platform,i found about -QT- Qt. So I have few questions:

    Source Code written in -QT- Qt on windows will be able to compile on MAC? and the output application will be able to run on MAC?

    I have installed -QT- Qt Creator IDE, but the compiler is missing. When i download -QT- Qt SDK, it takes much more time to install from online. Any link for offline Installer?

    For mac, how to start my application at startup as we do in windows?

    I am new to -QT- Qt and MAC, so may be my questions seem too basic to you, but I really need help to do all this.

    Kashif

    Edit: it is Qt, not QT; Andre

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Take a look at the examples. There is a Future Cookie example that implements a simple client/server infrastructure, and it works on all supported platforms.

      On your questions then:

      Yes, as long as you use Qt API's and no native API's.

      There is an offline installer yes. You can find it "here":http://labs.qt.nokia.com/2011/05/04/qt-sdk-1-1-released/ (and you are right that there needs to be a clearer download link for that too).

      That is outside the scope of Qt (on both platforms). I bet Google can help you on that part.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        Andre already answered question 1.

        An addition to No 2:
        You can get precompiled versions of the libraries to install in addition to Qt Creator. Look for the Mac section on the "qt download page":http://qt.nokia.com/downloads (go LGPL). After you're done make sure Qt Creator has catched up for the newly installed libs (Settings Cmd-,; choose Qt4 on the left) or add it manually. You need the path to qmake (I suppose it's in /usr/bin or somewhere below /Developer; I never installed the prebuilt binaries).

        Regarding No 3:
        Depending on when the application should be started, you must create a startup item (started when the Mac boots) or a login item (launched when a user logs in). See "this blog post":http://mattdanger.net/2009/01/scripting-login-tasks-in-mac-os-x/ for an explanation of the latter. There is no builtin support from Qt's side on this, as it is more a matter of installers and the like.

        Additional comments:
        Be sure to read and understand the deployment hints on the "general instructions":http://doc.qt.nokia.com/4.7/deployment.html as well as on the platform specific docs listed at the end of the linked page.

        http://www.catb.org/~esr/faqs/smart-questions.html

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

          Thanks Andre and Volker..

          Volker Regarding No 2: on the page of download link, are you referring to "Qt libraries 4.7.3 for Mac" on the right side of the page (i.e. Qt Framework only) or the full SDK on the left?

          Kashif

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            The framework only. That's sufficient, as you happen to have Creator already.

            http://www.catb.org/~esr/faqs/smart-questions.html

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

              Thanks Volker,

              And for windows also, I will have to download the framework only if i have the Creator already?

              Kashif

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

                Yep. But watch out for the right version (MSVS 2008 or MinGW!)

                http://www.catb.org/~esr/faqs/smart-questions.html

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

                  Thanks Volker,

                  Earlier today, i downloaded the Qt SDK for windows, and tried to install it.. it got installed 75% and then some strange errors started coming on like:

                  9
                  .
                  .
                  .
                  .8.
                  .
                  .
                  ..
                  7
                  .
                  .
                  .
                  .
                  .
                  and so on..

                  It installed examples, Creator etc, but was not going further on installation. I opened creator and tried to run an example, but it said it can't find the QMake... This thing annoyed me for most of the time and i couldn't get any result out of it.. Can you elaborate this? I just want to get started with the Qt, and a lot of problems are coming forth..

                  Kashif

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    matrixx
                    wrote on last edited by
                    #9

                    I think the countdown of numbers is supposed to be there, it's not an error. At least when I'm installing, it countdowns and when reached 0, the installation is ready and working. Installation only needs patience, that might take a while to finish.

                    Nokia Certified Qt Specialist

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

                      Thanks matrixx..

                      But the issue is that the countdown repeat some more than 4 times, and was continuing again.. is it the right behavior?

                      Kashif

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        matrixx
                        wrote on last edited by
                        #11

                        Ok, I'm not sure about that. I've seen the numbers only once when installing some older SDK. And to be honest, when installing latest SDK 1.1 I didn't follow the installation process at all, just left it to finish by itself when cooking meanwhile.

                        Nokia Certified Qt Specialist

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

                          Did you do it for windows? I can't get it running at any cost.. For Mac, will I have to download the build and Interface Tools (206 MB) or the libs only (422 MB) binary package from here: http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x

                          Kashif

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            matrixx
                            wrote on last edited by
                            #13

                            Mine was for 64-bit windows, don't know anything about Macs :)

                            Nokia Certified Qt Specialist

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

                              Ok, i have installed the mac framework libraries and installed Qt Creator as well.. Now when i try to build the localfortuneserver example, it says "Could not find the Make command to build the project"..

                              Can anybody help me with that?

                              Kashif

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                goetz
                                wrote on last edited by
                                #15

                                Did you install XCode?

                                http://www.catb.org/~esr/faqs/smart-questions.html

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

                                  Well i am using Mac in VMWare for the first time and don't know.. Can you guide on how to check if it is installed or not? and how to install it?

                                  Kashif

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    goetz
                                    wrote on last edited by
                                    #17

                                    Then it's probably not installed. Go and download it from Apple's "XCode page":http://developer.apple.com/xcode/

                                    Go with XCode 3 - the link is at the bottom of the right column. You will need to setup an Apple ID. More info on Qt's "Developing Qt Applications for Mac OS X":http://doc.qt.nokia.com/4.7/developing-on-mac.html. I don't know if XCode 4 is yet supported, but I suppose not.

                                    BTW: It's not allowed to run Mac OS X Desktop version in a virtual machine.

                                    http://www.catb.org/~esr/faqs/smart-questions.html

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

                                      Volker, it is my first time when I am using Mac..and I dont have Mac with me, thats y i am using VM ware.. Can you tell me why are referring xCode 3? any specific reason? I am reading the article QT programming for Mac..

                                      Kashif

                                      1 Reply Last reply
                                      0
                                      • K Offline
                                        K Offline
                                        kashifiqb
                                        wrote on last edited by
                                        #19

                                        (1) On windows, i downloaded the framework and tried to install and it said that it cant find mingw.. and directed me towards SDLK installation. I installed the SDK, now i can build QT examples, and the .exe is generated in the respective folder. But when I double click this exe to run, it says "The applicaiton has failed to start because mingwm10.dll was not found. Re-installing the application may fix this problem".. Any help?

                                        (2) Also, after (1) is fixed, if i take this exe to some other system, where QT framework or SDK is not installed, will it work or not?

                                        1 Reply Last reply
                                        0
                                        • G Offline
                                          G Offline
                                          goetz
                                          wrote on last edited by
                                          #20

                                          Regarding 2: You must deliver all the needed libs, including MinGW DLLs. Please refer to the deployment pages linked earlier in this thread.

                                          http://www.catb.org/~esr/faqs/smart-questions.html

                                          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