mele jewelry box usa wholesale How to use VS2010 for QT development environment configuration

mele jewelry box usa wholesale

1 thought on “mele jewelry box usa wholesale How to use VS2010 for QT development environment configuration”

  1. jewelry wholesale silver I found it on the BBS, and I didn't go to find it carefully (too many English) on the official website.
    2. Install QT SDK
    The installation is actually very simple. Basically, you can return all the way to the way. It is mainly to pay attention to the installation path of QT. You can run the Qt Demo in the start menu, and you can intuitively feel the powerful feature of QT!

    The interface is very cool

    4. Compile QT
    qt default use mingw to compile. If you want to use VS2010, you need to re -compile QT.
    In
    In the start menu microsoft visual studio 2010, Visual Studio Tools, Visual Studio
    Command Prompt (2010). It should be noted that it must be using Visual Studio Command Prompt
    (2010), the DOS window of CMD cannot be used

    In the installation directory of QT, execute CD QT, enter the root directory of QT

    , O (Selected Mode) Enter, Y (Agree License) Enter
    k1988 Insert:
    During the compilation process, in order to speed up the speed, some parameters can be appropriately added to configure, such as -fast, -no, -no, -no -webkit (this seemingly time-consuming)
    . The command line of my
    : Configure-polatform win32-MSVC2010 -Fast -Debug-Release
    -nobkit-Script -no --nomake demos -Nomake Examples
    -nomake tools -mp
    where MP is a multi -threaded compilation option.
    In the compile environment of QT will be automatically configured. After the configuration is over, run NMAKE, Enter, QT will start a long compilation process. This time is very long, it takes more than 4 hours.
    Liuyu encountered problems: (I have encountered it, I did not record it at the time, but remember to encounter these problems during the compilation process)
    1..cpp
    c:/program files (x86)/microsoft Visual Studio 10.0/VC/Include/YVALS.H (21): WAR
    ing C4005: '_Has_tr1': Macro
    Command-Line Arguments: See Previous of '_Has_tr1' NPLATFAPAPORM/. 327): Error C2001: Newline in Constant
    platform/.cpp (327): Fatal Error C1057: EN
    D of File in Macro Expans
    NMAKE ERROR U1077: '"C:/PROGRAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILAM FILA (X86)/Microsoft Visual Studio 10.0
    /vc/bin/cl.exe "': Return code' 0x2 '
    stop. nnmake u1077:'" C:/Program Files ( X86)/Microsoft Visual Studio 10.0
    /VC/BIN/NMAKE.EXE "': Return code' 0x2 '
    stop. nnmake u1077:' cd ': eturn code
    stop.
    nmake: Fatal error u1077: 'cd': return code '0x2'
    stop. n Solution:
    Open the file .../qt4.8.5/3rdparty /webkit/source/webcore
    /platform/.cpp
    found the quotation marks deleted 327 lines "
    2.nmake: fatal error u1077. Reason: Can't find the header file
    The solution contained in the code file: Enter the VS installation path/vc/bin under CMD, execute VCVars32, at this time VCVAS32.BAT will automatically set environment variables for vs (this has been tried several times, no effect, and the above error appears) Try the following: It is a space that causes spaces in the Curr_dir and Targetdir values ​​set by the environment variables that cause this problem.
    The environment variables can be deleted through the following command.
    Type the following command (not very clear)

    r
    . Find the following files)
    Please delete
    src/3rdparty/webkit/webcore/tmp/moc/debug_sharg/.tmp nsrc/3rdparty/webcore/moc/release_sha Red /tmp .tmp
    /src/script/tmp/moc/debug_shaard/.tmp
    /src/script/tmp/moc/release_shared/.tmp n and other files, otherwise the compilation may fail.
    k1988 Insert:
    This step is very important, it is related to whether it can be used with QT-VS-ADDIN.
    M :qmake.cache and configure.cache under d:/qt/bin manually back up to another place.
    (I have never tried it) and then use NMAKE CLEAN to clean up those intermediate files (PDB, OBJ and other files) and clean up about 4 g spaces.
    nmake conficlean is a clean -up file. The space occupies is not large and can not be executed. At this time, the just -backup .qmake.cache and configure.cache were copied back to the original.
    5. Configure the QT development environment of VS2010 (VS2010 is best in English version, QT may not support the vs2010 Chinese version)
    . After the compilation of QT compilation, you can configure the development environment of VS2010 and enter VS2010 , Select the QT menu, Qt Option, enter the interface of the following figure
    k1988 Insert:
    Pay
    to compile it, add QT assistant Paths to add it, I do n’t know why the ok key is not bright, the red word tips: Qt In the Given Path Built use
    mingw This is the bug of the QT plug -in. You must manually change the registry HKEY_CURRENT_USER/SOFTWARE/TROLLTECH/Versions/
    Add a sub -item (required name) sub -item. The value, the value is the Qt path you want to configure
    ps: If there is no Versions folder! Delete two files under the folder- >> delete the libtmain.a and .a of libqtmain.a and .a of the qt lib directory (my path was d: /qt/4.8.6/lib).)
    n n n n n n n n n R N -click ADD, add QT's installation directory, and take the name. I use the 4.8.6 version of Qt here as the name. After selecting OK, you can.
    6. New or imported QT project
    can be newly built in VS2010 a new QT project

Leave a Comment