win7 64 bit + qwt 6.1.2 64 bit + qt 5.8.0 msvc2015 x64 + msvc cross compiler mounting method: using the provided command line compiler environment vcvarsall.bat

win7 64 bit + qwt 6.1.2 64 bit + qt 5.8.0 msvc2015 x64 Installation
words like on qt5.6.0 draw a map with qwt indeed more strenuous, the intermediate reference to complete a lot of information display function, the recording where .

Preparations: msvc2015 community version, qt normal installation.

process:

The downloaded qwt6.1.2 (64-bit) decompression, the path can not contain spaces or Chinese (the other online tutorials they say, I will not include Chinese and spaces).
Find qt5.6 64bit for windows desktop (MSVC 2015 ) From the Start menu, run it.
Note that the command line pop up in the first sentence that says you want to run vcvarsall.bat add a system variable, this step is a must, acts as complete environment variable settings. Then restart the computer.
With a jump to cd qwt6.1.2 path after decompression, use the command to generate the Makefile qmake.
From the Start menu, locate the visual studio2015 following folder vs2015 x64 native tools command prompt, use the cd command to jump to the extraction path qwt6.1.2, which is run qmake that path. Then use the command nmake to compile, this process takes about 10 minutes to wait.
After the completion of the translation, in designer \ plugin \ designer path, there qwt_designer_plugin.dll file, this file is moved to
if placed in the ... \ Qt5.6.0 \ 5.6 \ msvc2015_64 \ plugins \ designer Now, when you open ui file, you need to use Qt Designer open (in the project file list, select the interface file, right click -> open with ... -> Qt Designer). In Qt Designer all the controls on the left, has been pulled down, you can see QwtWidgets this set of controls. Note that if you put the following this path, double-click interface file, open the file and can not see Qwt Widgets This group controls.
If placed in the ... \ Qt5.6.0 \ Tools \ QtCreator \ bin \ plugins \ designer following this path, then when you open ui file does not need to use Qt Designer to open. Double-click the file to open ui directly on the line. Tools -> Form Editor-> About Qt Designer Plugins can be seen inside Qt has been found to put the dll, in effect, at the same time, in the box on the left inside can see QwtWidgets.
This completes the whole process to see how Qwt plug-in Qt!
Precautions:

Here to download the 64-bit qwt6.1.2 msvc2015 must use the 64-bit compiler to compile. If you compile with 32 of msvc2015 compiler, you will be prompted to use the OpenCV library is 64-bit, x64-based computer module and the target computer is not compatible with x86 tips, compiled unsuccessful. Consider also, how 64-bit code may use compiler successfully = 32 =

In the Tools -> Form Editor-> About Qt Designer Plugins there will be "not a valid win32 program" such a prompt, this dll also does not load properly, display failed plugins. Note that this time, the compiler qwt time, be sure to compile qt compilers and processors of the same type.
For example, I am using qt msvc2013,32bit compiled form, and that my qwt6.1.2 should also be compiled with msvc2013,32bit. So, qwt6.1.2 should also download 32bit, to see how to use.
This idea came from QWT plugin not showing up in creator windows . Qwt-6.1.3 I myself have not tried it this way, you can try later.

msvc cross compiler: Use the command-line compiler environment settings vcvarsall.bat

I only know that vc has been set up command-line compiler environment under the batch command is vsvars32.bat% VS140COMNTOOLS% / Common7 / Tools, (% VS140COMNTOOLS% environment variable is defined vs2015 public utility position, set to enter the command line window can be found, the corresponding vs2010 defined as% VS100COMNTOOLS%)
Microsoft's official website has this command Description:
https://technet.microsoft.com/zh-cn/library/1700bbwd.aspx

But in the command line environment, execute the command generated by the compiler nmake only 32-bit version of the code, I never knew how nmake to compile 64-bit code used.
Today only do understand vsvars32.bat obsolete, the correct way is open vcvarsall.bat.
Vs2010 at least from the beginning,
under% VS140COMNTOOLS% / VC there vcvarsall.bat, for generating a command-line compiler environment.
If you want the line to generate 32-bit code in the command, executes vcvarsall x86
If you want to generate 64-bit code in the 32-bit system, the implementation vcvarsall x86_amd64
If you want to generate 32-bit code in the 64-bit system, the implementation vcvarsall x86 or vcvarsall amd64_x86
to VS2015, has supported arm platform, so if you want to generate code arm platform, on the implementation of vcvarsall x86_arm If your operating system is 64-bit can vcvarsall amd64_arm

In front of a name represents your current architecture of computers, behind this name stands for the architecture you want to generate code. If the same two names, is reduced to a name.
Find out this, and then she finally realized nmake to compile 32-bit and 64-bit versions of the code at the command line:

Compiler 32 generates a command code compiler environment

C:\Program Files (x86)\Microsoft Visual Studio 14.0>cd VC
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>vcvarsall x86

Performing cmake generating Makefile NMake format designated processor x86, and then execute the code compile all nmake and install

cmake -G “NMake Makefiles” -DCMAKE_BUILD_TYPE=RELEASE -DTARGET_PROCESSOR=x86 …\facecl
nmake install

Successful installation of output

Install the project…
– Install configuration: “RELEASE”
– Installing: C:/Program Files (x86)/facecl/lib/static/detect_cl.lib
– Installing: C:/Program Files (x86)/facecl/bin/detect_cl.dll
– Installing: C:/Program Files (x86)/facecl/lib/static/img_tool.lib
– Installing: C:/Program Files (x86)/facecl/bin/img_tool.dll
– Installing: C:/Program Files (x86)/facecl/bin/test_detect.exe
– Up-to-date: C:/Program Files (x86)/facecl/./README_utf8.txt
– Up-to-date: C:/Program Files (x86)/facecl/include/detect_cl_types.h
– Up-to-date: C:/Program Files (x86)/facecl/include/detect_cl.h
– Up-to-date: C:/Program Files (x86)/facecl/include/img_tool.h
– Up-to-date: C:/Program Files (x86)/facecl/sample/test_detect.cpp
– Up-to-date: C:/Program Files (x86)/facecl/sample/utility.h
– Up-to-date: C:/Program Files (x86)/facecl/sample/raii.h
– Up-to-date: C:/Program Files (x86)/facecl/sample/assert_macros.h
– Up-to-date: C:/Program Files (x86)/facecl/sample/cmdline.h
– Up-to-date: C:/Program Files (x86)/facecl/sample/dirent.h
– Up-to-date: C:/Program Files (x86)/facecl/sample/file_utilits.h
– Up-to-date: C:/Program Files (x86)/facecl/sample/time_utilits.h

To generate a 64-bit code in the 32-bit system, do the same

For a more detailed description of vcvarsall.bat, see Microsoft's official documentation:
https://msdn.microsoft.com/zh-cn/library/f2ccy3wt.aspx

Guess you like

Origin blog.csdn.net/u013693952/article/details/92838839
Recommended