VC + + 2008 Express and using the sample compiled Qt Preferences
Published on| May 9th, 2009 | 2 Comments.
Categories:Qt |
Description: To Qt officially released as LGPL started about three months. Little by little, LGPL work with, here and now with Qt seen an article about.
From the time when the GPL Qt, Qt and I want to use but was, and was failing to hand.
The best attraction of Qt is a cross-platform. The cross-platform development, not early. Also, there, this is Japan, Java is just. Java How many people believe. WEB applications cross-platform Java is also addicted.
Talk of Java, and about it, this time, Qt (cute) and I try to, first, I started preparing.
Therefore, I would like to write about the Qt development environment.
※ to do this, it takes time for a mile, please no hurry.
Download
Articles: VC + + 2008 Express to compile the sample using WTL and Preferences - Visual C + + 2008 Express:
http://www.microsoft.com/express/download/offline.aspx
(Full Package Download) - Qt:
http://www.qtsoftware.com/downloads
- LGPL / Free Download "Qt SDK for Windows * download *" from the menu.
Articles: ResEdit resource editor, and VC + + 2008 Exp. To be linked to
Articles: qmake with VC + + 2008 Express to create a project file
Sample source code you used here:
Use Qt LGPL version
LGPL was published in the website from a company like the handling of certain notes on the Japanese translation.
Now, license, LGPL is now, LGPL, so is to permit reverse engineering, it is clearly stated terms.
If you want to use, I have to be careful that you use to check the licensing firm.
The LGPL, public domain and is different. GPL and LGPL, and not commercial use is not writing a word. However, GPL is the case, GPL programs are created using the GPL automatically and the results are obliged to release the source code. Therefore, a business that is hard to use.
The limit, which is a little loose, LGPL. There are many opinions, at first glance, the general opinion (translation of Japanese) will guide describes, LGPL is that the SUTATIKKURINKU, GPL source code, cause a public duty in the same way as , otherwise (if it meets the other conditions of the license), the source code was developed is that you do not need to publish. However, LGPL is used to edit the ORIJINARUSOSUKODO, it is an obligation to publish results without exception.
LGPL was published in the website from a company like the handling of certain notes on the Japanese translation.
Now, license, LGPL is now, LGPL, so is to permit reverse engineering, it is clearly stated terms.
If you want to use, I have to be careful that you use to check the licensing firm.
The LGPL, public domain and is different. GPL and LGPL, and not commercial use is not writing a word. However, GPL is the case, GPL programs are created using the GPL automatically and the results are obliged to release the source code. Therefore, a business that is hard to use.
The limit, which is a little loose, LGPL. There are many opinions, at first glance, the general opinion (translation of Japanese) will guide describes, LGPL is that the SUTATIKKURINKU, GPL source code, cause a public duty in the same way as , otherwise (if it meets the other conditions of the license), the source code was developed is that you do not need to publish. However, LGPL is used to edit the ORIJINARUSOSUKODO, it is an obligation to publish results without exception.
First, compile
Install the downloaded Qt
- Note: CPU: 2.4 GHz Memory: 1.5 Gbyte takes about 15 minutes ... wait patiently ... Installation can be done in accordance with the installation screen. The installation, experience, and Japanese space, '-' It is better to use special characters in directory names. This time, "C: \ Qt" to be installed.
In a subsequent preference,% Qt installation directory% is the directory where you installed.
After the installation, perform the following steps to compile.
- VC + + 2008 Express SUTATOAPPUMENYU in the "Visula Studio 2008 Command Prompt" opens a
- From the command prompt,% Qt installation directory% \ Qt to move the current directory
1 2 3
C:\Program Files\Microsoft Visual Studio 9.0\VC> cd C:\Qt\Qt C:\Qt\Qt> path=%path%;C:\Qt\bin C:\Qt\Qt>
- The compiler to specify the VC + +2008
1 2
C:\Qt\Qt> set QMAKESPEC=win32-msvc2008 C:\Qt\Qt>
- Qt to compile the first part of the environment - Note: CPU: 2.4 GHz Memory: 1.5 Gbyte hours for about a ... wait patiently ...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
C:\Qt\Qt> configure -debug-and-release -D _CRT_SECURE_NO_WARNINGS Which edition of Qt do you want to use ? Type 'c' if you want to use the Commercial Edition. Type 'o' if you want to use the Open Source Edition. o This is the Qt for Windows Open Source Edition. You are licensed to use this software under the terms of the GNU General Public License (GPL) version 3 or the GNU Lesser General Public License (LGPL) version 2.1. Type '3' to view the GNU General Public License version 3 (GPLv3). Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1). Type 'y' to accept this license offer. Type 'n' to decline this license offer. Do you accept the terms of the license? y ---- この'y'を入力後、環境のコンパイルが始まります... : : : C:\Qt\Qt>
- Compile the Qt library and scoop a sample of - Note: CPU: 2.4 GHz Memory: 1.5 Gbyte about 16 hours ... wait patiently ...
1 2 3 4 5
C:\Qt\Qt> nmake : : : C:\Qt\Qt>
Development environment
My Computer
- [Properties]
Environmental settings.

| Environment variable name | Value | ||
| QMAKESPEC | win32-msvc2008 | PATH | % path%;
C: \ Qt \ Qt \ bin \.;
C: \ Qt \ Qt \ lib \.;
C: \ Qt \ bin \. - C: \ Qt \ Qt \ bin \: Qt - Lib directory and the Core DLL - C: \ Qt \ Qt \ lib \: Qt - Lib DLL version of the Debug directory and the - C: \ Qt \ bin \: Qt - basic exe / dll directory |
After the set, OK button.
Explorer, please try running the sample.
If you perform well, I think that can be set correctly.
Correctly, if it do not work , please check again for any incorrect settings.
C: \ Qt \ Qt \ examples \ widgets \ analogclock \ release \ analogclock.exe
If you see the following screen is OK.

Pages: 1 2
You might also like:
Trackback URL
After Admin approves this comment, it will be shown.
Comments
2 Responses to “VC + + 2008 Express and using the sample compiled Qt Preferences”
Leave a Reply

April 23rd, 2011 @ 07:41:22
こんにちは
QT Creatorを使用して間もないのでこのサイトはとても参考にさせていただいております。
現在、dllを外部参照させようと文献をあさったり検索したりしているのですが、なかなか情報が少なく上手くいっておりません。お手数ですがお教えいただければ幸いです。
よろしくお願い致します。
April 26th, 2011 @ 23:46:32
基本的なクラスなら QLibrary で Win32 のLoadLibrary と同じことができた?と思いますよ。
(プラグインのような)動的リンクをするができたと思います。
DLL側は、QT Creatorで C++ライブラリ作成 – 共有 でプロジェクトを作成するとOK?だったと思います。