简体   繁体   English

编译一个 32 位到 64 位的软件

[英]Compile a software from 32 to 64 bit

I have a source code of a local tool which currently works on 32 bit VS 2008. Now I want to compile it on my system which is 64 bit and has VS2010.我有一个当前可在 32 位 VS 2008 上运行的本地工具的源代码。现在我想在我的 64 位系统上编译它并且有 VS2010。 How can I achieve the compilation?我怎样才能实现编译? Should I install the whole VS2008 or is it sufficient to install the 32-bit compiler and use 2010 IDE, and if so from where I can download the necessary tools to compile?我应该安装整个 VS2008 还是安装 32 位编译器并使用 2010 IDE 就足够了,如果是这样,我可以从哪里下载必要的工具进行编译?

The same source code I want to upgrade ie compile it in 64 bit VS 2010. The tool has a dependency on Qt4.7.1 and Zlib 1.2.8.我想升级的相同源代码,即在 64 位 VS 2010 中编译它。该工具依赖于 Qt4.7.1 和 Zlib 1.2.8。 How can I achieve this up gradation?我怎样才能达到这个等级?

In order to achieve that you need 64-bit libraries of Qt and Zlib.为了实现这一点,您需要 Qt 和 Zlib 的 64 位库。 Once you have all necessary 64-bit dll's required for your project, then you will need to link those libraries to linker in your project.一旦您拥有项目所需的所有 64 位 dll,您就需要将这些库链接到项目中的链接器。

Compiling your tool with these libraries should be fine.用这些库编译你的工具应该没问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM