Results 1 to 13 of 13

Thread: Qt4.3 and MSVC++ 2005 - unable to install Qt

  1. #1
    Join Date
    Jun 2007
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt4.3 and MSVC++ 2005 - unable to install Qt

    I have been following this guide http://wiki.qtcentre.org/index.php?t..._Visual_Studio .

    I have configured and compiled the library successfully. I then move on to the "Installing" chapter, and run "nmake install_qmake", which works great.

    However, when I try to run "nmake sub-src-install_subtargets", I get this error message:

    Qt Code:
    1. NMAKE : fatal error U1073: don't know how to make 'sub-src-install_subtargets'
    2. Stop.
    To copy to clipboard, switch view to plain text mode 

    I have also tried to run "nmake install", but instead of copying files, the program tries to run the files instead. Here is the last few lines copied from the command prompt (see the last line in particular, the "copy /y" part is missing)

    Qt Code:
    1. nmake -f Makefile.Release install
    2.  
    3. Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
    4. Copyright (C) Microsoft Corporation. All rights reserved.
    5.  
    6. copy /y "release\systray.exe" "c:\Qt4-msvc2005-shared\examples\desktop\systray\systray.exe"
    7. 1 fil(er) ble kopiert.
    8. copy /y c:\qt-win-opensource-src-4.3.0\examples\desktop\systray\main.cpp c:\Qt4-msvc2005-shared\examples\desktop\systray
    9. 1 fil(er) ble kopiert.
    10. copy /y c:\qt-win-opensource-src-4.3.0\examples\desktop\systray\window.cpp c:\Qt4-msvc2005-shared\examples\desktop\systray
    11. 1 fil(er) ble kopiert.
    12. copy /y c:\qt-win-opensource-src-4.3.0\examples\desktop\systray\window.h c:\Qt4-msvc2005-shared\examples\desktop\systray
    13. 1 fil(er) ble kopiert.
    14. copy /y c:\qt-win-opensource-src-4.3.0\examples\desktop\systray\systray.qrc c:\Qt4-msvc2005-shared\examples\desktop\systray
    15. 1 fil(er) ble kopiert.
    16. copy /y c:\qt-win-opensource-src-4.3.0\examples\desktop\systray\systray.pro c:\Qt4-msvc2005-shared\examples\desktop\systray
    17. 1 fil(er) ble kopiert.
    18. c:\qt-win-opensource-src-4.3.0\examples\desktop\desktop.pro c:\Qt4-msvc2005-shared\examples\desktop
    To copy to clipboard, switch view to plain text mode 


    The guide worked great with Qt4.2.3, but I can't get 4.3 to work.

    Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    Looks like this is renamed to
    'install_subtargets'
    now. Can you please give it a try?

  3. #3
    Join Date
    Jun 2007
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    Sorry for the delay, I have not been at the office for a couple of days.

    "nmake install_subtargets" worked, sort of. A lot of files were copied, but I got the same problem I described earlier. The install script suddenly wanted to start opening files instead of copying them. I'm wondering if a COPY command in a makefile has not been set, but I'm not sure which one that could cause the problem.

  4. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    You're right. Looks like tt introduced a new QMAKE_foo variable in qmake.conf.

    Please add
    Qt Code:
    1. QMAKE_COPY_FILE = copy /y
    To copy to clipboard, switch view to plain text mode 
    to mkspecs/win32-msvc2005/qmake.conf (somehwere near QMAKE_COPY) and rerun qmake in the examples/desktop and see if it works.
    If it works, let me know so I can create a new patch.

  5. #5
    Join Date
    Jun 2007
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    It did not work. I get the same problem.

  6. #6
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    Please also modify mkspecs/default/qmake.conf (or copy it from win32-msvc2005 - folder) and don't forget to rerun qmake inside exmaples/desktop!

  7. #7
    Join Date
    Jun 2007
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    I still had the problem with COPY_FILE = copy /y, but setting INSTALL_FILE = copy /y worked.

    I did this in the examples/desktop first, trying to locate the problem. It worked, but then I got a problem in the next folder, examples/dialogs. I then set INSTALL_FILE = copy /y in that makefile, and tried again. Now the problem had moved on to the next folder (examples/draganddrop), and so on...

    Maybe INSTALL_FILE = copy /y could somehow be set in the qmake.conf files, or in examples/makefile? I haven't had the chance to test yet.

    I was following the guide on the wiki, and it didnt mention having to change anything in the examples/makefile. That may be the cause of my problems.

    Edit: I am running a "nmake install_subtargets" right now, so I'm not sure if everything works correctly yet, but setting INSTALL_FILE might be the solution.

  8. #8
    Join Date
    Jun 2007
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    Now I got it to work.

    I added

    Qt Code:
    1. QMAKE_INSTALL_FILE = copy /y
    2. QMAKE_COPY_FILE = copy /y
    To copy to clipboard, switch view to plain text mode 

    to mkspecs\default\qmake.config and mkspecs\win32-msvc2005\qmake.config, and generated all makefiles again. I think adding them to win32-msvc2005\qmake.config will be enough, but I'm not 100% certain.

    Then I ran "nmake install_subtargets", and it completed successfully.

  9. #9
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    I've found the problem. Your version also works, but there is an easier and better solution for this.
    Thx for the help on investigate this, a new patch is coming soon

  10. #10
    Join Date
    Aug 2006
    Posts
    83

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    Hi,

    i have compiled qt using visual studio 2005 but I'm not sure if the compile was completely finished... examples work, so do demos, assistant, designer. I'm not sure if everything compiled because when compiling qt 4.2.2 I got nice message telling me of success (when registering server), but here I didn't get that message. I have posted a screenshot of my compile at the end when it stopped and please tell me if there was anything wrong with the compile process.
    Attached Images Attached Images

  11. #11
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Thanks
    2
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    Quote Originally Posted by moowy View Post
    Hi,

    i have compiled qt using visual studio 2005 but I'm not sure if the compile was completely finished... examples work, so do demos, assistant, designer. I'm not sure if everything compiled because when compiling qt 4.2.2 I got nice message telling me of success (when registering server), but here I didn't get that message. I have posted a screenshot of my compile at the end when it stopped and please tell me if there was anything wrong with the compile process.
    It looks fine. There is no "cl.exe returned with exit code 1" or something similar, which would indicate an error.
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

  12. #12
    Join Date
    Jul 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    I have been following this guide http://wiki.qtcentre.org/index.php?t..._Visual_Studio

    Done anyone know what happen after "nmake"? ( quote )

    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\l
    ink.EXE"' : 傳回碼 '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
    make.EXE"' : 傳回碼 '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : 傳回碼 '0x2'
    Stop.
    "傳回碼 " mean "return code"

    I use VC++ 2005 & QT4.3.0.

    any suggest?

  13. #13
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt4.3 and MSVC++ 2005 - unable to install Qt

    Quote Originally Posted by owokko View Post
    Done anyone know what happen after "nmake"? ( quote )
    Could you paste the whole error starting from the last command?
    J-P Nurmi

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.