boost library rvalue_from_python_data.hpp - expression must have a constant value - c++

I am compiling a CUDA visual studio project on Visual Studio 13, but it keeps giving me the following error :
Error 6 error : expression must have a constant value C:\local\boost_1_60_0\boost\python\converter\rvalue_from_python_data.hpp 97
I am using the following configuration:
Visual Studio 13
Boost 1.60.0
CUDA 8.0
cudpp 2.3
I have also tried using CUDA 9.1, boost 1.66.0, visual studio 2015 but to no avail.
I am not sure what is causing this error. I am not messing with rvalue_from_python_data.hpp file because it is included in the boost lib.
I mailed the author and he said that he just ran with the same configurations and the code was running alright.
What do I do?


CUDA 9 unsupported error with VS 2017

I've recently updated my VS 2017 and now I cannot even build a default CUDA project (the one with the vector addition).
I suspect that this is due to the following error:
Severity Code Description Project File Line Suppression State
Error C1189 #error: -- unsupported Microsoft Visual Studio version!
Only the versions 2012, 2013, 2015 and 2017 are supported! ver2
c:\program files\nvidia gpu computing
toolkit\cuda\v9.0\include\crt\host_config.h 133
The other errors are irrelevant and will disappear once I fix this one. Note, that I am able to build and run simpleCUFFT from CUDA samples.
Before the update I was able to build the default CUDA project but I was not able to build the CUDA Sample project. I've updated my VS2017 using VS installer and installed CUDA SDK 10.0.15063.0. Attached is the screenshot with the installed components.
Please let me know if any additional information is required. I am aware of the following topic and since I am using the latest CUDA toolkit, I don't need to make changes in host_config.h.
My VS version (as displayed in VS installer) is 15.5.0
My nvcc version is release 9.0, V9.0.176
Edit2: I've tryied to change host_config.h line 133 to:
#if _MSC_VER < 1600 || _MSC_VER > 1912
This error does not show up anymore, however, a bunch of errors "expression must have a constant value" show up in the file type_trails. I have no clue how to fix it.
After some painful time, I was able to solve the problem. Here is the answer for those who have a similar problem:
1) Make sure that you have VC++ 2015.3 v140 toolset (can be installed either from web or Visual Studio installer)
2) In the project properties (general) -> Platform toolset choose Visual Studio 2015 (v140).
In VS update 15.4.3 Microsoft updated version number of their CL compiler to 14.12
That's why CUDA 9.0.176 refuse to compile.
Today NVIDIA updated CUDA to 9.1.85, so just update
just update CUDA to 9.1

C++ : Installing cvBlobLib library for Visual Studio 2015

I've been looking all over the web for a proper code for that library but whenever i try to build it using CMake 3.4.2 it gives me errors and when i try to build the resulting visual studio project (using Visual Studio 2015) it gives me errors as well and doesn't build successfully.
Is there any way to properly install this library and use it in Visual Studio 2015?
Screen shot of the error i get when pressing on "Generate":

Errors compiling OpenCV 2.4.12 with Visual Studio 2015

I've downloaded OpenCV 2.4.12 source code. I've created a Visual Studio 2015 project of OpenCV with CMake to compile the library. Here is the CMake generation config:
While compiling OpenCV with Visual Studio 2015, I'm getting these errors:
I've searched too many times about this problem, but could not find a solution. Does anyone have an idea about what is the problem of compiling OpenCV 2.4.12 with Visual Studio 2015?
Note 1: OpenCV 2.4.12 does not have pre built binaries/libraries for Visual Studio 2015, so that I have to compile it by myself.
Note 2: OpenCV 3.1.0 can be compiled successfully with Visual Studio 2015.
Note 3: I'm using Visual Studio 2015 with Update 2.
it is not a complete answer but the error messages are about performance tests which you don't need them.You can disable performance tests build like seen in the following screenshot of cmake.

Load Library error Matlab

I intend to work with OpenCV 1.1 version and Matlab2011 together. The program uses call to load library. However, it returns an error
> In loadlibrary at 347
In Untitled at 4
Error using loadlibrary (line 421)
There was an error loading the library "C:\Program Files
C:\Program Files (x86)\OpenCV1.1\bin\cxcore110.dll is not a valid
Win32 application.
I have tested the program in Matlab 2008 and 2010 where it gives error of a different kind I have installed x64 Compilers and Tools and my system has Visual Studio2008 and 2010 with SDK7 and 6.1. Also, on doing MEX setup I get the following options
Select a compiler:
[1] Microsoft Software Development Kit (SDK) 7.1 in c:\Program Files (x86)\Microsoft Visual Studio 10.0
[2] Microsoft Visual C++ 2010 Express in c:\Program Files (x86)\Microsoft Visual Studio 10.0
[0] None
Compiler: 2
This also returns the error
Error in ==> untitled at 5
I am perplexed at what to do as this problem is persistently appearing. I even followed the thread in link where tit mentions that 2011 supports load library. So,why does it not work?Please help.
Applications compiled for 32bits don't mix with applications compiled for 64bits. If your OpenCV was compiled for 32bits, make sure Matlab is 32bits as well as your compilers.
BTW, seriously consider moving to a more recent version. OpenCV 1.1 is jurassic!

Building OpenCV 2.49 with visual studio 2012

I try to build the OpenCV libraries with visual studio 2012 but I always get the following Error:
LINK : fatal error LNK1104: cannot open file "....\lib\Debug\opencv_core249d.lib".
I downloaded the latest code from the git repository and used Cmake to create the projects. I also disabled the cuda support due to the cuda 5.0 and visual 2012 incompatibility.
Since OpenCV 2.43 does not work well with Visual Studio 2012. So I wrote a simple tutorial.
But your OpenCV edition is 2.49. I'm not sure whether this will work. You can still try it. Good luck.
I had the same problem (In visual studio 2008). The problem was that I had included a ; (semicolon) between all my Additional Dependencies (opencv_core249d.lib opencv_imgproc249d.lib etc....). When I removed the semicolons it worked.