Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT 5.15.0 install :

QT 5.15.0 install :

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
77 Posts 5 Posters 18.0k 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.
  • H Offline
    H Offline
    hskoglund
    wrote on 9 Jul 2020, 16:09 last edited by
    #47

    Ok, if you set an empty PYTHONHOME:

    set PYTHONHOME=
    

    and then if you try

    gdborig
    

    again, then it should say:
    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    ImportError: No module named site

    If it does not, could you type:

    set
    
    1 Reply Last reply
    1
    • D Offline
      D Offline
      dahu74fr
      wrote on 9 Jul 2020, 16:14 last edited by
      #48

      @hskoglund said in QT 5.15.0 install ::

      set PYTHONHOME=

      7dd489e9-5504-423b-b7d5-bb71c695baec-image.png 67b121db-88c1-494e-84ad-2f75d73d5ac7-image.png

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hskoglund
        wrote on 9 Jul 2020, 16:21 last edited by
        #49

        The set output looks totally legit, the only left I think (a bit of a longshot :-):
        try uninstalling the Component Servicing Infrastructure (CSI) program, (perhaps that csilogfile tracing stuff messes with gdb)

        1 Reply Last reply
        1
        • D Offline
          D Offline
          dahu74fr
          wrote on 9 Jul 2020, 16:29 last edited by
          #50

          OK.
          I don't know how to uninstall the Component Servicing Infrastructure (CSI) program.
          Can you tell me how ?
          I will try this tomorrow.
          I will also look at the registry because on my computer, i have a software who check if i have the latest versions for my softwares.
          And this software tells me that i have an old version of Python (V3.7.4), or i have uninstalled all versions of Python.
          So i thing something is staying in the registry.
          I will send my feedback when it will be done.
          Best regards and thanks a lot.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hskoglund
            wrote on 9 Jul 2020, 16:34 last edited by
            #51

            Uninstall CSI program: no problem, we can try that later.
            Also, I just googled for how to trace the startup of gdb
            https://www.sourceware.org/gdb/onlinedocs/gdb.html#Startup

            So the culprit is that gdborig does not show those error lines as I mentioned above (it just exits silently)

            We can look into that tomorrow :-)

            D 2 Replies Last reply 9 Jul 2020, 16:49
            1
            • H hskoglund
              9 Jul 2020, 16:34

              Uninstall CSI program: no problem, we can try that later.
              Also, I just googled for how to trace the startup of gdb
              https://www.sourceware.org/gdb/onlinedocs/gdb.html#Startup

              So the culprit is that gdborig does not show those error lines as I mentioned above (it just exits silently)

              We can look into that tomorrow :-)

              D Offline
              D Offline
              dahu74fr
              wrote on 9 Jul 2020, 16:49 last edited by
              #52

              @hskoglund OK. We will look that tomorrow.
              I am looking actually at the registry and there is many entries with Python.

              1 Reply Last reply
              0
              • H hskoglund
                9 Jul 2020, 16:34

                Uninstall CSI program: no problem, we can try that later.
                Also, I just googled for how to trace the startup of gdb
                https://www.sourceware.org/gdb/onlinedocs/gdb.html#Startup

                So the culprit is that gdborig does not show those error lines as I mentioned above (it just exits silently)

                We can look into that tomorrow :-)

                D Offline
                D Offline
                dahu74fr
                wrote on 13 Jul 2020, 06:40 last edited by dahu74fr
                #53

                @hskoglund Sorry,
                I couldn't try anything these 3 days. Now, it's OK.
                I cleaned every entry of Python in the registry and it's the same thing.
                I tried to use gdb.exe located in Qt with CodeBlocks and it works.
                It's only with Qt which it doesn't works, i think.
                Perhaps a Qt path ou configuration that is not good.

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hskoglund
                  wrote on 13 Jul 2020, 10:33 last edited by
                  #54

                  Hi, also the reason why Qt's gdb.exe does not work might not be Python-related at all, it could be the problem is that CodeBlock and Qt are on the same PC...
                  Anyways, if gdb.exe in CodeBlocks works for you, then you're ok :-)

                  D 2 Replies Last reply 13 Jul 2020, 13:36
                  1
                  • H hskoglund
                    13 Jul 2020, 10:33

                    Hi, also the reason why Qt's gdb.exe does not work might not be Python-related at all, it could be the problem is that CodeBlock and Qt are on the same PC...
                    Anyways, if gdb.exe in CodeBlocks works for you, then you're ok :-)

                    D Offline
                    D Offline
                    dahu74fr
                    wrote on 13 Jul 2020, 13:36 last edited by
                    #55

                    @hskoglund Yes Python, Qt and CodeBlocks are on the same PC.
                    I can uninstall Python and CodeBlocks if necessary to try if it change something.
                    What do you think ?

                    1 Reply Last reply
                    0
                    • H hskoglund
                      13 Jul 2020, 10:33

                      Hi, also the reason why Qt's gdb.exe does not work might not be Python-related at all, it could be the problem is that CodeBlock and Qt are on the same PC...
                      Anyways, if gdb.exe in CodeBlocks works for you, then you're ok :-)

                      D Offline
                      D Offline
                      dahu74fr
                      wrote on 14 Jul 2020, 12:52 last edited by
                      #56

                      @hskoglund Sorry,
                      I think that gdb in codeblocks is not working. When i launch debug in codeblocks, i have no errors. But if i want to debug step by step, i have not the options. So i think it doesn't work.

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        hskoglund
                        wrote on 14 Jul 2020, 13:02 last edited by
                        #57

                        Hi, don't know so much about CodeBlocks, but their debug gdb,exe I think is Cygwin-based. Anyways, if CodeBlocks debug is broken, you could ask in their forum.

                        D 1 Reply Last reply 14 Jul 2020, 13:19
                        0
                        • H hskoglund
                          14 Jul 2020, 13:02

                          Hi, don't know so much about CodeBlocks, but their debug gdb,exe I think is Cygwin-based. Anyways, if CodeBlocks debug is broken, you could ask in their forum.

                          D Offline
                          D Offline
                          dahu74fr
                          wrote on 14 Jul 2020, 13:19 last edited by dahu74fr
                          #58

                          @hskoglund I tried to launch gdb.exe whickh is in codeblocks in command line to see if it works. Inoted also that gdb.exe in codeblocks is exactly the same as in Qt. To test gdb, i used a small program prog.c:

                          #include <stdio.h>
                          #include <stdlib.h>

                          int main()
                          {
                          printf("Hello world!\n");
                          return 0;
                          }

                          The i compiled it with :

                          gcc -Wall -g prog.c -o prog

                          and after i launched :

                          gdb prog.exe

                          And the result is that i have nothing.
                          I made the same thing with gdb in Qt, and same result.

                          1 Reply Last reply
                          0
                          • H Offline
                            H Offline
                            hskoglund
                            wrote on 14 Jul 2020, 15:26 last edited by
                            #59

                            When you typegdb prog.exe and then type start inside gdb it should say something like:
                            ...
                            Temporary breakpoint 1 at 0x40.... .... prog.c line 6.
                            Starting program...
                            ...

                            But your gdb.exe is just silent, same as before?

                            D 1 Reply Last reply 14 Jul 2020, 15:38
                            0
                            • H hskoglund
                              14 Jul 2020, 15:26

                              When you typegdb prog.exe and then type start inside gdb it should say something like:
                              ...
                              Temporary breakpoint 1 at 0x40.... .... prog.c line 6.
                              Starting program...
                              ...

                              But your gdb.exe is just silent, same as before?

                              D Offline
                              D Offline
                              dahu74fr
                              wrote on 14 Jul 2020, 15:38 last edited by
                              #60

                              @hskoglund Yes it is silent when i type gdb prog.exe ,
                              But between the command gdb prog.exe and when it returns : "C:\Programmation\Qt\Tools\mingw810_64\bin>" the computer works about 5 seconds.

                              07eedc31-913f-464e-b1e8-72b4846f7d67-image.png

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                hskoglund
                                wrote on 14 Jul 2020, 15:41 last edited by
                                #61

                                Yeah, it's trying to start Python I think.

                                One idea you haven't tried (I think): go to Settings and create a new user, logout and login as the new user. Then try gdb.exe when logged in as that new user.

                                D 2 Replies Last reply 14 Jul 2020, 15:53
                                0
                                • H hskoglund
                                  14 Jul 2020, 15:41

                                  Yeah, it's trying to start Python I think.

                                  One idea you haven't tried (I think): go to Settings and create a new user, logout and login as the new user. Then try gdb.exe when logged in as that new user.

                                  D Offline
                                  D Offline
                                  dahu74fr
                                  wrote on 14 Jul 2020, 15:53 last edited by
                                  #62

                                  @hskoglund OK. I try.

                                  1 Reply Last reply
                                  0
                                  • H hskoglund
                                    14 Jul 2020, 15:41

                                    Yeah, it's trying to start Python I think.

                                    One idea you haven't tried (I think): go to Settings and create a new user, logout and login as the new user. Then try gdb.exe when logged in as that new user.

                                    D Offline
                                    D Offline
                                    dahu74fr
                                    wrote on 14 Jul 2020, 16:05 last edited by
                                    #63

                                    @hskoglund I tried with a new account and i have the same thing.

                                    1 Reply Last reply
                                    0
                                    • H Offline
                                      H Offline
                                      hskoglund
                                      wrote on 15 Jul 2020, 06:56 last edited by
                                      #64

                                      About why python does not work good for gdb, could you check the python installation in Qt:

                                      cd C:\Programmation\Qt\Tools\mingw810_64\opt\bin
                                      python -c "print 2+2"
                                      

                                      If the python command works and prints "4" then could you try the same with the verbose flag:

                                      python -v -c "print 2+2"
                                      

                                      and post the output here...

                                      D 1 Reply Last reply 15 Jul 2020, 08:54
                                      1
                                      • H hskoglund
                                        15 Jul 2020, 06:56

                                        About why python does not work good for gdb, could you check the python installation in Qt:

                                        cd C:\Programmation\Qt\Tools\mingw810_64\opt\bin
                                        python -c "print 2+2"
                                        

                                        If the python command works and prints "4" then could you try the same with the verbose flag:

                                        python -v -c "print 2+2"
                                        

                                        and post the output here...

                                        D Offline
                                        D Offline
                                        dahu74fr
                                        wrote on 15 Jul 2020, 08:54 last edited by
                                        #65

                                        @hskoglund Yes it seams to work :
                                        4820164e-62d1-4e8d-ac4b-f6d0e16b3631-image.png
                                        and :
                                        669cb975-c9a6-406f-89b3-67a4d16c7a77-image.png 5d3d1e3b-f7e8-4230-8bd3-616aaae15ec0-image.png a5a6e75a-9e52-43e8-8713-99ef94b1a609-image.png

                                        1 Reply Last reply
                                        0
                                        • H Offline
                                          H Offline
                                          hskoglund
                                          wrote on 15 Jul 2020, 09:49 last edited by
                                          #66

                                          Ok, looks good. I think to see why your gdb.exe does not run, we need to trace it using Process Monitor, download it here

                                          Here's what you do:
                                          start Process Monitor (procmon.exe), type ctrl+L to show the Filter dialog box, in that dialog in the top left corner, in the drop-down list, select "Process Name", then check that the next drop-down list selects "Is" then in the edit box type gdborig.exe and the click the Add button. After that it should look like this:
                                          Screenshot 2020-07-15 at 11.46.05.png Click OK button to close the dialog box.

                                          Then start gdb.exe as we did before:

                                          C:\Programmation\Qt\Tools\mingw810_64\bin\gdb.exe
                                          

                                          Now entries should be seen in ProcMon, like this:
                                          Screenshot 2020-07-15 at 11.47.03.png
                                          My ProcMon shows 2315 entries for gdborig.exe but your output should be shorter (since it fails) post here say the last 50 lines before it stops.

                                          Note: you can clear the display of ProcMon using ctrl+X

                                          D 1 Reply Last reply 15 Jul 2020, 10:23
                                          1

                                          56/77

                                          14 Jul 2020, 12:52

                                          • Login

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