error in static linking with qt in window 64 bit - c++

I wanted to do static linking of Qt libraries to my project. I've done some tutorial (I downloaded source version of qt and then write a configure line in VS command prompt, I build everything by jom.exe). But apparently it works only with 32 bit versions of project. I want to make it work on 64 bit.
Error is in the line:
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
and it's says:
qwindows.lib(main.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
any ideas how to build it on x64 machine beacause I cannot find any useful information for this problem.

You seem to have a conflict between 32 and 64 bit libraries.
Here's a tutorial on how to build Qt statically for 32 and 64 bit.

You can not link a Win32 library to 64 bit projects,

Related

CMake builds 32-bit library, although my machine runs on 64-bits

I'm trying to build the OpenGL library GLFW3 according to this tutorial. CMake builds a lib in ./src/Debug, but when I try to link it, VS2017 complains:
Error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
I'm aware that changing the VS-compiler from x64 to Win32 solves the issue, but I need to build a 64-bit-version.
So is there any way to tell CMake to build a 64-version?

Didn't Find the Required Zlib Library

I'm using a code written in C++, i have a problem regarding the compilation which is that my project is 64 bit, and I'm using zlib.lib, which will generate the error.
module machine type 'x64' conflicts with target machine type 'x86'
I didn't find GNU 64 bit, but what i need is only the zlib.lib as 64 bit, does it exist?
"target machine type 'x86'" looks as if you need to change a compiler option from x86 target to 64 target...

VirtualTreeView - Embarcadero C++ Builder XE7 - 64 bits

I've just downloaded last version of VirtualTreeView.
I've been able to generate the runtime and design packages in 32bits with Embarcadero C++ Builder XE7.
But when trying to build the runtime one in 64 bits I'm getting this error:
[DCC Fatal Error] E2202 Required package 'DesignIDE' not found
I've already checked that the runtime package doesn't require designide.bpi. Any idea of what I'm missing?
I just downloaded the latest version from the VirtualTree from here:
https://virtual-treeview.googlecode.com/svn/trunk.
Since the designtime package doesn't have a 64 bit configuration (Which makes sense because the IDE is a 32 bit app) you must have tried to compile the runtime package. But I can compile the runtime package without a problem.
That's why I would like to ask you if you tried to compile the same version as me?
It seems that you are trying to compile the designtime package. Only the design time package has a dependency on the package "DesignIde". Since the Delphi IDE is 32Bit all design time package can be 32Bit only too and will fail with this error if compiled for 64Bit. Did you perhaps try build the entire project group for 64Bit?

I need to make a opencv 64 exe ( error The procedure entry point could not be loaded )

How to build a 64-bit application with mingw-w64 and opencv 64 bit dll with Netbeans IDE. I succesfully installed "mingw w64" and generated a 64 bit simple c++ exe successfully.
I tried creating a simple opencv 64 bit application by including the corresponding 64 bit dlls to the PATH and to the NetBeans folder, but am always getting the error as follows.
It means you're linking to an import library which declares that function/method, but the runtime library does not have it.

Configuring CUDA and OpenCV with Visual Studio on 64 bit machine

I have been trying to configure OpenCV2.1 and CUDA3.1 on Visual Studio 2008 on a 64bit Windows XP machine, since past 1 week. But all in vain.
OpenCV alone is working fine. CUDA3.1 alone is working fine as well.
I am using CUDA3.1 for 64 bit ... But for OpenCV, I am using 32 bit installation (as provided on Source Forge) - Possible Error ??
In a CUDA project when I configure OpenCV settings, and compile a sample project, I get error on following files:
cxcore.hpp
cxoperations.hpp
cxcore.hpp
cxmat.hpp
and also on CUDA build rules.
All the above files are not written by me; but are libraries (I guess).
Any directions to install CUDA, OpenCV over VS on a 64bit XP machine ?
Libraries linked to your application should have been compiled to the same arch. You cannot mix architectures.
In other words, you must compile everything -- your app, OpenCV and CUDA -- to be 32bit (or 64 bits if you need).
My advice to you is compile CUDA for 32bits and then change the properties of your project to build your application to 32bits too (since you already have the 32bits version of OpenCV ).
EDIT:
For the linking problems:
unresolved external symbol _cufftExecR2C#12
unresolved external symbol _cufftExecC2R#12
unresolved external symbol _cufftPlan2d#16
unresolved external symbol _cufftDestroy#4
according to this post, add this library to your project settings: cufft.lib
I believe that you need to build Cmake's 64 bit libraries -- but I'm not certain. You definitely need to build OpenCV in x64 to build native apps on a Win XP x64 install. If the build of OpenCV is showing errors, then you'll need to solve those first before attempting to compile your app which links against the as of yet incorrectly compiled OpenCV libs.