Error while Executing Perl script to generate headers
-
wrote on 9 Jul 2019, 09:06 last edited by
Hello guys,
you know me, it's been a week that I struggled to install QFTP,
i will go step by step and hope someone can help me
1st Step : i downloaded the QFTP source from github (the file is qtftp-master)
2nd Step : i renamed the file "qtftp-master" to "qtftp"
3rd Step : i open the project, i made execute qmake (it works ) i made a build, doestn't work , no such file or directory error (surely because of the perl sync.pl not executed yet )4th Step : i copy the qtftp source and paste it to my source version of qt ( C:\Qt\Qt5.3.0\5.3\Src\qtftp )
Now i have to execute the Perl script to generate the headers, i installed ActivePerl and open cmd
when i tried to execute my script, eroor"Can't open perl script :No such file or direcory
Why he can't execute the script while the directory exist and the file exist ?Thanks -
Hello guys,
you know me, it's been a week that I struggled to install QFTP,
i will go step by step and hope someone can help me
1st Step : i downloaded the QFTP source from github (the file is qtftp-master)
2nd Step : i renamed the file "qtftp-master" to "qtftp"
3rd Step : i open the project, i made execute qmake (it works ) i made a build, doestn't work , no such file or directory error (surely because of the perl sync.pl not executed yet )4th Step : i copy the qtftp source and paste it to my source version of qt ( C:\Qt\Qt5.3.0\5.3\Src\qtftp )
Now i have to execute the Perl script to generate the headers, i installed ActivePerl and open cmd
when i tried to execute my script, eroor"Can't open perl script :No such file or direcory
Why he can't execute the script while the directory exist and the file exist ?Thankswrote on 9 Jul 2019, 09:27 last edited by@Zunneh Am I thinking so simple or are you really trying to execute a perl application that does not exits.
The file you trying to execute,C:\Qt\Qt5.3.0\5.3\Src\qtftp\syncqt.pl
The real file path,C:\Qt\Qt5.3.0\5.3\Src\qtftp\sync.pl
Why do you write syncqt.pl? -
@Zunneh Am I thinking so simple or are you really trying to execute a perl application that does not exits.
The file you trying to execute,C:\Qt\Qt5.3.0\5.3\Src\qtftp\syncqt.pl
The real file path,C:\Qt\Qt5.3.0\5.3\Src\qtftp\sync.pl
Why do you write syncqt.pl? -
@closx even i tried it it doesn't work , when i press enter nothing happen in console (
no message ) , it should be like this
wrote on 9 Jul 2019, 10:02 last edited by JonB 7 Sept 2019, 10:03@Zunneh
I wish you'd sort out yoursync.pl
versussyncqt.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 withperl
. That is whyperl something.pl
runs it as aperl
script but plainsomething.pl
does not. Depending on your build process, you either need to associate.pl
extension so it automatically runs it withperl
, or you needperl ...
explicitly on the command line. -
@Zunneh
I wish you'd sort out yoursync.pl
versussyncqt.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 withperl
. That is whyperl something.pl
runs it as aperl
script but plainsomething.pl
does not. Depending on your build process, you either need to associate.pl
extension so it automatically runs it withperl
, or you needperl ...
explicitly on the command line. -
wrote on 9 Jul 2019, 10:39 last edited by JonB 7 Sept 2019, 10:41
@Zunneh
I don't understand your question.When you execute
perl C:\...syncqt.pl
(second case) it runsperl
on the script file and produces the lines of output you see.When you just execute
C:\...syncqt.pl
without the leadingperl
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) withperl
, so it does not runperl
. 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 withperl
, and the correct version at that? -
@Zunneh
I don't understand your question.When you execute
perl C:\...syncqt.pl
(second case) it runsperl
on the script file and produces the lines of output you see.When you just execute
C:\...syncqt.pl
without the leadingperl
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) withperl
, so it does not runperl
. 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 withperl
, and the correct version at that? -
wrote on 9 Jul 2019, 11:16 last edited by JonB 7 Sept 2019, 11:18
@Zunneh
FGS. The screenshot you show does not show you haveperl
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.... -
@Zunneh
FGS. The screenshot you show does not show you haveperl
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.... -
@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... -
@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... -
wrote on 9 Jul 2019, 12:50 last edited by
@Zunneh
But you showed earlier thatperl ... 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 withperl
, and try again? It only takes about 10 seconds.... -
@Zunneh
But you showed earlier thatperl ... 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 withperl
, and try again? It only takes about 10 seconds.... -
wrote on 9 Jul 2019, 13:19 last edited by
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 ?? ThanksP.S : i'm following this guy : https://stackoverflow.com/questions/47744360/installing-the-qtftp-module-in-qt-5-6-0
-
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 ?? ThanksP.S : i'm following this guy : https://stackoverflow.com/questions/47744360/installing-the-qtftp-module-in-qt-5-6-0
@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
1/16