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.
Related
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,
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 am using the follows
1) VS 2010 C++
2) Debug Win 32
3) The library from here
http://www.hdfgroup.org/HDF5/release/obtain5.html
Basically I downloaded Windows (32-bit) Compilers: CMake VS 2010 C, C++, IVF 12, RWDI and installed it. I tried to include a sample code in my C++ application and ran into the following
***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.8.12, library is 1.8.11
SUMMARY OF THE HDF5 CONFIGURATION
=================================
General Information:
-------------------
HDF5 Version: 1.8.11
Configured on:
Configured by: Visual Studio 9 2008
Configure mode: CMAKE 2.8.11.2
Host system: Windows-6.1
Uname information: Windows
Byte sex: little-endian
Libraries:
Installation point: J:/dev/opt/hdf5-1.8.11
You either have two versions of HDF5 installed and you are compiling with one (1.8.12) but linking with the other (1.8.11 in J:/dev/opt/hdf5-1.8.11), or more likely you installed HDF5, compiled your program, then updated HDF5 later on and didn't clean some object files in your project…
First try to Clean All and Build your program again, it might be enough.
If this doesn't work, find out if you have two versions installed at the same time and remove one of them if this is the case, Clean All and Build your program.
If this doesn't work, remove all HDF5 stuff on your system and reinstall the HDF5 library, Clean All and Build your program.
I have the same problem and I solved the issue by using
conda install -c anaconda hdf5=1.8.12
I hope this will work with you too
This seems to show up for only when the application(using Theano+Keras+Anaconda) is run using PyCharm in Windows machine.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting the HDF5_DISABLE_VERSION_CHECK=1 suppresses it.
I'm using Visual Studio 2010, OpenCV 2.4.5, and QT 5.0.2.
I'm trying to deploy my application by loading static libraries of OpenCV and QT.
The problem is that both of them contain zlib (compression library) internally.
So, when I compile the project, link error occurs, since symbols are conflicted as below.
zlibd.lib(zutil.obj) : error LNK2005: _z_errmsg is already defined in Qt5Cored.lib(zutil.obj).
However, both of OpenCV and QT do not provide static library without zlib.
What can I do?
Take a look at the OpenCV installation guide. It says, "You can use Qt as HighGUI backend on any platforms (Windows, Linux, Mac) by passing WITH_QT=ON to CMake when configuring OpenCV." The guide also has a link to a step-by-step guide.
So, do these steps and add WITH_QT=ON to your OpenCV configuration.
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.