build Qt source
来源:互联网 发布:国产自主三维软件 编辑:程序博客网 时间:2024/05/16 04:42
Opticks Developer Guide/Getting Started/Building Qt From Source
From Wikibooks, the open-content textbooks collection
Instructions on building Qt from source:
(Please note that there are only 32-bit binary builds of Qtavailable from TrollTech. Because of this, in order to run Qt in64-bit, Qt must be manually built on windows in both 32-bit and 64-bitbinary builds.)
Things to do before building Qt:
- First extract the Qt zip file to a directory on your system.
- If you plan on building a 64-bit version of Qt, make a copy of theextracted Qt directory to another one, but add 64-bit to end of the newdirectory name. This new directory will be used to make the Qt 64-bitbinary build. (For example if the name of the extracted Qt directory isQt-win-src, then the name would be Qt-win-src-64-bit).
A. Building the 32-bit version:
1. To make the 32-bit build of Qt, go to Visual Studio 2005->Visual Studio tools in the start menu and click on
Visual Studio 2005 Command Prompt.
2. In the Command Prompt, go to the 32-bit Qt directory you just extracted.
3. Once you in the directory, type:
configure.exe -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg
This will generate a Makefile.
4. Now to start the compilation, run nmake by typing:
nmake
5. Once the compilation is complete, then type:
nmake install
The reason for doing this is so you will only need the include directory from Qt, not the src one.
6. The 32-bit binary build of Qt is now done.
B. Building the 64-bit version:
1. To make the 64-bit build of Qt, go to Visual Studio 2005->Visual Studio tools in the start menu and click on
Visual Studio 2005 x64 Win64 Command Prompt.
2. In the Command Prompt, go to the 64-bit Qt directory you just extracted.
3. Once you in the directory, type:
configure.exe -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg
This will generate a Makefile.
4. Now to start the compilation, run nmake by typing:
nmake
5. Once the compilation is complete, then type:
nmake install
The reason for doing this is so you will only need the include directory from Qt, not the src one.
6. The 64-bit binary build of Qt is now done.
C. Setting up the folders:
下文转自:http://en.wikibooks.org/wiki/Opticks_Developer_Guide/Getting_Started/Building_Qt_From_Source
Once Qt is done building, don't move it to the dependencies folder just yet. You will still need to do some work on the files.
1. Create a new directory named Qt in the dependencies folder.
2. Inside the new Qt directory, Create the following 4 folders: bin, include, lib, and plugins.
3. Inside each of these folders, Make a win32 folder if you areusing the 32-bit version or a x64 folder if you are using the 64-bitversion.
4. Copy all of the folders in the old Qt directory include folder and paste them in the new directory
include -> win32/x64 folder.
5. Next go to the old Qt directory bin folder and copy all of the.dll files as well as the mac.exe, qmake.exe, rcc.exe, and uic.exe.Paste these files in the new Qt directory
bin -> win32/x64 folder.
6. Also copy the .pdb files located in the old Qt directory lib folder and paste them in the new directory
bin -> win32/x64 folder.
7. Now Move all of the .lib files in the old directory lib folder and put them in the new Qt directory
lib -> win32/x64 folder.
8. Go to the plugins win32/x64 folder in the new Qt directory and create a new folder named imageformats.
9. In the plugin -> imageformats folder in the old directory,copy all files expect the .exp and .ilk files. Paste these in theplugins -> win32/x64 -> imagefromats located in the new Qtdirectory.
10. Qt is now ready to run with Visual Studio.
上文转自:http://en.wikibooks.org/wiki/Opticks_Developer_Guide/Getting_Started/Building_Qt_From_Source
- build Qt source
- Qt for IOS:build from source
- Qt源代码在Windows XP上编译(in-source build)
- Build hudson source
- build ubuntu from source
- build qgroundcontrol source code
- source和build分离
- build tensorflow from source
- 源码编译-Build Source
- QT creator 错误 Qmake does not support build directories below the source directory
- qt: The build directory needs to be at the same level as the source directory.
- Android Build (1) -- Source Code Build Steps
- gpsd build build from source (CentOS 6.5)
- Build OpenSolaris from source code
- Build distcc from source code
- source build/envsetup.sh 之后
- Build Qt5 Source 配置Qt5
- Linux kernel source build error
- 海豚湾
- VIM编辑代码时的一些技巧——格式化与注释
- asp.net页面缓存技术(Cache、XML)
- 求助数据类型转换不知道错哪里了
- Google Maps
- build Qt source
- 十大荟萃 值得考虑的开源安全应用程序
- 关于session.invalidate()、request.getSession(boolean)的一点实验
- Hp命令集
- JDBC获得数据库生成的主键
- ASP.net2.0中“名称以无效字符开头”问题解决方法
- nbaNBA
- 忆龙2009:先睹为快,梦幻魔方即将免费发布
- 理解Java异常处理机制——Java异常处理的一个综合实例