Results 1 to 7 of 7

Thread: learn how to install QT with msvc2005 step by step

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Post learn how to install QT with msvc2005 step by step

    hi, this is my experiment in installing Qt4 with visual studio 2005.
    1- I extracted the Qt source in (c:\Qt\4.3.2)
    2- I added the PATH to the system and user environment as follows
    - right click on my computer -> properties -> advanced->Environment variables-> new
    - variable name = PATH
    - variable value = c:\Qt\4.3.2\bin
    3- I configured it as follows
    - start -> All programs->visual studio 2005->visual studio tools->visual studio 2005
    command prompt
    - cd\
    - cd qt
    - cd 4.3.2
    - write (configure –platform win32-msvc2005 –debug-and-release –fast –prefix
    c:\Qt\4.3.2) in the cmd window.
    4- After configuring Qt then build it by typing nmake in the command prompt.
    5- Then I execute Qt visual studio integration program.
    6- Then in visual studio Tools->options->Qt->builds and click add write Qt version
    (e.g Qt-4.3.2) and the directory where Qt is installed( e.g c:\Qt\4.3.2).
    7- Then I added QTDIR to the system and user environment as follows
    - right click on my computer -> properties -> advanced->Environment variables-> new
    variable name = QTDIR
    variable value = c:\qt\4.3.2

    variable name = QMKESPEC
    variable value = win32-msvc2005

    8- Then in visual studio tools-> options->projects and solutions-> vc++ directories->
    include files I added
    $(QTDIR)\include
    $(QTDIR)\include\Qt
    $(QTDIR)\include\QtCore
    $(QTDIR)\include\QtGui
    $(QTDIR)\include\QtNetwork
    $(QTDIR)\include\QtSvg
    $(QTDIR)\include\QtXml
    $(QTDIR)\include\Qt3Support
    $(QTDIR)\include\ActiveQt

    and in library files I added
    $(QTDIR)\lib
    9- Then I started to make a project just as follows
    file -> new->project->Qt projects->Qt Applecation
    10- Then I compiled it as follows
    build->build solution
    11- Then execute the exe and enjoy.
    it is working with code completion.

    but but but i got a problem when i tried to use a command prompt i got an error:
    'arp' is not recognized as an internal or external command,
    operable program or batch file.
    where arp is the command i used. and it is occurring when i attempt to use any
    command
    prompt operation. i don't konw why.
    if you have the answer please help me.
    finaly i want to say i consumed a month trying to install Qt thanks for every body
    helped me in this long pass.
    and thank you again.
    Last edited by coder1985; 19th December 2007 at 21:16.

Similar Threads

  1. Cannot Install KDEdevel packages on linux
    By wirajr in forum KDE Forum
    Replies: 12
    Last Post: 5th February 2006, 21:01

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.