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.6k 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.
  • F Offline
    F Offline
    framet
    wrote on 17 Aug 2018, 16:17 last edited by
    #1

    Hey guys,

    I just stumbled upon a weird bug/problem and I want to know if this is a common issue or that I have missed some important information from Qt Documenation.
    I've created a shared-library project called RemoteSystemBrowserModel. This project requires boost_system, so I've linked the corresponding library.
    Whenever I compile this project I've get following error:

    :-1: error: dependent '[my usr path]\boost_with_binaries\boost_1_67_0\boost\numeric\conversion\detail\preprocessed\numeric_cast_traits_long_long.hpp' does not exist.
    

    Now the funny thing starts.
    If I rename my RemoteSystemBrowserModel.pro to something that does not contain Remote like Test.pro or even like TestRemot.pro without an e. Than it compiles and works fine.

    Has someone experienced something similar? What can cause this behaviour? Have I missed some important naming guidelines?

    Cheers and happy coding!
    Franco

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Aug 2018, 17:27 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
      • C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 17 Aug 2018, 18:09 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 18 Aug 2018, 07:54 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
          • C Offline
            C Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on 18 Aug 2018, 11:45 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 18 Aug 2018, 13:23
            3
            • C Christian Ehrlicher
              18 Aug 2018, 11:45

              @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 18 Aug 2018, 13:23 last edited by
              #6

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

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 18 Aug 2018, 20:04 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 20 Aug 2018, 09:32
                0
                • S SGaist
                  18 Aug 2018, 20:04

                  What version of Qt are you using ?

                  F Offline
                  F Offline
                  framet
                  wrote on 20 Aug 2018, 09:32 last edited by
                  #8

                  @SGaist I'm using Qt 5.11.1

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    framet
                    wrote on 20 Aug 2018, 10:04 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 21 Aug 2018, 06:08
                    1
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 20 Aug 2018, 21:35 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
                        20 Aug 2018, 10:04

                        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 21 Aug 2018, 06:08 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

                        1/11

                        17 Aug 2018, 16:17

                        • Login

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