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. Error while Executing Perl script to generate headers
Forum Updated to NodeBB v4.3 + New Features

Error while Executing Perl script to generate headers

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 4 Posters 1.9k 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.
  • Z Zunneh
    9 Jul 2019, 09:36

    @closx even i tried it it doesn't work , when i press enter nothing happen in console (
    no message ) , it should be like this
    0_1562664888882_5081f1a3-b8d0-413d-82fc-ef3ef8e74749-image.png

    J Offline
    J Offline
    JonB
    wrote on 9 Jul 2019, 10:02 last edited by JonB 7 Sept 2019, 10:03
    #4

    @Zunneh
    I wish you'd sort out your sync.pl versus syncqt.pl, but that's up to you.

    As you can see from your screenshot where sync.pl has an "empty" icon against it, it looks like you have not associated .pl suffix files with perl. That is why perl something.pl runs it as a perl script but plain something.pl does not. Depending on your build process, you either need to associate .pl extension so it automatically runs it with perl, or you need perl ... explicitly on the command line.

    Z 1 Reply Last reply 9 Jul 2019, 10:28
    2
    • J JonB
      9 Jul 2019, 10:02

      @Zunneh
      I wish you'd sort out your sync.pl versus syncqt.pl, but that's up to you.

      As you can see from your screenshot where sync.pl has an "empty" icon against it, it looks like you have not associated .pl suffix files with perl. That is why perl something.pl runs it as a perl script but plain something.pl does not. Depending on your build process, you either need to associate .pl extension so it automatically runs it with perl, or you need perl ... explicitly on the command line.

      Z Offline
      Z Offline
      Zunneh
      wrote on 9 Jul 2019, 10:28 last edited by
      #5

      @JonB so why when i execute it doesn't show the message like in this sceen bellow
      0_1562668033292_7728ed0a-6e08-4309-af04-9882ee36a57f-image.png

      my english is average, please use simple words and try to be the most explicit, thank you

      J 1 Reply Last reply 9 Jul 2019, 10:39
      0
      • Z Zunneh
        9 Jul 2019, 10:28

        @JonB so why when i execute it doesn't show the message like in this sceen bellow
        0_1562668033292_7728ed0a-6e08-4309-af04-9882ee36a57f-image.png

        J Offline
        J Offline
        JonB
        wrote on 9 Jul 2019, 10:39 last edited by JonB 7 Sept 2019, 10:41
        #6

        @Zunneh
        I don't understand your question.

        When you execute perl C:\...syncqt.pl (second case) it runs perl on the script file and produces the lines of output you see.

        When you just execute C:\...syncqt.pl without the leading perl command (first case) it looks like it has no association for .pl files (especially in view of your screenshot showing no icon for .pl files) with perl, so it does not run perl. I don't know what it does with your file in that case, but I see no output.

        Why don't you check your Windows/Explorer file associations for .pl files? Make sure they are associated with perl, and the correct version at that?

        Z 1 Reply Last reply 9 Jul 2019, 10:54
        2
        • J JonB
          9 Jul 2019, 10:39

          @Zunneh
          I don't understand your question.

          When you execute perl C:\...syncqt.pl (second case) it runs perl on the script file and produces the lines of output you see.

          When you just execute C:\...syncqt.pl without the leading perl command (first case) it looks like it has no association for .pl files (especially in view of your screenshot showing no icon for .pl files) with perl, so it does not run perl. I don't know what it does with your file in that case, but I see no output.

          Why don't you check your Windows/Explorer file associations for .pl files? Make sure they are associated with perl, and the correct version at that?

          Z Offline
          Z Offline
          Zunneh
          wrote on 9 Jul 2019, 10:54 last edited by
          #7

          @JonB i already associate the .pl files with Perl app

          0_1562669486072_test.png

          still have the same problem, can't execute the script (no output)

          @JonB and the correct version at that?
          which version are you talking about , Qt or Perl ? Thanks

          my english is average, please use simple words and try to be the most explicit, thank you

          J J 2 Replies Last reply 9 Jul 2019, 11:16
          0
          • Z Zunneh
            9 Jul 2019, 10:54

            @JonB i already associate the .pl files with Perl app

            0_1562669486072_test.png

            still have the same problem, can't execute the script (no output)

            @JonB and the correct version at that?
            which version are you talking about , Qt or Perl ? Thanks

            J Offline
            J Offline
            JonB
            wrote on 9 Jul 2019, 11:16 last edited by JonB 7 Sept 2019, 11:18
            #8

            @Zunneh
            FGS. The screenshot you show does not show you have perl associated with .pl files, it only starts at .pptmhtml which is alphabetically later than .pl anyway so it proves nothing. I can't hold your hand down to this level....

            Z 1 Reply Last reply 9 Jul 2019, 11:25
            1
            • J JonB
              9 Jul 2019, 11:16

              @Zunneh
              FGS. The screenshot you show does not show you have perl associated with .pl files, it only starts at .pptmhtml which is alphabetically later than .pl anyway so it proves nothing. I can't hold your hand down to this level....

              Z Offline
              Z Offline
              Zunneh
              wrote on 9 Jul 2019, 11:25 last edited by
              #9

              @JonB

              0_1562671208454_perle.png

              .pl = .profile

              my english is average, please use simple words and try to be the most explicit, thank you

              J 1 Reply Last reply 9 Jul 2019, 11:30
              0
              • Z Zunneh
                9 Jul 2019, 11:25

                @JonB

                0_1562671208454_perle.png

                .pl = .profile

                J Offline
                J Offline
                JonB
                wrote on 9 Jul 2019, 11:30 last edited by JonB 7 Sept 2019, 11:30
                #10

                @Zunneh

                .pl = .profile

                What?? No, .pl != .profile!! They are spelt differently. What more can I say? Do you understand file extensions?

                1 Reply Last reply
                2
                • Z Zunneh
                  9 Jul 2019, 10:54

                  @JonB i already associate the .pl files with Perl app

                  0_1562669486072_test.png

                  still have the same problem, can't execute the script (no output)

                  @JonB and the correct version at that?
                  which version are you talking about , Qt or Perl ? Thanks

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 9 Jul 2019, 11:46 last edited by
                  #11

                  @Zunneh said in Error while Executing Perl script to generate headers:

                  can't execute the script (no output)

                  If you, for some reason, can't associate .pl file extension with Perl then why not simply do:

                  perl PATH_TO_SCRIPT
                  

                  ?!
                  You're already doing so in your screenshot...

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

                  Z 1 Reply Last reply 9 Jul 2019, 12:43
                  0
                  • J jsulm
                    9 Jul 2019, 11:46

                    @Zunneh said in Error while Executing Perl script to generate headers:

                    can't execute the script (no output)

                    If you, for some reason, can't associate .pl file extension with Perl then why not simply do:

                    perl PATH_TO_SCRIPT
                    

                    ?!
                    You're already doing so in your screenshot...

                    Z Offline
                    Z Offline
                    Zunneh
                    wrote on 9 Jul 2019, 12:43 last edited by
                    #12

                    @jsulm yeah that's what i do , but no output when executing this script

                    my english is average, please use simple words and try to be the most explicit, thank you

                    J 1 Reply Last reply 9 Jul 2019, 12:50
                    0
                    • Z Zunneh
                      9 Jul 2019, 12:43

                      @jsulm yeah that's what i do , but no output when executing this script

                      J Offline
                      J Offline
                      JonB
                      wrote on 9 Jul 2019, 12:50 last edited by
                      #13

                      @Zunneh
                      But you showed earlier that perl ... syncqt.pl does produce output, it's in your screenshots!

                      Why in the world do you not right-click on the .pl file, associate it with perl, and try again? It only takes about 10 seconds....

                      Z 1 Reply Last reply 9 Jul 2019, 12:59
                      1
                      • J JonB
                        9 Jul 2019, 12:50

                        @Zunneh
                        But you showed earlier that perl ... syncqt.pl does produce output, it's in your screenshots!

                        Why in the world do you not right-click on the .pl file, associate it with perl, and try again? It only takes about 10 seconds....

                        Z Offline
                        Z Offline
                        Zunneh
                        wrote on 9 Jul 2019, 12:59 last edited by
                        #14

                        @JonB I finally found it, i was thinking that i have to run the sync.profile in the qftp master while it was the syncqt.pl in the bin file , the resemblance of the name made me deceived ,
                        what an error on my part

                        my english is average, please use simple words and try to be the most explicit, thank you

                        1 Reply Last reply
                        1
                        • Z Offline
                          Z Offline
                          Zunneh
                          wrote on 9 Jul 2019, 13:19 last edited by
                          #15

                          now I just have to add the INCLUDE PATH to my project and add the QT + = ftp,
                          if anyone can help me add the INCLUDEPATH of the modules / qt_ftp.pri ?? Thanks

                          P.S : i'm following this guy : https://stackoverflow.com/questions/47744360/installing-the-qtftp-module-in-qt-5-6-0

                          my english is average, please use simple words and try to be the most explicit, thank you

                          J 1 Reply Last reply 10 Jul 2019, 11:01
                          0
                          • Z Zunneh
                            9 Jul 2019, 13:19

                            now I just have to add the INCLUDE PATH to my project and add the QT + = ftp,
                            if anyone can help me add the INCLUDEPATH of the modules / qt_ftp.pri ?? Thanks

                            P.S : i'm following this guy : https://stackoverflow.com/questions/47744360/installing-the-qtftp-module-in-qt-5-6-0

                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 10 Jul 2019, 11:01 last edited by
                            #16

                            @Zunneh said in Error while Executing Perl script to generate headers:

                            if anyone can help me add the INCLUDEPATH of the modules / qt_ftp.pri ??

                            in pro file

                            INCLUDEPATH  += PATH_TO_DIR_CONTANING_QTFTP_HEADER_FILES
                            

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

                            1 Reply Last reply
                            0

                            13/16

                            9 Jul 2019, 12:50

                            • Login

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