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. build Qt project in Mac Qt without errors,but nothing display!

build Qt project in Mac Qt without errors,but nothing display!

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 851 Views 1 Watching
  • 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.
  • P Offline
    P Offline
    Princein
    wrote on last edited by
    #1

    Hello:
    I developed a project in Mac Qt which transplanted from windows qt,I had fix many build errors nearly a week,it is a large project,now when I build it,it show no error,but I can't see anything in my Mac , in my DESTDIR, I get a FUEditor.app, so I go into the content/MacOS folder, I see the FUEditor exec,and I doubleclick it,in the terminal,It shows :

    /Users/lee/Desktop/VisualStudio/FUEditor/Build/FUEditor.app/Contents/MacOS/FUEditor ; exit;
    [Process completed]

    And in the Qt,there are no useful information show me,now I have no idea what wrong with my app,and how to debug it get the wrong information,Thanks a lot!

    jsulmJ 1 Reply Last reply
    0
    • P Princein

      Hello:
      I developed a project in Mac Qt which transplanted from windows qt,I had fix many build errors nearly a week,it is a large project,now when I build it,it show no error,but I can't see anything in my Mac , in my DESTDIR, I get a FUEditor.app, so I go into the content/MacOS folder, I see the FUEditor exec,and I doubleclick it,in the terminal,It shows :

      /Users/lee/Desktop/VisualStudio/FUEditor/Build/FUEditor.app/Contents/MacOS/FUEditor ; exit;
      [Process completed]

      And in the Qt,there are no useful information show me,now I have no idea what wrong with my app,and how to debug it get the wrong information,Thanks a lot!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Princein Did you try to debug your app to see what happens?
      Starting the app outside of QtCreator would require you to first do the deployment, so first try to run it from QtCreator.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Princein
        wrote on last edited by
        #3

        @jsulm said in build Qt project in Mac Qt without errors,but nothing display!:

        deployment
        thanks for your reply!
        I debug the project in Qt Create, and Add breakpoint in the main.cpp,and the breakpoint not executed,it seem the app not go into the main.cpp,what should I do,thanks!

        jsulmJ 1 Reply Last reply
        0
        • P Princein

          @jsulm said in build Qt project in Mac Qt without errors,but nothing display!:

          deployment
          thanks for your reply!
          I debug the project in Qt Create, and Add breakpoint in the main.cpp,and the breakpoint not executed,it seem the app not go into the main.cpp,what should I do,thanks!

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Princein Looks like some lib is not found. I'm not a MacOS expert, on Linux I would use ldd tool to see whether all dependencies are there

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Princein
            wrote on last edited by
            #5

            @jsulm said in build Qt project in Mac Qt without errors,but nothing display!:

            MacOS expert, on Li

            thanks for your reply,it meanings that some lib can't be found,that cause my app can't run in the main.cpp?

            J.HilkJ jsulmJ 2 Replies Last reply
            0
            • P Princein

              @jsulm said in build Qt project in Mac Qt without errors,but nothing display!:

              MacOS expert, on Li

              thanks for your reply,it meanings that some lib can't be found,that cause my app can't run in the main.cpp?

              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @Princein
              do you use any api's that would need a special entry in the info.plist ?
              some informations to be found here
              MacOS is finicky in that area and you often don't get a error output for it.


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              0
              • P Princein

                @jsulm said in build Qt project in Mac Qt without errors,but nothing display!:

                MacOS expert, on Li

                thanks for your reply,it meanings that some lib can't be found,that cause my app can't run in the main.cpp?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Princein Yes, if your app is loaded by the OS and the loader can't find some libs needed by your app then your main() will not be executed at all.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mpergand
                  wrote on last edited by mpergand
                  #8

                  Try the following:

                  • launch the Console app in the Utllity folder
                  • launch your app from the desktop (double clicking on it)
                  • look at any relevant messages in the Console relative to your app
                  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