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. Qt Project Name causing trouble
Forum Updated to NodeBB v4.3 + New Features

Qt Project Name causing trouble

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 4 Posters 1.7k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Never have got that use case...
    What version of Qt are you using ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #3

      @SGaist said in Qt Project Name causing trouble:

      Never have got that use case...

      Then you're lucky and don't have to work on Windows. There is still the path length limitation to 260 characters unless you're using the '\?' prefix. See https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file#maximum-path-length-limitation

      But I don't know if all qt tools support this path notation.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • F Offline
        F Offline
        framet
        wrote on last edited by
        #4

        I'm usting the latest Qt Version 5.11.1 with msvc 2017 64.

        @Christian-Ehrlicher thank you for pointing this out to me. I didn't know this limitation in windows. But for me the problem exists even with a path smaller than 260 characters.
        For now I'm just not using remote in my project names. But it is still very strange and I can't really pin point something out which may cause problem.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by JKSH
          #5

          @framet said in Qt Project Name causing trouble:

          But it is still very strange and I can't really pin point something out which may cause problem.

          The problem is a (include) path which is longer than 260 chars somewhere in your generated Makefile

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          F 1 Reply Last reply
          3
          • Christian EhrlicherC Christian Ehrlicher

            @framet said in Qt Project Name causing trouble:

            But it is still very strange and I can't really pin point something out which may cause problem.

            The problem is a (include) path which is longer than 260 chars somewhere in your generated Makefile

            F Offline
            F Offline
            framet
            wrote on last edited by
            #6

            @Christian-Ehrlicher ah okey will check that. Thank you very much!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #7

              What version of Qt are you using ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              F 1 Reply Last reply
              0
              • SGaistS SGaist

                What version of Qt are you using ?

                F Offline
                F Offline
                framet
                wrote on last edited by
                #8

                @SGaist I'm using Qt 5.11.1

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  framet
                  wrote on last edited by framet
                  #9

                  I've made other tests this morning. It has nothing to do with the name Remote rather with the naming length of the .pro file.
                  As @Christian-Ehrlicher already mentioned it has probably to do with path length. I've copied the boost_library folder directly into C:\ and now it works with longer names of the .pro file aswell.
                  I was unable to locate the exact path in the makefile which could let to not working or exciding 260 characters path length.
                  Maybe some Qt Guru can make a little script which will check the Makefile on Windows to prevent this kind of errors?

                  Best regards
                  Franco

                  Edit: When using shadow build the path gets significantly longer than the project name.
                  Exp.:
                  (20 Characters)

                  TestRemoteTestRemote
                  

                  will be in the folder
                  (65 Characters)

                  build-TestRemoteTestRemote-Desktop_Qt_5_11_1_MSVC2017_64bit-Debug
                  
                  aha_1980A 1 Reply Last reply
                  1
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Glad you found out and thanks for the feedback !

                    That's a default setting, you can change it in Qt Creator.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1
                    • F framet

                      I've made other tests this morning. It has nothing to do with the name Remote rather with the naming length of the .pro file.
                      As @Christian-Ehrlicher already mentioned it has probably to do with path length. I've copied the boost_library folder directly into C:\ and now it works with longer names of the .pro file aswell.
                      I was unable to locate the exact path in the makefile which could let to not working or exciding 260 characters path length.
                      Maybe some Qt Guru can make a little script which will check the Makefile on Windows to prevent this kind of errors?

                      Best regards
                      Franco

                      Edit: When using shadow build the path gets significantly longer than the project name.
                      Exp.:
                      (20 Characters)

                      TestRemoteTestRemote
                      

                      will be in the folder
                      (65 Characters)

                      build-TestRemoteTestRemote-Desktop_Qt_5_11_1_MSVC2017_64bit-Debug
                      
                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @framet If your issue is solved, so please mark this topic as SOLVED too. Thanks!

                      Qt has to stay free or it will die.

                      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