Shadow build of Qt 4.7.4 failing due to syncqt not running
Hi,
I am trying to create a shadow build of 4.7.4 for a Custom CE platform and have followed the instructions on the QT web site. I have installed perl and included it in my path.
when i run configure it aborts with the following message....
syncqt failed, return code 1
if type bin\syncqt.bat the script runs and the include directory get copied across, suggesting that perl is ok.
I got round this with 4.7.1 by runing syncqt manually but configure has changed such that it aborts if syncqt fails to run. Any one have any suggestions?
development platform: Windows 7 64 bit
MSVC ver: 2008
other tools: TCC LE 12.11 (cmd.exe replacement)
thanks in advance for help
Robin
Re: Shadow build of Qt 4.7.4 failing due to syncqt not running
Question: When you say you included Perl in your path, do you mean your system path or the Qt-environment path that is set up when you launch the Qt build prompt?
Simply put, if Perl is in your System Path only, Qt won't find it if you're using the command-prompt build shortcut provided with the Qt installation. This shortcut opens a command prompt and clears all environment variables and sets up its own. It does this by executing "bin/qtvars.bat" in your Qt installation directory. Here is the critical section which you need to change:
From qtvars.bat:
Code:
set QTDIR=C:\Qt\4.7.3
set PATH=C:\Qt\4.7.3\bin
set PATH=%PATH%;C:\Qt\qtcreator-2.2.1\mingw\bin
set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++
Simply add this line to qtvars.bat to include Perl into your "Qt build path":
Code:
set PATH=%PATH%;C:\PATH\TO\PERL
Then it must find Perl. If you really think Perl is definitely in your Qt build path, then execute "perl -v" from within your Qt build command prompt and see what happens. This has happened to me many times in my experience building Qt. It may be a variation of this solution, but I think somehow Perl is not being found.
Re: Shadow build of Qt 4.7.4 failing due to syncqt not running
Hi,
I don't use the qtvars.bat file to get my build environment set up as I start off with standard cmd prompt then run my own setenv.bat file which contains the following
Code:
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
set PATH=C:\Qt\4.7.4(win32)\bin;c:\Perl64\bin;%PATH%
set QTDIR=C:\Qt\4.7.4
then build qt using:
Code:
..\4.7.4\configure -debug-and-release -opensource -platform win32-msvc2008
after pressing 'y' to confirm the license i get the following error message
Running syncqt...
'C:\Qt\4.7.4' is not recognized as an internal or external command,
operable program or batch file.
syncqt failed, return code 1
typing perl -v yields....
This is perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x64-multi-t
hread
(with 9 registered patches, see perl -V for more detail)
Copyright 1987-2010, Larry Wall
Binary build 1205 [294981] provided by ActiveState http://www.ActiveState.com
Built Jun 20 2011 18:11:54
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Typing bin\syncqt.bat] copys all the headers across.
might I be better off using a 32bit version of perl?
Re: Shadow build of Qt 4.7.4 failing due to syncqt not running
Update:
I have just retried to build 4.8.0 for my ce platform using shadow builds and encountered the same issue.
My source directory was c:\qt\4.8.0-master and my target directory was c:\qt\4.8.0(ce_armv4i)
with this set up the syncqt failed to run.
However when i changed my target directory to c:\qt\4.8.0-ce_armv4i i can build the qt libraries
Hope this is of help to anyone having problems with shadow builds.
Robin