Results 1 to 4 of 4

Thread: Shadow build of Qt 4.7.4 failing due to syncqt not running

  1. #1
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Question 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

  2. #2
    Join Date
    Nov 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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:
    Qt Code:
    1. set QTDIR=C:\Qt\4.7.3
    2. set PATH=C:\Qt\4.7.3\bin
    3. set PATH=%PATH%;C:\Qt\qtcreator-2.2.1\mingw\bin
    4. set PATH=%PATH%;%SystemRoot%\System32
    5. set QMAKESPEC=win32-g++
    To copy to clipboard, switch view to plain text mode 

    Simply add this line to qtvars.bat to include Perl into your "Qt build path":
    Qt Code:
    1. set PATH=%PATH%;C:\PATH\TO\PERL
    To copy to clipboard, switch view to plain text mode 

    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.

  3. #3
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Question 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
    Qt Code:
    1. call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
    2. set PATH=C:\Qt\4.7.4(win32)\bin;c:\Perl64\bin;%PATH%
    3. set QTDIR=C:\Qt\4.7.4
    To copy to clipboard, switch view to plain text mode 

    then build qt using:
    Qt Code:
    1. ..\4.7.4\configure -debug-and-release -opensource -platform win32-msvc2008
    To copy to clipboard, switch view to plain text mode 

    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?

  4. #4
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default 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

Similar Threads

  1. QMake problem when using INSTALL and a shadow build directory
    By superpacko in forum Qt Tools
    Replies: 0
    Last Post: 6th September 2011, 15:43
  2. Failed to build Qt 4.7.1 in a shadow build with feature tuning
    By myfifth in forum Installation and Deployment
    Replies: 0
    Last Post: 17th February 2011, 03:25
  3. Shadow build possible using Mobile 6 SDK?
    By danielweberdlc in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 24th September 2010, 22:13
  4. Replies: 7
    Last Post: 2nd November 2009, 19:07
  5. Shadow build QT for the win32-g++ (MinGw) platform.
    By Avrohom in forum Installation and Deployment
    Replies: 0
    Last Post: 20th January 2009, 23:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.